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

@ -17,6 +17,7 @@ public:
Dpi,
Dpcm,
Dppx,
X,
};
static Optional<Type> unit_from_name(StringView);