calc-size-parsing.html
Details
- Test
/css/css-values/calc-size/calc-size-parsing.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| FAIL | e.style['width'] = "calc-size(auto, size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['min-width'] = "calc-size(auto, size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['height'] = "calc-size(auto, size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['min-height'] = "calc-size(auto, size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| PASS | e.style['max-height'] = "calc-size(auto, size)" should not set the property value |
| PASS | e.style['max-width'] = "calc-size(auto, size)" should not set the property value |
| PASS | e.style['height'] = "calc-size(none, size)" should not set the property value |
| PASS | e.style['width'] = "calc-size(none, size)" should not set the property value |
| PASS | e.style['min-height'] = "calc-size(none, size)" should not set the property value |
| PASS | e.style['min-width'] = "calc-size(none, size)" should not set the property value |
| PASS | e.style['max-height'] = "calc-size(none, size)" should not set the property value |
| PASS | e.style['max-width'] = "calc-size(none, size)" should not set the property value |
| FAIL | e.style['width'] = "calc-size(max-content, size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['height'] = "calc-size(max-content, size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['max-width'] = "calc-size(max-content, size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['max-height'] = "calc-size(max-content, size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['min-width'] = "calc-size(max-content, size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['min-height'] = "calc-size(max-content, size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['block-size'] = "calc-size(max-content, size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['inline-size'] = "calc-size(max-content, size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['max-block-size'] = "calc-size(max-content, size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['max-inline-size'] = "calc-size(max-content, size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['min-block-size'] = "calc-size(max-content, size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['min-inline-size'] = "calc-size(max-content, size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['width'] = "calc-size(fit-content, size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['height'] = "calc-size(min-content, size * 2)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['max-width'] = "calc-size(max-content, size / 2)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['max-height'] = "calc-size(fit-content, 30px + size / 2)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['width'] = "calc-size(fit-content, 50% + size / 2)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['width'] = "calc-size(any, 25em)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['width'] = "calc-size(any, 40%)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['width'] = "calc-size(any, 50px + 30%)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['width'] = "calc-size(calc-size(any, 30px), size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| PASS | e.style['width'] = "calc-size(any, size)" should not set the property value |
| PASS | e.style['width'] = "calc-size(any, fit-content)" should not set the property value |
| PASS | e.style['width'] = "calc-size(any, max-content)" should not set the property value |
| PASS | e.style['width'] = "calc-size(any, min-content)" should not set the property value |
| FAIL | e.style['width'] = "calc-size(10px, sign(size) * size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| PASS | e.style['width'] = "size" should not set the property value |
| PASS | e.style['width'] = "sign(size)" should not set the property value |
| PASS | e.style['width'] = "calc(50px * sign(size))" should not set the property value |
| PASS | e.style['width'] = "calc-size(any, calc-size(10px, sign(size) * size))" should not set the property value |
| PASS | e.style['width'] = "calc-size(any, calc-size(any, 10px))" should not set the property value |
| PASS | e.style['width'] = "calc(calc-size(auto, size))" should not set the property value |
| PASS | e.style['width'] = "calc(50px * sign(calc-size(auto, size)))" should not set the property value |
| PASS | e.style['width'] = "calc(calc-size(auto, size) + calc-size(auto, size))" should not set the property value |
| PASS | e.style['width'] = "calc(abs(calc-size(auto, size)))" should not set the property value |
| PASS | e.style['width'] = "calc(100px * progress(calc-size(auto, size) from calc-size(auto, 0px) to calc-size(auto, size)))" should not set the property value |
| PASS | e.style['width'] = "calc(100px * progress(calc-size(auto, size) from 0px to 100px))" should not set the property value |
| PASS | e.style['width'] = "calc(100px * progress(50px from calc-size(auto, 0px) to calc-size(auto, size)))" should not set the property value |
| PASS | e.style['width'] = "min(calc-size(auto, 0px), calc-size(auto, size))" should not set the property value |
| PASS | e.style['width'] = "calc(min(calc-size(auto, 0px), calc-size(auto, size)))" should not set the property value |
| PASS | e.style['width'] = "max(calc-size(auto, 0px), calc-size(auto, size))" should not set the property value |
| PASS | e.style['width'] = "calc(max(calc-size(auto, 0px), calc-size(auto, size)))" should not set the property value |
| PASS | e.style['width'] = "clamp(calc-size(auto, 0px), calc-size(auto, 30px), calc-size(auto, size))" should not set the property value |
| PASS | e.style['width'] = "calc(clamp(calc-size(auto, 0px), calc-size(auto, 30px), calc-size(auto, size)))" should not set the property value |
| PASS | e.style['width'] = "calc(cos(calc-size(auto, 0px)))" should not set the property value |
| PASS | e.style['width'] = "calc(atan2(calc-size(auto, size), calc-size(auto, 50px)))" should not set the property value |
| PASS | e.style['width'] = "calc(sqrt(calc-size(auto, 0px)))" should not set the property value |
| PASS | e.style['width'] = "calc(hypot(calc-size(auto, size * 0.5), calc-size(auto, size)))" should not set the property value |
| PASS | e.style['width'] = "calc(round(calc-size(auto, size * 0.5), calc-size(auto, size)))" should not set the property value |
| PASS | e.style['width'] = "calc(round(calc-size(auto, size * 0.5)))" should not set the property value |
| PASS | e.style['width'] = "calc(mod(calc-size(auto, size * 0.5), calc-size(auto, size)))" should not set the property value |
| PASS | e.style['width'] = "calc(rem(calc-size(auto, size * 0.5), calc-size(auto, size)))" should not set the property value |
| FAIL | e.style['width'] = "calc-size(30px, 25em)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['width'] = "calc-size(calc-size(any, 30px), 25em)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['width'] = "calc-size(calc-size(2in, 30px), 25em)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['width'] = "calc-size(calc-size(min-content, 30px), 25em)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['width'] = "calc-size(calc-size(min-content, size), size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| PASS | e.style['height'] = "calc(12% + calc-size(any, 31%))" should not set the property value |
| PASS | e.style['width'] = "calc-size(30px)" should not set the property value |
| PASS | e.style['width'] = "calc-size(min(30px, 2em))" should not set the property value |
| PASS | e.style['width'] = "calc-size(any)" should not set the property value |
| PASS | e.style['width'] = "calc-size(calc-size(any, 30px))" should not set the property value |
| PASS | e.style['width'] = "calc-size(size)" should not set the property value |
| PASS | e.style['width'] = "calc-size(fit-content)" should not set the property value |
| PASS | e.style['width'] = "calc-size(calc-size(fit-content, size * 2))" should not set the property value |
| PASS | e.style['width'] = "calc-size(calc-size(30px))" should not set the property value |
| FAIL | e.style['flex-basis'] = "calc-size(any, 50px)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['flex-basis'] = "calc-size(auto, size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['flex-basis'] = "calc-size(min-content, size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['flex-basis'] = "calc-size(max-content, size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['flex-basis'] = "calc-size(fit-content, size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| FAIL | e.style['flex-basis'] = "calc-size(content, size)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| PASS | e.style['width'] = "calc-size(content, size)" should not set the property value |
| PASS | e.style['height'] = "calc-size(content, size)" should not set the property value |
| PASS | e.style['max-width'] = "calc-size(content, size)" should not set the property value |
| PASS | e.style['max-height'] = "calc-size(content, size)" should not set the property value |
| PASS | e.style['min-width'] = "calc-size(content, size)" should not set the property value |
| PASS | e.style['min-height'] = "calc-size(content, size)" should not set the property value |
| FAIL | e.style['width'] = "calc-size(0px, 0px)" should set the property value assert_not_equals: property should be set got disallowed value "" |
| PASS | e.style['width'] = "calc-size(0, 0px)" should not set the property value |
| PASS | e.style['width'] = "calc-size(0px, 0)" should not set the property value |
| PASS | e.style['width'] = "calc-size(0, 0)" should not set the property value |