blob: cdd9cc8eaefb94218118d9e6a74727bf5c716c17 [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" />
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.
13const ALIAS_SAMPLE = 'webkitTransform';
14
15function 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
24test(() => {
25 assert_true(find_alias(ALIAS_SAMPLE), `Alias ${ALIAS_SAMPLE} seen`);
26});
27</script>