Summary

Harness status: OK

Found 4 tests

Details

ResultTest NameMessage
Passanchor() cannot be used as <length> initial value
Asserts run
Pass
assert_throws_dom("SyntaxError", function "() => CSS.registerProperty({     name: '--x',     syntax: '<length>',     inherits: false,     initialValue: 'anchor(--foo top)',   })")
    at Test.<anonymous> ( /css/css-anchor-position/anchor-query-custom-property-registration.html:15:12)
Passanchor-size() cannot be used as <length> initial value
Asserts run
Pass
assert_throws_dom("SyntaxError", function "() => CSS.registerProperty({     name: '--x',     syntax: '<length>',     inherits: false,     initialValue: 'anchor-size(--foo width)',   })")
    at Test.<anonymous> ( /css/css-anchor-position/anchor-query-custom-property-registration.html:24:12)
Passanchor() cannot be used as <length-percentage> initial value
Asserts run
Pass
assert_throws_dom("SyntaxError", function "() => CSS.registerProperty({     name: '--x',     syntax: '<length-percentage>',     inherits: false,     initialValue: 'anchor(--foo top)',   })")
    at Test.<anonymous> ( /css/css-anchor-position/anchor-query-custom-property-registration.html:33:12)
Passanchor-size() cannot be used as <length-percentage> initial value
Asserts run
Pass
assert_throws_dom("SyntaxError", function "() => CSS.registerProperty({     name: '--x',     syntax: '<length-percentage>',     inherits: false,     initialValue: 'anchor-size(--foo width)',   })")
    at Test.<anonymous> ( /css/css-anchor-position/anchor-query-custom-property-registration.html:42:12)