blob: 8244afd29dbc9bc7e6b2ab4390c09fbc7cab6c24 [file] [log] [blame]
Anders Hartvoll Ruuddc9c2012018-05-18 09:51:181<!DOCTYPE html>
2<title>Aliases enumerated on CSSStyleDeclaration</title>
Anders Hartvoll Ruuddc9c2012018-05-18 09:51:183<link rel="help" href="https://compat.spec.whatwg.org/#css-simple-aliases">
4<meta name="assert" content="This test verifies that aliases are enumerated on CSSStyleDeclaration" />
Anders Hartvoll Ruuddc9c2012018-05-18 09:51:185<script src="/resources/testharness.js"></script>
6<script src="/resources/testharnessreport.js"></script>
7<body>
8</body>
9<script>
Mike Taylor27600582021-09-22 18:31:0010const PREFIXED_PROPS = [
11 'webkitAlignContent',
12 'webkitAlignItems',
Mike Taylor27600582021-09-22 18:31:0013 'webkitAlignSelf',
Mike Taylor27600582021-09-22 18:31:0014 'webkitAnimation',
Karl Dubost53ae4d82022-06-23 23:58:4215 'webkitAnimationDelay',
16 'webkitAnimationDirection',
17 'webkitAnimationDuration',
18 'webkitAnimationFillMode',
19 'webkitAnimationIterationCount',
20 'webkitAnimationName',
21 'webkitAnimationPlayState',
22 'webkitAnimationTimingFunction',
Mike Taylor27600582021-09-22 18:31:0023 'webkitBackfaceVisibility',
Karl Dubost53ae4d82022-06-23 23:58:4224 'WebKitBackgroundClip',
Mike Taylor27600582021-09-22 18:31:0025 'webkitBackgroundOrigin',
26 'webkitBackgroundSize',
27 'webkitBorderBottomLeftRadius',
28 'webkitBorderBottomRightRadius',
Karl Dubost53ae4d82022-06-23 23:58:4229 'webkitBorderRadius',
Mike Taylor27600582021-09-22 18:31:0030 'webkitBorderTopLeftRadius',
31 'webkitBorderTopRightRadius',
Mike Taylor27600582021-09-22 18:31:0032 'webkitBoxShadow',
Karl Dubost53ae4d82022-06-23 23:58:4233 'webkitBoxSizing',
34 'webkitFilter',
Mike Taylor27600582021-09-22 18:31:0035 'webkitFlex',
36 'webkitFlexBasis',
37 'webkitFlexDirection',
38 'webkitFlexFlow',
39 'webkitFlexGrow',
40 'webkitFlexShrink',
41 'webkitFlexWrap',
Mike Taylor27600582021-09-22 18:31:0042 'webkitJustifyContent',
43 'webkitMask',
Mike Taylor27600582021-09-22 18:31:0044 'webkitMaskClip',
45 'webkitMaskComposite',
46 'webkitMaskImage',
47 'webkitMaskOrigin',
48 'webkitMaskPosition',
49 'webkitMaskRepeat',
50 'webkitMaskSize',
51 'webkitOrder',
52 'webkitPerspective',
53 'webkitPerspectiveOrigin',
Karl Dubost53ae4d82022-06-23 23:58:4254 'webkitTransform',
Mike Taylor27600582021-09-22 18:31:0055 'webkitTransformOrigin',
56 'webkitTransformStyle',
Karl Dubost53ae4d82022-06-23 23:58:4257 'webkitTransition',
Mike Taylor27600582021-09-22 18:31:0058 'webkitTransitionDelay',
59 'webkitTransitionDuration',
60 'webkitTransitionProperty',
61 'webkitTransitionTimingFunction',
Mike Taylor27600582021-09-22 18:31:0062];
Anders Hartvoll Ruuddc9c2012018-05-18 09:51:1863
Mike Taylor27600582021-09-22 18:31:0064const docBodyStyle = document.body.style;
65for (let prop of PREFIXED_PROPS) {
66 test(() => {
67 assert_true(prop in docBodyStyle);
68 }, `${prop} found on CSSStyleDeclaration`);
Anders Hartvoll Ruuddc9c2012018-05-18 09:51:1869}
Anders Hartvoll Ruuddc9c2012018-05-18 09:51:1870</script>