var-parsing.html

FAILExpected10 of 18 subtests pass417 ms

Details

Test
/css/css-variables/var-parsing.html
Harness
OK

Subtests

StatusSubtestMessage
PASSe.style['width'] = "var(--x)" should set the property value
PASSe.style['width'] = "var(--x,)" should set the property value
PASSe.style['width'] = "var(--x, )" should set the property value
FAILe.style['width'] = "var(--x ())" should set the property value
assert_not_equals: property should be set got disallowed value ""
assert_not_equals: property should be set got disallowed value ""
FAILe.style['width'] = "var(--x () )" should set the property value
assert_not_equals: property should be set got disallowed value ""
assert_not_equals: property should be set got disallowed value ""
FAILe.style['width'] = "var(--x() )" should set the property value
assert_not_equals: property should be set got disallowed value ""
assert_not_equals: property should be set got disallowed value ""
FAILe.style['width'] = "var(--x (),)" should set the property value
assert_not_equals: property should be set got disallowed value ""
assert_not_equals: property should be set got disallowed value ""
FAILe.style['width'] = "var(--x(),)" should set the property value
assert_not_equals: property should be set got disallowed value ""
assert_not_equals: property should be set got disallowed value ""
FAILe.style['width'] = "var({--x})" should set the property value
assert_not_equals: property should be set got disallowed value ""
assert_not_equals: property should be set got disallowed value ""
FAILe.style['width'] = "var({--x}, 10px)" should set the property value
assert_not_equals: property should be set got disallowed value ""
assert_not_equals: property should be set got disallowed value ""
FAILe.style['width'] = "var({--x, --y})" should set the property value
assert_not_equals: property should be set got disallowed value ""
assert_not_equals: property should be set got disallowed value ""
PASSe.style['width'] = "var(--x {--y})" should not set the property value
PASSe.style['width'] = "var({--x} --y)" should not set the property value
PASSe.style['width'] = "var(--x {--y}, 10px)" should not set the property value
PASSe.style['width'] = "var()" should not set the property value
PASSe.style['width'] = "var({})" should not set the property value
PASSe.style['width'] = "var({}, 10px)" should not set the property value
PASSe.style['width'] = "var(, 10px)" should not set the property value