1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:57:44 +00:00

LibWeb: Fix broken conversion of CSS <resolution> dpi/dpcm to dppx

Also add a basic test that documents how these media features currently
get serialized, even if they're not identical to other browsers yet.
This commit is contained in:
Andreas Kling 2023-08-25 17:58:40 +02:00
parent b256e52586
commit b63e393cef
3 changed files with 33 additions and 2 deletions

View file

@ -0,0 +1,15 @@
@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) {
}