Re: [csswg-drafts] [css-values-3] attribute reference attr() length with a '0' value (#6244)

@FremyCompany François,
The [attr-invalid-type-002.html test](http://wpt.live/css/css-values/attr-invalid-type-002.html) also seems incorrect. For sure, its assert text contradicts the comments.

"
When the type of an attr() function is known and unexpected, the declaration is ignored
"
width: attr(data-test number);

If width property expects, requires a length dimension, then the type number should make the attr() function fails. Therefore there should be no green square rendered.
The 
width: attr(data-test number)
declaration is illogical and should be parsed as invalid.

This [attr-invalid-type-002.html test](http://wpt.live/css/css-values/attr-invalid-type-002.html) will eventually require tuning so that assert and comments become harmoniously supporting each other and the expected rendering complies with the spec.

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


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

Received on Tuesday, 27 April 2021 19:10:50 UTC