Bug 1043461 - Followup to ensure we still test custom property position when the UA style sheet doesn't have custom properties in it. r=dholbert
authorCameron McCormack <cam@mcc.id.au>
Fri, 23 Oct 2015 17:09:06 +1100
changeset 304353 bceff5c97cf5a4b122398e1114bfbb061765f0e3
parent 304352 584b2cbb6b6f5d44a9ba5fd28475de319dd4239e
child 304354 bca12d6bccc2deabe18cbba72b96fcc71981e143
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs1043461
milestone44.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 1043461 - Followup to ensure we still test custom property position when the UA style sheet doesn't have custom properties in it. r=dholbert
layout/style/test/test_bug657143.html
--- a/layout/style/test/test_bug657143.html
+++ b/layout/style/test/test_bug657143.html
@@ -7,16 +7,21 @@ https://bugzilla.mozilla.org/show_bug.cg
   <title>Test for Bug 657143</title>
   <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
 </head>
 <body>
 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=657143">Mozilla Bug 657143</a>
 <p id="display"></p>
+<style>
+/* Ensure that there is at least one custom property on the root element's
+   computed style */
+:root { --test: some value; }
+</style>
 <div id="content" style="display: none">
   
 </div>
 <pre id="test">
 <script class="testbody" type="text/javascript">
 
 /** Test for Bug 657143 **/
 
@@ -79,17 +84,17 @@ for (var i = 0, j = styleList.length; i 
 var cssB = cssA.slice(0).sort(),
     mozB = mozA.slice(0).sort(),
     svgB = svgA.slice(0).sort();
 
 is(cssA.toString(), cssB.toString(), 'CSS property list should be alphabetical');
 is(mozA.toString(), mozB.toString(), 'Experimental -moz- CSS property list should be alphabetical');
 is(svgA.toString(), svgB.toString(), 'SVG property list should be alphabetical');
 
-// We don't test that the custom property is sorted, as the CSSOM
+// We don't test that the custom property list is sorted, as the CSSOM
 // specification does not yet require it, and we don't return them
 // in sorted order.
 
 ok(!cssA.find(isPrefixed), 'Experimental -moz- CSS properties should not be in the mature CSS property list');
 ok(!cssA.find(isCustom), 'Custom CSS properties should not be in the mature CSS property list');
 ok(!mozA.find(isNotPrefixed), 'Experimental -moz- CSS property list should not contain mature CSS properties');
 ok(!mozA.find(isCustom), 'Custom CSS properties should not be in the experimental -moz- CSS property list');
 ok(!svgA.find(isPrefixed), 'Experimental -moz- CSS properties should not be in the SVG property list');