| Anders Hartvoll Ruud | dc9c201 | 2018-05-18 09:51:18 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <title>Aliases enumerated on CSSStyleDeclaration</title> |
| Anders Hartvoll Ruud | dc9c201 | 2018-05-18 09:51:18 | [diff] [blame] | 3 | <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" /> |
| 5 | |
| 6 | <script src="/resources/testharness.js"></script> |
| 7 | <script src="/resources/testharnessreport.js"></script> |
| 8 | <body> |
| 9 | </body> |
| 10 | <script> |
| 11 | |
| 12 | // Note: This is an arbitrarily chosen simple alias from the spec. |
| 13 | const ALIAS_SAMPLE = 'webkitTransform'; |
| 14 | |
| 15 | function find_alias(alias) { |
| 16 | for (let prop in document.body.style) { |
| 17 | if (prop == alias) { |
| 18 | return true; |
| 19 | } |
| 20 | } |
| 21 | return false; |
| 22 | } |
| 23 | |
| 24 | test(() => { |
| 25 | assert_true(find_alias(ALIAS_SAMPLE), `Alias ${ALIAS_SAMPLE} seen`); |
| 26 | }); |
| 27 | </script> |