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

Status: PASS | Duration: 60ms | 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-composite'] = "add" should set the property valuePASS
e.style['mask-composite'] = "subtract" should set the property valuePASS
e.style['mask-composite'] = "intersect" should set the property valuePASS
e.style['mask-composite'] = "exclude" should set the property valuePASS
e.style['mask-composite'] = "add, subtract" should set the property valuePASS

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

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Masking Module Level 1: parsing mask-composite with valid values</title>
<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-mask-composite">
<meta name="assert" content="mask-composite supports the full 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_valid_value("mask-composite", "add");
test_valid_value("mask-composite", "subtract");
test_valid_value("mask-composite", "intersect");
test_valid_value("mask-composite", "exclude");
test_valid_value("mask-composite", "add, subtract");
</script>
</body>
</html>