author | Anders Hartvoll Ruud <andruud@chromium.org> |
Fri, 23 Apr 2021 10:20:05 +0000 | |
changeset 577264 | 128bb9ccf9c9da8e4c55388779c39e01b38e2092 |
parent 577263 | cb179cb7a5739ccc91d8acbff69600de5950c63a |
child 577265 | 3aa2e813a4e3b2ae70351c636e7226f8d8bd3012 |
push id | 141827 |
push user | wptsync@mozilla.com |
push date | Sat, 24 Apr 2021 02:11:12 +0000 |
treeherder | autoland@3a7d9d49c316 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | testonly |
bugs | 1705517, 28525, 949807, 1199142, 2822260, 872446, 2829151, 873035 |
milestone | 90.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/computed/computed.tentative.html +++ b/testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/computed/computed.tentative.html @@ -14,17 +14,18 @@ const target = document.getElementById('target'); const styleMap = target.computedStyleMap(); test(() => { const computedStyle = [...getComputedStyle(target)].sort(); const properties = [...styleMap.keys()]; - assert_equals(properties.length, computedStyle.length); + // Two extra entries for custom properties + assert_equals(properties.length, computedStyle.length + 2); for (let i = 0; i < computedStyle.length; i++) { assert_true(properties.includes(computedStyle[i])); assert_not_equals(styleMap.get(computedStyle[i]), null); assert_not_equals(styleMap.getAll(computedStyle[i]).length, 0); assert_true(styleMap.has(computedStyle[i])); } }, 'Computed StylePropertyMap contains every CSS property');
deleted file mode 100644 --- a/testing/web-platform/tests/css/cssom/cssstyledeclaration-registered-custom-properties.html +++ /dev/null @@ -1,58 +0,0 @@ -<!DOCTYPE html> -<title>Computed CSSStyleDeclaration includes registered custom properties</title> -<link rel="help" href="https://drafts.csswg.org/cssom/#dom-window-getcomputedstyle"> -<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/1316"> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<style> - @property --non-inherited-length { - syntax: "<length>"; - inherits: false; - initial-value: 0px; - } - @property --inherited-length { - syntax: "<length>"; - inherits: true; - initial-value: 0px; - } - @property --universal-with-initial { - syntax: "*"; - inherits: false; - initial-value: foo; - } - @property --universal-without-initial { - syntax: "*"; - inherits: false; - } - #outer { --non-registered-outer: 1px; } - #inner { --non-registered-inner: 2px; } - #sibling { --universal-without-initial: bar; } -</style> -<div id=outer> - <div id=inner></div> - <div id=sibling></div> -</div> -<script> - const assert_present = (props, name) => assert_not_equals(props.indexOf(name), -1); - const assert_absent = (props, name) => assert_equals(props.indexOf(name), -1); - - test(function() { - let props = Array.from(getComputedStyle(inner)); - assert_present(props, '--non-inherited-length'); - assert_present(props, '--inherited-length'); - assert_present(props, '--non-registered-outer'); - assert_present(props, '--non-registered-inner'); - assert_present(props, '--universal-with-initial'); - assert_absent(props, '--universal-without-initial'); - }, 'Registered custom properties are included in CSSComputedStyleDeclaration'); - - test(function() { - let props = Array.from(getComputedStyle(sibling)); - assert_present(props, '--non-inherited-length'); - assert_present(props, '--inherited-length'); - assert_present(props, '--non-registered-outer'); - assert_present(props, '--universal-with-initial'); - assert_present(props, '--universal-without-initial'); - assert_absent(props, '--non-registered-inner'); - }, 'Only relevant custom properties are included'); -</script>