Bug 1715155 - Fix some @property subtest to account for whitespace trimming, and update expectations for another subtest that's now passing. r=xidorn
authorEmilio Cobos Álvarez <emilio@crisal.io>
Tue, 08 Jun 2021 11:26:30 +0000
changeset 582227 c7a3b3284798eecd33b28d2d81c6465988bc7b1b
parent 582226 395c63afbeaa991468136ff846a4d462a422f957
child 582228 806def5efd965e3350ced789156ed7acdfeb8d73
push id144544
push userealvarez@mozilla.com
push dateTue, 08 Jun 2021 11:28:50 +0000
treeherderautoland@c7a3b3284798 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersxidorn
bugs1715155
milestone91.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
Bug 1715155 - Fix some @property subtest to account for whitespace trimming, and update expectations for another subtest that's now passing. r=xidorn Differential Revision: https://phabricator.services.mozilla.com/D117131
testing/web-platform/meta/css/css-properties-values-api/at-property.html.ini
testing/web-platform/tests/css/css-properties-values-api/at-property.html
--- a/testing/web-platform/meta/css/css-properties-values-api/at-property.html.ini
+++ b/testing/web-platform/meta/css/css-properties-values-api/at-property.html.ini
@@ -39,19 +39,16 @@
     expected: FAIL
 
   [Rule applied [*, if(){}, false\]]
     expected: FAIL
 
   [Rule applied [<color>, green, false\]]
     expected: FAIL
 
-  [Inherited properties inherit]
-    expected: FAIL
-
   [Attribute 'initial-value' returns expected value for [rgb(1, 2, 3)\]]
     expected: FAIL
 
   [Rule applied [<resolution>, 96dpi, false\]]
     expected: FAIL
 
   [Attribute 'inherits' returns expected value for [none\]]
     expected: FAIL
--- a/testing/web-platform/tests/css/css-properties-values-api/at-property.html
+++ b/testing/web-platform/tests/css/css-properties-values-api/at-property.html
@@ -195,17 +195,17 @@ test_with_at_property({
 
 test_with_at_property({
   syntax: '"<length>"',
   inherits: false,
   initialValue: undefined
 }, (name, rule) => {
   try {
     target.style = `${name}: calc(1px + 1px);`;
-    assert_equals(getComputedStyle(target).getPropertyValue(name), ' calc(1px + 1px)');
+    assert_equals(getComputedStyle(target).getPropertyValue(name), 'calc(1px + 1px)');
   } finally {
     target.style = '';
   }
 }, 'Non-universal registration are invalid without an initial value');
 
 test_with_at_property({
   syntax: '"*"',
   inherits: false,