Skip to content

[css-values] attr()'s type system is inconsistent with other things #10437

@andruud

Description

@andruud

As briefly discussed with @tabatkins during CSS Day:

  • In @property, we have "<length>", and similar.
  • We intend to use the same for the parameter types of custom functions (probably).
  • We have a loose plan of dropping the string-part of the syntax string, making it possible to specify <length> directly. (https://github.com/andruud/csswg-drafts/pull/2/files). EDIT: This now exists, but only for css-mixins-1.

Why doesn't attr() use the same way of specifying types? I.e., shouldn't we do attr(data-foo <length>, 0px) instead of attr(data-foo length, 0px)?

EDIT: I accidentally posted the issue template.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Thursday morning

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions