Skip to content

Tokenizing fails when font property line height value is set from custom property #1298

@lauriii

Description

@lauriii

Tokenizer fails to tokenize font property correctly if line-height is using a custom property. Example of CSS that is not tokenized correctly:

html { font: 1em/var(--line-height); }

Tokenizer seems to think that 1em/var is a function.

I created a failing test for this here: lauriii@8708558

This trickles down to https://github.com/shellscape/postcss-values-parser. I also created a failing test for that lauriii/postcss-values-parser@d0bbbbc.

This finally trickles down to https://github.com/postcss/postcss-custom-properties. I did also create a failing test for that: lauriii/postcss-custom-properties@6de537e.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions