Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andruud opened this issue Jun 12, 2024 · 0 comments
Open

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

andruud opened this issue Jun 12, 2024 · 0 comments

Comments

@andruud
Copy link
Member

andruud commented Jun 12, 2024

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)

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

EDIT: I accidentally posted the issue template.

@andruud andruud changed the title [css-values] attr() [css-values] attr()'s type system is inconsistent with other things Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant