← back to v133 · css-advanced-attr-function
conformance · v133
v133 · css-advanced-attr-function — conformance probe
6 assertions drawn from the spec. Each is a single contract the spec text makes. Pass/fail reflects what this browser executed; blocked means the contract was not run because it needs user mediation, hardware, or another unavailable precondition. Open the page in Chrome stable / canary / Firefox / Safari to compare.
0
pass
0
fail
0
blocked
6
total
| id | contract | kind | verdict | detail |
|---|---|---|---|---|
attr-with-type-px |
attr() accepts a unit suffix: attr(data-x px) is a valid declaration value. spec ↗ | css-supports | … | |
attr-with-type-and-fallback |
attr() with type and fallback: attr(data-x px, 10px) is a valid declaration. spec ↗ | css-supports | … | |
attr-with-color-type |
attr() supports <color> typed values. spec ↗ | css-supports | … | |
attr-with-number-type |
attr() supports <number> typed values via type() syntax. spec ↗ | css-supports | … | |
attr-on-non-content-property |
Typed attr() works on properties other than content; setting width to attr(data-x px) resolves to a length. spec ↗ | script | … | |
attr-string-still-supported |
The legacy attr(<attr-name>) form still works on the content property. | css-supports | … |