Skip to content

Commit

Permalink
[css-values-5] Disallow whitespace in <attr-name> (#11431)
Browse files Browse the repository at this point in the history
This is not allowed in `<wq-name>`, and shouldn't be allowed
in `<attr-name>` either.

Co-authored-by: Anders Hartvoll Ruud <andruud@google.com>
  • Loading branch information
andruud and Anders Hartvoll Ruud authored Jan 14, 2025
1 parent 761f69a commit ae9bdf5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions css-values-5/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1588,6 +1588,9 @@ Ian's proposal:
As with [=attribute selectors=],
the case-sensitivity of <<attr-name>> depends on the document language.

Whitespace is not allowed
between any of the components of <<attr-name>>.

If ''attr()'' is used in a property applied to an element,
it references the attribute of the given name on that element;
if applied to a pseudo-element,
Expand Down

0 comments on commit ae9bdf5

Please sign in to comment.