MyIntervals / PHP-CSS-Parser

A Parser for CSS Files written in PHP. Allows extraction of CSS files into a data structure, manipulation of said structure and output as (optimized) CSS

Home Page:http://www.sabberworm.com/blog/2010/6/10/php-css-parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for new viewport unit in Size class

lserio opened this issue · comments

commented

Hi everyone,
it might be useful to add support for new viewport units (svh, lvh, svw, lvw, dvh, dvw) into the ABSOLUTE_SIZE_UNITS array in src\Value\Size.php

const ABSOLUTE_SIZE_UNITS = ['px', 'cm', 'mm', 'mozmm', 'in', 'pt', 'pc', 'vh', 'vw', 'vmin', 'vmax', 'rem'];

https://redstapler.co/all-css-viewport-units-svh-lvh-svw-lvw-dvh-dvw-explained/