Skip to content

Commit 1900ae0

Browse files
committed
Issue web-platform-tests#34493 - Adds webkitMaskBox* to a unique test
As shown in whatwg/compat#202 there is currently no browsers implementing the mask-border-*, which should be the equivalent. They stand on their own and probably for now deserves a test by themselves.
1 parent 25993c3 commit 1900ae0

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Diff for: webkit-mask-box-enumeration.html

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<title>WebKitMaxBoxImage on CSSStyleDeclaration</title>
3+
<link rel="help" href="https://compat.spec.whatwg.org/#css-simple-aliases">
4+
<meta name="assert" content="This test verifies that these WebKit properties are enumerated on CSSStyleDeclaration" />
5+
<script src="/resources/testharness.js"></script>
6+
<script src="/resources/testharnessreport.js"></script>
7+
<body>
8+
</body>
9+
<script>
10+
const PREFIXED_PROPS = [
11+
'webkitMaskBoxImage',
12+
'webkitMaskBoxImageOutset',
13+
'webkitMaskBoxImageRepeat',
14+
'webkitMaskBoxImageSlice',
15+
'webkitMaskBoxImageSource',
16+
'webkitMaskBoxImageWidth',
17+
];
18+
19+
const docBodyStyle = document.body.style;
20+
for (let prop of PREFIXED_PROPS) {
21+
test(() => {
22+
assert_true(prop in docBodyStyle);
23+
}, `${prop} found on CSSStyleDeclaration`);
24+
}
25+
</script>

0 commit comments

Comments
 (0)