mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
parent
0bc7ad9b08
commit
6228edfb4c
4 changed files with 60 additions and 0 deletions
|
@ -2175,6 +2175,19 @@ impl Fragment {
|
||||||
overflow = overflow.union(&border_box.inflate(outline_width, outline_width))
|
overflow = overflow.union(&border_box.inflate(outline_width, outline_width))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Include the overflow of the block flow, if any.
|
||||||
|
match self.specific {
|
||||||
|
SpecificFragmentInfo::InlineBlock(ref info) => {
|
||||||
|
let block_flow = info.flow_ref.as_block();
|
||||||
|
overflow = overflow.union(&block_flow.compute_overflow());
|
||||||
|
}
|
||||||
|
SpecificFragmentInfo::InlineAbsolute(ref info) => {
|
||||||
|
let block_flow = info.flow_ref.as_block();
|
||||||
|
overflow = overflow.union(&block_flow.compute_overflow());
|
||||||
|
}
|
||||||
|
_ => (),
|
||||||
|
}
|
||||||
|
|
||||||
// FIXME(pcwalton): Sometimes excessively fancy glyphs can make us draw outside our border
|
// FIXME(pcwalton): Sometimes excessively fancy glyphs can make us draw outside our border
|
||||||
// box too.
|
// box too.
|
||||||
overflow
|
overflow
|
||||||
|
|
|
@ -267,6 +267,7 @@ flaky_cpu == linebreak_simple_a.html linebreak_simple_b.html
|
||||||
!= overconstrained_block.html overconstrained_block_ref.html
|
!= overconstrained_block.html overconstrained_block_ref.html
|
||||||
== overflow_auto.html overflow_simple_b.html
|
== overflow_auto.html overflow_simple_b.html
|
||||||
== overflow_auto_stacking_order_a.html overflow_auto_stacking_order_ref.html
|
== overflow_auto_stacking_order_a.html overflow_auto_stacking_order_ref.html
|
||||||
|
== overflow_position_abs_inline_block.html overflow_position_abs_inline_block_ref.html
|
||||||
# Should be ==?
|
# Should be ==?
|
||||||
!= overflow_position_abs_inside_normal_a.html overflow_position_abs_inside_normal_b.html
|
!= overflow_position_abs_inside_normal_a.html overflow_position_abs_inside_normal_b.html
|
||||||
== overflow_position_abs_simple_a.html overflow_position_abs_simple_b.html
|
== overflow_position_abs_simple_a.html overflow_position_abs_simple_b.html
|
||||||
|
|
23
tests/ref/overflow_position_abs_inline_block.html
Normal file
23
tests/ref/overflow_position_abs_inline_block.html
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
<style>
|
||||||
|
#d1 {
|
||||||
|
width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
position: absolute;
|
||||||
|
background: green;
|
||||||
|
}
|
||||||
|
#d2 {
|
||||||
|
display: inline-block;
|
||||||
|
width: 100px;
|
||||||
|
background: red;
|
||||||
|
height: 100px;
|
||||||
|
position: relative;
|
||||||
|
top: 20px;
|
||||||
|
left: 20px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<div style="position:fixed"></div>
|
||||||
|
<div id="d1">
|
||||||
|
<div id="d2"></div>
|
||||||
|
</div>
|
||||||
|
|
23
tests/ref/overflow_position_abs_inline_block_ref.html
Normal file
23
tests/ref/overflow_position_abs_inline_block_ref.html
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
<style>
|
||||||
|
#d1 {
|
||||||
|
width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
position: absolute;
|
||||||
|
background: green;
|
||||||
|
}
|
||||||
|
#d2 {
|
||||||
|
display: block;
|
||||||
|
width: 100px;
|
||||||
|
background: red;
|
||||||
|
height: 100px;
|
||||||
|
position: relative;
|
||||||
|
top: 20px;
|
||||||
|
left: 20px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<div style="position:fixed"></div>
|
||||||
|
<div id="d1">
|
||||||
|
<div id="d2"></div>
|
||||||
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue