mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Fixes positioning of inline blocks that generate stacking contexts.
This commit is contained in:
parent
a521755607
commit
d61d3ad4ba
4 changed files with 44 additions and 1 deletions
|
@ -1342,7 +1342,7 @@ impl Flow for InlineFlow {
|
||||||
self.base
|
self.base
|
||||||
.absolute_position_info
|
.absolute_position_info
|
||||||
.relative_containing_block_mode,
|
.relative_containing_block_mode,
|
||||||
CoordinateSystem::Own);
|
CoordinateSystem::Parent);
|
||||||
let clip = fragment.clipping_region_for_children(&self.base.clip,
|
let clip = fragment.clipping_region_for_children(&self.base.clip,
|
||||||
&stacking_relative_border_box);
|
&stacking_relative_border_box);
|
||||||
match fragment.specific {
|
match fragment.specific {
|
||||||
|
|
|
@ -133,6 +133,7 @@ flaky_cpu == append_style_a.html append_style_b.html
|
||||||
== inline_block_parent_width.html inline_block_parent_width_ref.html
|
== inline_block_parent_width.html inline_block_parent_width_ref.html
|
||||||
== inline_block_parent_width_percentage.html inline_block_parent_width_ref.html
|
== inline_block_parent_width_percentage.html inline_block_parent_width_ref.html
|
||||||
== inline_block_percentage_height_a.html inline_block_percentage_height_ref.html
|
== inline_block_percentage_height_a.html inline_block_percentage_height_ref.html
|
||||||
|
== inline_block_stacking_context_a.html inline_block_stacking_context_ref.html
|
||||||
== inline_block_with_margin_a.html inline_block_with_margin_ref.html
|
== inline_block_with_margin_a.html inline_block_with_margin_ref.html
|
||||||
# inline_border_a.html inline_border_b.html
|
# inline_border_a.html inline_border_b.html
|
||||||
== inline_element_border_a.html inline_element_border_ref.html
|
== inline_element_border_a.html inline_element_border_ref.html
|
||||||
|
|
21
tests/ref/inline_block_stacking_context_a.html
Normal file
21
tests/ref/inline_block_stacking_context_a.html
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<style type="text/css">
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
.fa {
|
||||||
|
display: inline-block;
|
||||||
|
transform: translate(0, 0);
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div style="padding: 100px 0 0 0;">
|
||||||
|
<div class="fa">A</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
21
tests/ref/inline_block_stacking_context_ref.html
Normal file
21
tests/ref/inline_block_stacking_context_ref.html
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<style type="text/css">
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
.fa {
|
||||||
|
display: block;
|
||||||
|
transform: translate(0, 0);
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div style="padding: 100px 0 0 0;">
|
||||||
|
<div class="fa">A</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Add table
Add a link
Reference in a new issue