variable-reference.html
Details
- Test
/css/css-variables/variable-reference.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| PASS | width: var(--prop); |
| PASS | width: var(--prop) !important; |
| PASS | width: var(--prop, ); |
| PASS | width: var(--prop, 20px); |
| PASS | width: var(--prop, blue); |
| PASS | width: var(--prop1, var(--prop2)); |
| PASS | width: var(--prop1, var(--prop2, var(--prop3, auto))); |
| PASS | width: var(--prop1) var(--prop2) |
| PASS | width: var(--prop,); |
| PASS | width: var(); |
| FAIL | width: var(prop); assert_equals: expected "var(prop)" but got "" |
| FAIL | width: var(-prop); assert_equals: expected "var(-prop)" but got "" |
| FAIL | width: var(--prop 20px); assert_equals: expected "var(--prop 20px)" but got "" |
| FAIL | width: var(--prop, var(prop)); assert_equals: expected "var(--prop, var(prop))" but got "" |
| FAIL | width: var(--prop, var(-prop)); assert_equals: expected "var(--prop, var(-prop))" but got "" |
| FAIL | width: var(20px); assert_equals: expected "var(20px)" but got "" |
| FAIL | width: var(var(--prop)); assert_equals: expected "var(var(--prop))" but got "" |
| FAIL | Variable reference left open at end of stylesheet Cannot read properties of undefined (reading 'style') |