From de87b7c6e0335296c7a1ba9b8e819ae344d1b596 Mon Sep 17 00:00:00 2001 From: raxbg Date: Wed, 10 Jul 2024 18:10:27 +0300 Subject: [PATCH] Recognize more size units --- src/Value/Size.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Value/Size.php b/src/Value/Size.php index bf40f4a0..8fd92f13 100644 --- a/src/Value/Size.php +++ b/src/Value/Size.php @@ -13,7 +13,7 @@ class Size extends PrimitiveValue { /** - * vh/vw/vm(ax)/vmin/rem are absolute insofar as they don’t scale to the immediate parent (only the viewport) + * vh/vw/vm(ax)/vmin/rem/svh/lvh/dvh/svw/lvw/dvw are absolute insofar as they don’t scale to the immediate parent (only the viewport) * * @var array */ @@ -22,12 +22,13 @@ class Size extends PrimitiveValue 'cm', 'mm', 'mozmm', 'in', 'vh', 'dvh', 'svh', 'lvh', 'vw', 'vmin', 'vmax', 'rem', + 'svw', 'lvw', 'dvw', ]; /** * @var array */ - private const RELATIVE_SIZE_UNITS = ['%', 'em', 'ex', 'ch', 'fr']; + private const RELATIVE_SIZE_UNITS = ['%', 'em', 'ex', 'ch', 'fr', 'cqw', 'cqh', 'cqi', 'cqb', 'cqmin', 'cqmax']; /** * @var array