| <!doctype html> |
| <meta charset="utf-8"> |
| <title>StylePropertyMap.getProperties tests</title> |
| <link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-getproperties"> |
| <script src="/resources/testharness.js"></script> |
| <script src="/resources/testharnessreport.js"></script> |
| <script src="../../resources/testhelper.js"></script> |
| <body> |
| <script> |
| 'use strict'; |
| |
| test(t => { |
| const styleMap = createComputedStyleMap(t, '--A: A; width: 0px; --C: C; transition-duration: 1s, 2s; color: red; --B: B;'); |
| const expectedProperties = [...getComputedStyle(document.body)].sort().concat('--A', '--B', '--C'); |
| assert_array_equals(styleMap.getProperties(), expectedProperties); |
| }, 'StylePropertyMap.getProperties returns property names in correct order'); |
| |
| </script> |