Skip to content

Add support for new viewport unit in Size class #412

Closed
@lserio

Description

@lserio

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions