aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/main/layout/construct.rs
diff options
context:
space:
mode:
authorGlenn Watson <gw@intuitionlibrary.com>2014-05-13 11:54:40 +1000
committerGlenn Watson <gw@intuitionlibrary.com>2014-05-22 09:15:35 +1000
commit0bb518561ee323d49efa598a29b7b71316c0e588 (patch)
tree701d3bd71b19453d8dd724e55fc40a01843dd0ab /src/components/main/layout/construct.rs
parentfbcfe78bf675ffb1fdbe549da3b96a0d1a5f0be8 (diff)
downloadservo-0bb518561ee323d49efa598a29b7b71316c0e588.tar.gz
servo-0bb518561ee323d49efa598a29b7b71316c0e588.zip
Potential fix for #2335.
Diffstat (limited to 'src/components/main/layout/construct.rs')
-rw-r--r--src/components/main/layout/construct.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/components/main/layout/construct.rs b/src/components/main/layout/construct.rs
index 10d68dd34d1..a307f9ac69b 100644
--- a/src/components/main/layout/construct.rs
+++ b/src/components/main/layout/construct.rs
@@ -945,9 +945,11 @@ impl<'a> PostorderNodeMutTraversal for FlowConstructor<'a> {
// Absolutely positioned elements will have computed value of
// `float` as 'none' and `display` as per the table.
- // Currently, for original `display` value of 'inline', the new
- // `display` value is 'block'.
- (_, _, position::absolute) | (_, _, position::fixed) => {
+ // Only match here for block items. If an item is absolutely
+ // positioned, but inline we shouldn't try to construct a block
+ // flow here - instead, let it match the inline case
+ // below.
+ (display::block, _, position::absolute) | (_, _, position::fixed) => {
node.set_flow_construction_result(self.build_flow_for_block(node))
}