Skip to content

[css-properties-values-api] var() references to <length> type properties with font-relative lengths #315

Closed
@tim-loh

Description

@tim-loh

Consider a property --font-size, registered to be of <length> type. What should the computed values of font-size and --font-size be?

--font-size: 10em;
font-size: var(--font-size);

If --font-size is substituted as "10em", then font-size is 10*parent and --font-size is 100*parent. If it is substituted after computation then what value do we use for the em unit?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions