Re: [csswg-drafts] [css-values-5] Normalized attr() substitution value (#10503)

OK, I now see the attribute value needs to be a _single token_ (surprising), which means the example in the first post was bad.

In that case, what about:

```
<div data-x="10.000px">
```
```
div { --x: attr(data-x length); }
```

Does this serialize as `10px` or `10.000px`?


-- 
GitHub Notification of comment by andruud
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10503#issuecomment-2194405474 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 27 June 2024 11:10:03 UTC