wpt / css / css-masking / parsing / mask-repeat-invalid.html

Status: PASS | Duration: 57ms | Subtests: 5/5 | Open test on wpt.live | wpt.fyi

Data from commit:
a50cb89 wpt: run reference-named files which are themselves tests (#836) (2026-09-03)

SubtestStatusMessage
e.style['mask-repeat'] = "auto" should not set the property valuePASS
e.style['mask-repeat'] = "repeat-z" should not set the property valuePASS
e.style['mask-repeat'] = "repeat undefined" should not set the property valuePASS
e.style['mask-repeat'] = "undefined repeat" should not set the property valuePASS
e.style['mask-repeat'] = "repeat; round" should not set the property valuePASS

/css/css-masking/parsing/mask-repeat-invalid.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Masking Module Level 1: parsing mask-repeat with invalid values</title>
<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-mask-repeat">
<meta name="assert" content="mask-repeat supports only the grammar.">
<!--
<mask-repeat> = <repeat-style>#
<repeat-style> = repeat-x | repeat-y | [repeat | space | round | no-repeat]{1,2}
 -->
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
test_invalid_value("mask-repeat", "auto");
test_invalid_value("mask-repeat", "repeat-z");
test_invalid_value("mask-repeat", "repeat undefined");
test_invalid_value("mask-repeat", "undefined repeat");
test_invalid_value("mask-repeat", "repeat; round");
</script>
</body>
</html>