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

Status: PASS | Duration: 63ms | Subtests: 14/14 | 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-composite'] = "auto" should not set the property valuePASS
e.style['mask-composite'] = "add subtract" should not set the property valuePASS
e.style['mask-composite'] = "clear" should not set the property valuePASS
e.style['mask-composite'] = "copy" should not set the property valuePASS
e.style['mask-composite'] = "source-over" should not set the property valuePASS
e.style['mask-composite'] = "source-in" should not set the property valuePASS
e.style['mask-composite'] = "source-out" should not set the property valuePASS
e.style['mask-composite'] = "source-atop" should not set the property valuePASS
e.style['mask-composite'] = "destination-over" should not set the property valuePASS
e.style['mask-composite'] = "destination-in" should not set the property valuePASS
e.style['mask-composite'] = "destination-out" should not set the property valuePASS
e.style['mask-composite'] = "destination-atop" should not set the property valuePASS
e.style['mask-composite'] = "xor" should not set the property valuePASS
e.style['mask-composite'] = "plus-lighter" should not set the property valuePASS

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

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Masking Module Level 1: parsing mask-composite with invalid values</title>
<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-mask-composite">
<meta name="assert" content="mask-composite supports only the grammar '<compositing-operator>#'.">
<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-composite", "auto");
test_invalid_value("mask-composite", "add subtract");
test_invalid_value("mask-composite", "clear");
test_invalid_value("mask-composite", "copy");
test_invalid_value("mask-composite", "source-over");
test_invalid_value("mask-composite", "source-in");
test_invalid_value("mask-composite", "source-out");
test_invalid_value("mask-composite", "source-atop");
test_invalid_value("mask-composite", "destination-over");
test_invalid_value("mask-composite", "destination-in");
test_invalid_value("mask-composite", "destination-out");
test_invalid_value("mask-composite", "destination-atop");
test_invalid_value("mask-composite", "xor");
test_invalid_value("mask-composite", "plus-lighter");
</script>
</body>
</html>