Fix #34493 - Adds missing tests for the compat spec (#34520)
* Issue #34493 - Orders alphabetically
* Issue #34493 - Adds webkitBackgroundClip to the list of alias
This was forgotten when handling
https://github.com/whatwg/compat/issues/195
* Issue #34493 - Adds webkitBoxSizing to the list of alias
It is correctly defines in browsers and everyone implements it.
This was defined initially in
https://github.com/whatwg/compat/issues/9
* Issue #34493 - Removes webkitMaskBox* from the list of alias
As shown in https://github.com/whatwg/compat/issues/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.
* Issue #34493 - Adds webkitMaskBox* to a unique test
As shown in https://github.com/whatwg/compat/issues/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.
diff --git a/compat/css-style-declaration-alias-enumeration.html b/compat/css-style-declaration-alias-enumeration.html
index 75776e1..8244afd 100644
--- a/compat/css-style-declaration-alias-enumeration.html
+++ b/compat/css-style-declaration-alias-enumeration.html
@@ -10,25 +10,28 @@
const PREFIXED_PROPS = [
'webkitAlignContent',
'webkitAlignItems',
- 'webkitAnimationName',
'webkitAlignSelf',
- 'webkitAnimationDuration',
- 'webkitAnimationTimingFunction',
- 'webkitAnimationIterationCount',
- 'webkitAnimationDirection',
- 'webkitAnimationPlayState',
- 'webkitAnimationDelay',
- 'webkitAnimationFillMode',
'webkitAnimation',
+ 'webkitAnimationDelay',
+ 'webkitAnimationDirection',
+ 'webkitAnimationDuration',
+ 'webkitAnimationFillMode',
+ 'webkitAnimationIterationCount',
+ 'webkitAnimationName',
+ 'webkitAnimationPlayState',
+ 'webkitAnimationTimingFunction',
'webkitBackfaceVisibility',
+ 'WebKitBackgroundClip',
'webkitBackgroundOrigin',
'webkitBackgroundSize',
'webkitBorderBottomLeftRadius',
'webkitBorderBottomRightRadius',
+ 'webkitBorderRadius',
'webkitBorderTopLeftRadius',
'webkitBorderTopRightRadius',
- 'webkitBorderRadius',
'webkitBoxShadow',
+ 'webkitBoxSizing',
+ 'webkitFilter',
'webkitFlex',
'webkitFlexBasis',
'webkitFlexDirection',
@@ -36,15 +39,8 @@
'webkitFlexGrow',
'webkitFlexShrink',
'webkitFlexWrap',
- 'webkitFilter',
'webkitJustifyContent',
'webkitMask',
- 'webkitMaskBoxImage',
- 'webkitMaskBoxImageOutset',
- 'webkitMaskBoxImageRepeat',
- 'webkitMaskBoxImageSlice',
- 'webkitMaskBoxImageSource',
- 'webkitMaskBoxImageWidth',
'webkitMaskClip',
'webkitMaskComposite',
'webkitMaskImage',
@@ -55,14 +51,14 @@
'webkitOrder',
'webkitPerspective',
'webkitPerspectiveOrigin',
+ 'webkitTransform',
'webkitTransformOrigin',
'webkitTransformStyle',
- 'webkitTransform',
+ 'webkitTransition',
'webkitTransitionDelay',
'webkitTransitionDuration',
'webkitTransitionProperty',
'webkitTransitionTimingFunction',
- 'webkitTransition',
];
const docBodyStyle = document.body.style;
diff --git a/webkit-mask-box-enumeration.html b/webkit-mask-box-enumeration.html
new file mode 100644
index 0000000..0481702
--- /dev/null
+++ b/webkit-mask-box-enumeration.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<title>WebKitMaxBoxImage on CSSStyleDeclaration</title>
+<link rel="help" href="https://compat.spec.whatwg.org/#css-simple-aliases">
+<meta name="assert" content="This test verifies that these WebKit properties are enumerated on CSSStyleDeclaration" />
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<body>
+</body>
+<script>
+const PREFIXED_PROPS = [
+ 'webkitMaskBoxImage',
+ 'webkitMaskBoxImageOutset',
+ 'webkitMaskBoxImageRepeat',
+ 'webkitMaskBoxImageSlice',
+ 'webkitMaskBoxImageSource',
+ 'webkitMaskBoxImageWidth',
+];
+
+const docBodyStyle = document.body.style;
+for (let prop of PREFIXED_PROPS) {
+ test(() => {
+ assert_true(prop in docBodyStyle);
+ }, `${prop} found on CSSStyleDeclaration`);
+}
+</script>
\ No newline at end of file