diff options
author | Glenn Watson <gw@intuitionlibrary.com> | 2015-08-03 09:00:46 +1000 |
---|---|---|
committer | Glenn Watson <gw@intuitionlibrary.com> | 2015-08-03 10:47:56 +1000 |
commit | b9fea3deb3afd0abba81ae7aaa282bb2ca553cfa (patch) | |
tree | b32a31cf02568708af66bea50743b49fa6f9a84e /components/layout/inline.rs | |
parent | ffe4bd25a495efd672986f090150b165811b6708 (diff) | |
download | servo-b9fea3deb3afd0abba81ae7aaa282bb2ca553cfa.tar.gz servo-b9fea3deb3afd0abba81ae7aaa282bb2ca553cfa.zip |
Fix percentage height calculation, absolute containing block height calculations.
It's not possible to correctly determine during the css cascade whether the container height
is explicitly specified. Additionally, the spec https://drafts.csswg.org/css2/visudet.html#the-height-property
says this should affect the *used* height, rather than the computed height.
This significantly improves the layout in #6643.
Diffstat (limited to 'components/layout/inline.rs')
-rw-r--r-- | components/layout/inline.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout/inline.rs b/components/layout/inline.rs index abf23e488dd..0d8e1e19347 100644 --- a/components/layout/inline.rs +++ b/components/layout/inline.rs @@ -1346,7 +1346,7 @@ impl Flow for InlineFlow { // Assign the block-size and late-computed inline-sizes for the inline fragments. let containing_block_block_size = - self.base.block_container_explicit_block_size.unwrap_or(Au(0)); + self.base.block_container_explicit_block_size; for fragment in self.fragments.fragments.iter_mut() { fragment.update_late_computed_replaced_inline_size_if_necessary(); fragment.assign_replaced_block_size_if_necessary( |