attr-argument-grammar.html

FAILExpected9 of 15 subtests pass1,048 ms

Details

Test
/css/css-values/attr-argument-grammar.html
Harness
OK

Subtests

StatusSubtestMessage
FAILCSS Values and Units Test: attr() argument grammar
assert_equals: Value 'attr(var(--x))', where 'data-foo=10' should be valid for the property 'font-weight'. expected "10" but got "400"
assert_equals: Value 'attr(var(--x))', where 'data-foo=10' should be valid for the property 'font-weight'. expected "10" but got "400"
FAILCSS Values and Units Test: attr() argument grammar 1
assert_equals: Value 'attr(var(--x),)', where 'data-foo=10' should be valid for the property 'font-weight'. expected "10" but got "400"
assert_equals: Value 'attr(var(--x),)', where 'data-foo=10' should be valid for the property 'font-weight'. expected "10" but got "400"
FAILCSS Values and Units Test: attr() argument grammar 2
assert_equals: Value 'attr(var(--x), 10)', where 'data-foo=invalid' should be valid for the property 'font-weight'. expected "10" but got "400"
assert_equals: Value 'attr(var(--x), 10)', where 'data-foo=invalid' should be valid for the property 'font-weight'. expected "10" but got "400"
PASSCSS Values and Units Test: attr() argument grammar 3
PASSCSS Values and Units Test: attr() argument grammar 4
PASSCSS Values and Units Test: attr() argument grammar 5
PASSCSS Values and Units Test: attr() argument grammar 6
PASSCSS Values and Units Test: attr() argument grammar 7
PASSCSS Values and Units Test: attr() argument grammar 8
PASSCSS Values and Units Test: attr() argument grammar 9
PASSCSS Values and Units Test: attr() argument grammar 10
PASSCSS Values and Units Test: attr() argument grammar 11
FAILCSS Values and Units Test: attr() argument grammar 12
assert_equals: Value 'attr(data-foo var(--type))', where 'data-foo=42' should be valid for the property 'font-weight'. expected "42" but got "400"
assert_equals: Value 'attr(data-foo var(--type))', where 'data-foo=42' should be valid for the property 'font-weight'. expected "42" but got "400"
FAILCSS Values and Units Test: attr() argument grammar 13
assert_equals: Value 'attr(data-foo var(--type), 100)', where 'data-foo=invalid' should be valid for the property 'font-weight'. expected "100" but got "400"
assert_equals: Value 'attr(data-foo var(--type), 100)', where 'data-foo=invalid' should be valid for the property 'font-weight'. expected "100" but got "400"
FAILCSS Values and Units Test: attr() argument grammar 14
assert_equals: Value 'attr(data-foo var(--unit))', where 'data-foo=42' should be valid for the property 'font-weight'. expected "42" but got "400"
assert_equals: Value 'attr(data-foo var(--unit))', where 'data-foo=42' should be valid for the property 'font-weight'. expected "42" but got "400"