Skip to content

Commit 758432c

Browse files
Calme1709AtkinsSJ
authored andcommitted
LibWeb: Don't mark mask-type as list-valued
This is distinct from the other `mask-*` properties and is not a longhand of `mask`, and is thus not a coordinating value list longhand
1 parent 4034ce9 commit 758432c

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

Libraries/LibWeb/CSS/Properties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2799,7 +2799,7 @@
27992799
"animation-type": "discrete",
28002800
"inherited": false,
28012801
"affects-layout": false,
2802-
"multiplicity": "coordinating-list",
2802+
"multiplicity": "single",
28032803
"valid-types": [
28042804
"mask-type"
28052805
],
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PASS!
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<div id="foo"></div>
3+
<script src="../include.js"></script>
4+
<script>
5+
test(() => {
6+
try {
7+
foo.attributeStyleMap.set("mask-type", new CSSKeywordValue("luminance"), new CSSKeywordValue("alpha"));
8+
println("FAIL! Shouldn't allow setting multiple values for mask-type");
9+
} catch {
10+
println("PASS!");
11+
}
12+
});
13+
</script>

0 commit comments

Comments
 (0)