mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
Fixing inline elements filtering rendering.
It required to move create_stacking_context() outside of BlockFlow, as a method of FragmentDisplayListBuilding. This allowed the reuse for inline fragments that need a stacking context. As we now create stacking contexts (SC) for inline elements, this stresses the code in Fragment that calculates the need for a SC. For while, we create a SC only if there are filters associated with the Inline element. Companion issue is #5812.
This commit is contained in:
parent
1b08211a5e
commit
4f210eb8fe
5 changed files with 112 additions and 70 deletions
|
@ -108,6 +108,7 @@ flaky_cpu == append_style_a.html append_style_b.html
|
|||
== empty_cells_a.html empty_cells_ref.html
|
||||
== external_media_query_link.html external_media_query_ref.html
|
||||
== external_media_query_style.html external_media_query_ref.html
|
||||
== filter_inline_a.html filter_inline_ref.html
|
||||
== filter_opacity_a.html filter_opacity_ref.html
|
||||
== filter_sepia_a.html filter_sepia_ref.html
|
||||
== first_child_pseudo_a.html first_child_pseudo_b.html
|
||||
|
|
18
tests/ref/filter_inline_a.html
Normal file
18
tests/ref/filter_inline_a.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
|
||||
.ex {
|
||||
<!-- display: block; -->
|
||||
-webkit-filter: opacity(25%);
|
||||
-moz-filter: opacity(25%);
|
||||
filter: opacity(25%);
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<img class="ex" src="rust.png">
|
||||
</body>
|
||||
</html>
|
18
tests/ref/filter_inline_ref.html
Normal file
18
tests/ref/filter_inline_ref.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
|
||||
.ex {
|
||||
display: block;
|
||||
-webkit-filter: opacity(25%);
|
||||
-moz-filter: opacity(25%);
|
||||
filter: opacity(25%);
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<img class="ex" src="rust.png">
|
||||
</body>
|
||||
</html>
|
BIN
tests/ref/rust.png
Normal file
BIN
tests/ref/rust.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
Loading…
Add table
Add a link
Reference in a new issue