Skip to content

[css-values] attr()'s url type seems wrong #5079

@annevk

Description

@annevk

Per https://drafts.csswg.org/css-values-4/#attr-types the value of the attribute is literally forwarded to CSS, without taking into account how that attribute would be parsed (which requires passing in a base URL and encoding to the URL parser). This means that if you have

foo="bar"

in your document at / and your CSS is in /css/meh it'll link to /bar in your document and /css/bar in your CSS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Oldest unslotted

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions