Status: FAIL | Duration: 96ms | Subtests: 30/55 | Open test on wpt.live | wpt.fyi
Data from commit:
a50cb89 wpt: run reference-named files which are themselves tests (#836) (2026-09-03)
| Subtest | Status | Message |
|---|---|---|
| e.style['mask'] = "none" should set the property value | PASS | |
| e.style['mask'] = "linear-gradient(to left bottom, red, blue)" should set the property value | PASS | |
| e.style['mask'] = "linear-gradient(to left bottom, red, blue) luminance" should set the property value | PASS | |
| e.style['mask'] = "url(\"https://{{host}}/\")" should set the property value | PASS | |
| e.style['mask'] = "linear-gradient(to left bottom, red, blue) 1px 2px" should set the property value | PASS | |
| e.style['mask'] = "url(\"https://{{host}}/\") 1px 2px / contain" should set the property value | PASS | |
| e.style['mask'] = "repeat-y" should set the property value | PASS | |
| e.style['mask'] = "border-box" should set the property value | PASS | |
| e.style['mask'] = "linear-gradient(to left bottom, red, blue) padding-box" should set the property value | PASS | |
| e.style['mask'] = "content-box" should set the property value | PASS | |
| e.style['mask'] = "url(\"https://{{host}}/\") fill-box" should set the property value | FAIL | assert_not_equals: property should be set got disallowed value "" |
| e.style['mask'] = "linear-gradient(to left bottom, red, blue) stroke-box" should set the property value | FAIL | assert_not_equals: property should be set got disallowed value "" |
| e.style['mask'] = "view-box" should set the property value | FAIL | assert_not_equals: property should be set got disallowed value "" |
| e.style['mask'] = "no-clip" should set the property value | FAIL | assert_not_equals: property should be set got disallowed value "" |
| e.style['mask'] = "url(\"https://{{host}}/\") add" should set the property value | PASS | |
| e.style['mask'] = "subtract" should set the property value | PASS | |
| e.style['mask'] = "url(\"https://{{host}}/\") intersect" should set the property value | PASS | |
| e.style['mask'] = "linear-gradient(to left bottom, red, blue) exclude" should set the property value | PASS | |
| e.style['mask'] = "alpha" should set the property value | PASS | |
| e.style['mask'] = "url(\"https://{{host}}/\") alpha" should set the property value | PASS | |
| e.style['mask'] = "border-box border-box" should set the property value | PASS | |
| e.style['mask'] = "content-box content-box" should set the property value | PASS | |
| e.style['mask'] = "border-box content-box" should set the property value | PASS | |
| e.style['mask'] = "border-box no-clip" should set the property value | FAIL | assert_not_equals: property should be set got disallowed value "" |
| e.style['mask'] = "intersect no-clip space round 1px 2px / contain stroke-box linear-gradient(to left bottom, red, blue) luminance" should set the property value | FAIL | assert_not_equals: property should be set got disallowed value "" |
| e.style['mask'] = "intersect no-clip space round 1px 2px / contain view-box, stroke-box linear-gradient(to left bottom, red, blue) luminance" should set the property value | FAIL | assert_not_equals: property should be set got disallowed value "" |
| e.style['mask'] = "none alpha" should set the property value | PASS | |
| e.style['mask'] = "none" should set mask-border-outset | FAIL | assert_equals: mask-border-outset should be canonical expected "0" but got "" |
| e.style['mask'] = "none" should set mask-border-repeat | FAIL | assert_equals: mask-border-repeat should be canonical expected "stretch" but got "" |
| e.style['mask'] = "none" should set mask-border-slice | FAIL | assert_equals: mask-border-slice should be canonical expected "0" but got "" |
| e.style['mask'] = "none" should set mask-border-source | FAIL | assert_equals: mask-border-source should be canonical expected "none" but got "" |
| e.style['mask'] = "none" should set mask-border-width | FAIL | assert_equals: mask-border-width should be canonical expected "auto" but got "" |
| e.style['mask'] = "none" should set mask-clip | PASS | |
| e.style['mask'] = "none" should set mask-composite | PASS | |
| e.style['mask'] = "none" should set mask-image | PASS | |
| e.style['mask'] = "none" should set mask-mode | PASS | |
| e.style['mask'] = "none" should set mask-origin | PASS | |
| e.style['mask'] = "none" should set mask-position | PASS | |
| e.style['mask'] = "none" should set mask-repeat | PASS | |
| e.style['mask'] = "none" should set mask-size | PASS | |
| e.style['mask'] = "none" should not set unrelated longhands | PASS | |
| e.style['mask'] = "none, linear-gradient(to left bottom, red, blue) padding-box" should set mask-border-outset | FAIL | assert_equals: mask-border-outset should be canonical expected "0" but got "" |
| e.style['mask'] = "none, linear-gradient(to left bottom, red, blue) padding-box" should set mask-border-repeat | FAIL | assert_equals: mask-border-repeat should be canonical expected "stretch" but got "" |
| e.style['mask'] = "none, linear-gradient(to left bottom, red, blue) padding-box" should set mask-border-slice | FAIL | assert_equals: mask-border-slice should be canonical expected "0" but got "" |
| e.style['mask'] = "none, linear-gradient(to left bottom, red, blue) padding-box" should set mask-border-source | FAIL | assert_equals: mask-border-source should be canonical expected "none" but got "" |
| e.style['mask'] = "none, linear-gradient(to left bottom, red, blue) padding-box" should set mask-border-width | FAIL | assert_equals: mask-border-width should be canonical expected "auto" but got "" |
| e.style['mask'] = "none, linear-gradient(to left bottom, red, blue) padding-box" should set mask-clip | FAIL | assert_equals: mask-clip should be canonical expected "border-box, padding-box" but got "border-box" |
| e.style['mask'] = "none, linear-gradient(to left bottom, red, blue) padding-box" should set mask-composite | FAIL | assert_equals: mask-composite should be canonical expected "add, add" but got "add" |
| e.style['mask'] = "none, linear-gradient(to left bottom, red, blue) padding-box" should set mask-image | FAIL | assert_equals: mask-image should be canonical expected "none, linear-gradient(to left bottom, red, blue)" but got "none" |
| e.style['mask'] = "none, linear-gradient(to left bottom, red, blue) padding-box" should set mask-mode | FAIL | assert_equals: mask-mode should be canonical expected "match-source, match-source" but got "match-source" |
| e.style['mask'] = "none, linear-gradient(to left bottom, red, blue) padding-box" should set mask-origin | FAIL | assert_equals: mask-origin should be canonical expected "border-box, padding-box" but got "border-box" |
| e.style['mask'] = "none, linear-gradient(to left bottom, red, blue) padding-box" should set mask-position | FAIL | assert_equals: mask-position should be canonical expected "0% 0%, 0% 0%" but got "0% 0%" |
| e.style['mask'] = "none, linear-gradient(to left bottom, red, blue) padding-box" should set mask-repeat | FAIL | assert_equals: mask-repeat should be canonical expected "repeat, repeat" but got "repeat" |
| e.style['mask'] = "none, linear-gradient(to left bottom, red, blue) padding-box" should set mask-size | FAIL | assert_equals: mask-size should be canonical expected "auto, auto" but got "auto" |
| e.style['mask'] = "none, linear-gradient(to left bottom, red, blue) padding-box" should not set unrelated longhands | PASS |
/css/css-masking/parsing/mask-valid.sub.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS Masking Module Level 1: parsing mask with valid values</title> <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-mask"> <meta name="assert" content="mask supports the full '<mask-layer>#' grammar."> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <script src="/css/support/parsing-testcommon.js"></script> <script src="/css/support/shorthand-testcommon.js"></script> </head> <body> <script> // <mask-layer> = <mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || // <geometry-box> || [ <geometry-box> | no-clip ] || <compositing-operator> || <masking-mode> // <mask-reference> = none | <image> | <mask-source> test_valid_value('mask', 'none'); test_valid_value('mask', 'linear-gradient(to left bottom, red, blue)'); test_valid_value('mask', 'linear-gradient(to left bottom, red, blue) luminance'); test_valid_value('mask', 'url("https://{{host}}/")'); // <position> [ / <bg-size> ]? test_valid_value('mask', 'linear-gradient(to left bottom, red, blue) 1px 2px'); test_valid_value('mask', 'url("https://{{host}}/") 1px 2px / contain'); // <repeat-style> = repeat-x | repeat-y | [repeat | space | round | no-repeat]{1,2} test_valid_value('mask', 'repeat-y'); // <geometry-box> = <shape-box> | fill-box | stroke-box | view-box // <shape-box> = <box> // <box> = border-box | padding-box | content-box test_valid_value('mask', 'border-box', 'none'); test_valid_value('mask', 'linear-gradient(to left bottom, red, blue) padding-box'); test_valid_value('mask', 'content-box'); test_valid_value('mask', 'url("https://{{host}}/") fill-box'); test_valid_value('mask', 'linear-gradient(to left bottom, red, blue) stroke-box'); test_valid_value('mask', 'view-box'); // [ <geometry-box> | no-clip ] test_valid_value('mask', 'no-clip'); // <compositing-operator> = add | subtract | intersect | exclude test_valid_value('mask', 'url("https://{{host}}/") add', 'url("https://{{host}}/")'); test_valid_value('mask', 'subtract'); test_valid_value('mask', 'url("https://{{host}}/") intersect'); test_valid_value('mask', 'linear-gradient(to left bottom, red, blue) exclude'); // <masking-mode> = alpha | luminance | auto test_valid_value('mask', 'alpha'); test_valid_value('mask', 'url("https://{{host}}/") alpha'); // Test the combination of mask-origin and mask-clip. test_valid_value('mask', 'border-box border-box', 'none'); test_valid_value('mask', 'content-box content-box', 'content-box'); test_valid_value('mask', 'border-box content-box', 'border-box content-box'); test_valid_value('mask', 'border-box no-clip', 'no-clip'); // <mask-layer> = <mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || // <geometry-box> || [ <geometry-box> | no-clip ] || <compositing-operator> || <masking-mode> test_valid_value('mask', 'intersect no-clip space round 1px 2px / contain stroke-box linear-gradient(to left bottom, red, blue) luminance', 'linear-gradient(to left bottom, red, blue) 1px 2px / contain space round stroke-box no-clip intersect luminance'); test_valid_value('mask', 'intersect no-clip space round 1px 2px / contain view-box, stroke-box linear-gradient(to left bottom, red, blue) luminance', '1px 2px / contain space round view-box no-clip intersect, linear-gradient(to left bottom, red, blue) stroke-box luminance'); // Earlier versions of the mask shorthand always required a <mask-reference>. // To avoid unnecessarily losing test coverage, keep one of the test cases from back then. test_valid_value('mask', 'none alpha', 'alpha'); test_shorthand_value('mask', 'none', { 'mask-image': 'none', 'mask-position': '0% 0%', 'mask-size': 'auto', 'mask-repeat': 'repeat', 'mask-origin': 'border-box', 'mask-clip': 'border-box', 'mask-composite': 'add', 'mask-mode': 'match-source', 'mask-border-source': 'none', 'mask-border-outset': '0', 'mask-border-repeat': 'stretch', 'mask-border-slice': '0', 'mask-border-width': 'auto' }) test_shorthand_value('mask', 'none, linear-gradient(to left bottom, red, blue) padding-box', { 'mask-image': 'none, linear-gradient(to left bottom, red, blue)', 'mask-position': '0% 0%, 0% 0%', 'mask-size': 'auto, auto', 'mask-repeat': 'repeat, repeat', 'mask-origin': 'border-box, padding-box', 'mask-clip': 'border-box, padding-box', 'mask-composite': 'add, add', 'mask-mode': 'match-source, match-source', 'mask-border-source': 'none', 'mask-border-outset': '0', 'mask-border-repeat': 'stretch', 'mask-border-slice': '0', 'mask-border-width': 'auto' }) </script> </body> </html>