mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:27:35 +00:00
LibWeb: Skip children based on media when updating the source set
If child has a media attribute and its value does not match the environment, continue to the next child.
This commit is contained in:
parent
87ac906ee6
commit
29d29134ba
5 changed files with 32 additions and 1 deletions
BIN
Tests/LibWeb/Layout/input/120.png
Normal file
BIN
Tests/LibWeb/Layout/input/120.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 572 B |
BIN
Tests/LibWeb/Layout/input/400.png
Normal file
BIN
Tests/LibWeb/Layout/input/400.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 592 B |
11
Tests/LibWeb/Layout/input/picture-source-media-query.html
Normal file
11
Tests/LibWeb/Layout/input/picture-source-media-query.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<body>
|
||||
<picture>
|
||||
<source media="(max-width: 600px)" srcset="120.png">
|
||||
<img src="400.png">
|
||||
</picture>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue