mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Layerize StackingContexts that are on top of layers
StackingContexts that should be painted on top of StackingContexts that are already layerized should automatically get their own layer. This will ensure proper painting order.
This commit is contained in:
parent
c442132196
commit
184238c348
8 changed files with 171 additions and 14 deletions
|
@ -323,6 +323,7 @@ flaky_cpu == linebreak_simple_a.html linebreak_simple_b.html
|
|||
== servo_center_a.html servo_center_ref.html
|
||||
== setattribute_id_restyle_a.html setattribute_id_restyle_b.html
|
||||
== simple_inline_absolute_containing_block_a.html simple_inline_absolute_containing_block_ref.html
|
||||
== stacked_layers.html stacked_layers_ref.html
|
||||
== stacking_context_overflow_a.html stacking_context_overflow_ref.html
|
||||
== stacking_context_overflow_relative_outline_a.html stacking_context_overflow_relative_outline_ref.html
|
||||
== style_is_in_doc.html style_is_in_doc_ref.html
|
||||
|
|
23
tests/ref/stacked_layers.html
Normal file
23
tests/ref/stacked_layers.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
.test { float: left; margin-right: 25px; }
|
||||
.box { height: 50px; width: 50px; }
|
||||
.gray { background: rgb(200, 200, 200); }
|
||||
.grayer { background: rgb(80, 80, 80); }
|
||||
.grayest { background: rgb(0, 0, 0); }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="test grayest box">
|
||||
<div class="grayer box" style="margin-left: 10px; margin-top: 10px; position: fixed;"></div>
|
||||
<div class="gray box" style="margin-left: 20px; margin-top: 10px; position: relative; top: 10px; z-index: 5;"> </div>
|
||||
</div>
|
||||
|
||||
<div class="test grayest box">
|
||||
<div class="grayer box" style="margin-left: 10px; margin-top: 10px; position: fixed;"></div>
|
||||
<div class="gray box" style="margin-left: 20px; margin-top: 10px; position: absolute; top: 20px; z-index: 5;"> </div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
23
tests/ref/stacked_layers_ref.html
Normal file
23
tests/ref/stacked_layers_ref.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
.test { float: left; margin-right: 25px; }
|
||||
.box { height: 50px; width: 50px; }
|
||||
.gray { background: rgb(200, 200, 200); }
|
||||
.grayer { background: rgb(80, 80, 80); }
|
||||
.grayest { background: rgb(0, 0, 0); }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="test grayest box">
|
||||
<div class="grayer box" style="margin-left: 10px; margin-top: 10px; position: absolute;"></div>
|
||||
<div class="gray box" style="margin-left: 20px; margin-top: 10px; position: relative; top: 10px; z-index: 5;"></div>
|
||||
</div>
|
||||
|
||||
<div class="test grayest box">
|
||||
<div class="grayer box" style="margin-left: 10px; margin-top: 10px; position: absolute;"></div>
|
||||
<div class="gray box" style="margin-left: 20px; margin-top: 10px; position: absolute; top: 20px; z-index: 5;"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,5 +0,0 @@
|
|||
[min-width-not-important.html]
|
||||
type: reftest
|
||||
reftype: ==
|
||||
refurl: /html/rendering/non-replaced-elements/the-fieldset-element-0/ref.html
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue