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

Status: PASS | Duration: 51ms | Subtests: 3/3 | 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-type'] = "auto" should not set the property valuePASS
e.style['mask-type'] = "luminance alpha" should not set the property valuePASS
e.style['mask-type'] = "alpha, luminance" should not set the property valuePASS

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

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Masking Module Level 1: parsing mask-type with invalid values</title>
<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-mask-type">
<meta name="assert" content="mask-type supports only the grammar 'luminance | alpha'.">
<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-type", "auto");
test_invalid_value("mask-type", "luminance alpha");
test_invalid_value("mask-type", "alpha, luminance");
</script>
</body>
</html>