1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:17:44 +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:
Andi Gallo 2023-05-28 04:40:27 +00:00 committed by Andreas Kling
parent 87ac906ee6
commit 29d29134ba
5 changed files with 32 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 572 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B

View 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>