Skip to content

Commit 9bd73fd

Browse files
committed
add support for the small, large and dynamic viewport size units
1 parent cc791ad commit 9bd73fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Value/Size.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
class Size extends PrimitiveValue
1414
{
1515
/**
16-
* vh/vw/vm(ax)/vmin/rem are absolute insofar as they don’t scale to the immediate parent (only the viewport)
16+
* 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)
1717
*
1818
* @var array<int, string>
1919
*/
20-
const ABSOLUTE_SIZE_UNITS = ['px', 'cm', 'mm', 'mozmm', 'in', 'pt', 'pc', 'vh', 'vw', 'vmin', 'vmax', 'rem'];
20+
const ABSOLUTE_SIZE_UNITS = ['px', 'cm', 'mm', 'mozmm', 'in', 'pt', 'pc', 'vh', 'vw', 'vmin', 'vmax', 'svh', 'lvh', 'dvh', 'svw', 'lvw', 'dvw', 'rem'];
2121

2222
/**
2323
* @var array<int, string>

0 commit comments

Comments
 (0)