1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

LibWeb/CSS: Treat x resolution unit separately from dppx

Tests show that we need to preserve whether x or dppx units were used,
so the simplest way is to treat them separately.
This commit is contained in:
Sam Atkins 2025-05-16 20:15:07 +01:00 committed by Tim Ledbetter
parent 443f9e5afb
commit 338282f74d
Notes: github-actions[bot] 2025-05-17 06:54:37 +00:00
3 changed files with 14 additions and 9 deletions

View file

@ -2,8 +2,8 @@ Harness status: OK
Found 34 tests
27 Pass
7 Fail
30 Pass
4 Fail
Pass Test parsing '' with matchMedia
Pass Test parsing ' ' with matchMedia
Pass Test parsing 'all' with matchMedia
@ -25,11 +25,11 @@ Pass Test parsing ' , ' with matchMedia
Fail Test parsing ',,' with matchMedia
Pass Test parsing ' , , ' with matchMedia
Fail Test parsing ' foo,' with matchMedia
Fail Test parsing '(min-resolution: 1x)' with matchMedia
Pass Test parsing '(min-resolution: 1x)' with matchMedia
Pass Test parsing '(min-resolution: calc(1x))' with matchMedia
Fail Test parsing '(resolution: 2x)' with matchMedia
Pass Test parsing '(resolution: 2x)' with matchMedia
Pass Test parsing '(resolution: calc(2x))' with matchMedia
Fail Test parsing '(max-resolution: 7x)' with matchMedia
Pass Test parsing '(max-resolution: 7x)' with matchMedia
Pass Test parsing '(max-resolution: calc(7x))' with matchMedia
Pass Test parsing '(resolution: 2dppx)' with matchMedia
Pass Test parsing '(resolution: 600dpi)' with matchMedia