LibWeb: Serialize empty media rules with a single newline

This deviates from the CSSOM specification but all modern browsers do
this.
This commit is contained in:
Tim Ledbetter 2024-04-29 19:42:00 +01:00 committed by Andreas Kling
commit 02a8966b61
Notes: sideshowbarker 2024-07-17 02:42:21 +09:00
2 changed files with 5 additions and 5 deletions

View file

@ -1,15 +1,10 @@
@media screen {
}
@media screen and ((min-width: 20px) and (max-width: 40px)) {
}
@media screen and (min-resolution: 1dppx) {
}
@media screen and (min-resolution: 2dppx) {
}
@media screen and (min-resolution: 2.54dppx) {
}