LibWeb: Add ref test for opacity (stacking context) paint order

Now that we can test this, let's add a test, as mentioned in:
https://github.com/SerenityOS/serenity/pull/20559#issuecomment-1677126697

(I confirmed this test failed before #20559)
This commit is contained in:
MacDue 2023-08-14 20:56:06 +01:00 committed by Alexander Kalenik
parent 394529b7d0
commit 9006c7aece
Notes: sideshowbarker 2024-07-17 00:16:31 +09:00
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,4 @@
<svg width="600" viewBox="0 0 150 100" xmlns="http://www.w3.org/2000/svg">
<circle cx="100" cy="50" r="40" fill="#b3b3b3" />
<circle cx="50" cy="50" r="40" fill="blue" />
</svg>

After

Width:  |  Height:  |  Size: 182 B

View File

@ -0,0 +1,4 @@
<svg width="600" viewBox="0 0 150 100" xmlns="http://www.w3.org/2000/svg">
<circle cx="100" cy="50" r="40" fill="black" opacity="0.3" />
<circle cx="50" cy="50" r="40" fill="blue" />
</svg>

After

Width:  |  Height:  |  Size: 194 B