Skip to content

[css-values] attr() banning type(<url>) is kind of arbitrary. #13946

@emilio

Description

@emilio

https://drafts.csswg.org/css-values-5/#typedef-attr-type has this bit:

For this purpose, <url> is invalid as a <syntax-single-component>. Values that fail to parse according to the syntax trigger fallback.

But that seems fairly arbitrary? If only, because it also doesn't forbid <image>, which can also parse URLs.

I think the tainting works regardless, so why do we need this?

Looking at interop tests, Safari and Gecko don't implement this right now.

cc @tabatkins @andruud @dshin-moz @weinig

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions