Skip to content
This repository was archived by the owner on Mar 22, 2019. It is now read-only.
This repository was archived by the owner on Mar 22, 2019. It is now read-only.

native css variables are quoted in font-family #70

@kmohrf

Description

@kmohrf

hej,

thanks for working on csswring. i’ve spotted a bug in the way native css variables are handled in font-family declarations. consider the following input:

:root {
    --foo: "foo";
    --bar: 0;
    font-family: var(--foo);
    width: var(--bar);
}

and output:

:root{--foo:"foo";--bar:0;font-family:"var(--foo)";width:var(--bar)}

Though the width declaration is fine the font-family is quoted, rendering the var function useless. I’d expect csswring to leave the font-family value/values intact, if the value is enclosed by a var function. I’ve been using csswring 4.2.1 to generate this output.

thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions