Bug 1309752: Transition tests. r=birtles
authorEmilio Cobos Álvarez <emilio@crisal.io>
Tue, 17 Jul 2018 15:46:31 +0200
changeset 427124 e9afe9ab29893fe9c986677e948ae810fe96bfb6
parent 427123 9ba634ab98bd3e7a770ab5c226bf83237590bd81
child 427125 1467f56b0eeeacb76dc038382dbc62c45a23bef9
push id34293
push usercsabou@mozilla.com
push dateWed, 18 Jul 2018 17:20:23 +0000
treeherdermozilla-central@117473983569 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbirtles
bugs1309752
milestone63.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 1309752: Transition tests. r=birtles MozReview-Commit-ID: 6nLBFvSmQCN
layout/style/test/test_transitions_per_property.html
--- a/layout/style/test/test_transitions_per_property.html
+++ b/layout/style/test/test_transitions_per_property.html
@@ -113,17 +113,17 @@ var supported_properties = {
                             test_currentcolor_transition ],
     "border-right-width": [ test_length_transition,
                             test_length_clamped ],
     "border-spacing": [ test_length_pair_transition,
                         test_length_pair_transition_clamped ],
     "border-top-color": [ test_color_transition,
                           test_currentcolor_transition ],
     "border-top-width": [ test_length_transition,
-                           test_length_clamped ],
+                          test_length_clamped ],
     "bottom": [ test_length_transition, test_percent_transition,
                 test_length_percent_calc_transition,
                 test_length_unclamped, test_percent_unclamped ],
     "caret-color": [ test_color_transition,
                      test_currentcolor_transition,
                      test_auto_color_transition ],
     "clip": [ test_rect_transition ],
     "clip-path": [ test_basic_shape_or_url_transition ],
@@ -328,16 +328,31 @@ if (IsCSSPropertyPrefEnabled("layout.css
   ];
   supported_properties["scrollbar-track-color"] = [
     test_color_transition,
     test_currentcolor_transition,
     test_auto_color_transition,
   ];
 }
 
+// Logical properties.
+for (const logical_side of ["inline-start", "inline-end", "block-start", "block-end"]) {
+  supported_properties["border-" + logical_side + "-color"] = supported_properties["border-top-color"];
+  supported_properties["border-" + logical_side + "-width"] = supported_properties["border-top-width"];
+  supported_properties["margin-" + logical_side] = supported_properties["margin-top"];
+  supported_properties["padding-" + logical_side] = supported_properties["padding-top"];
+  supported_properties["inset-" + logical_side] = supported_properties["top"];
+}
+
+for (const logical_size of ["inline", "block"]) {
+  supported_properties[logical_size + "-size"] = supported_properties["width"];
+  supported_properties["min-" + logical_size + "-size"] = supported_properties["min-width"];
+  supported_properties["max-" + logical_size + "-size"] = supported_properties["max-width"];
+}
+
 var div = document.getElementById("display");
 var OMTAdiv = document.getElementById("transformTest");
 var cs = getComputedStyle(div, "");
 var OMTACs = getComputedStyle(OMTAdiv, "");
 var winUtils = SpecialPowers.getDOMWindowUtils(window);
 
 function computeMatrix(v) {
   div.style.setProperty("transform", v, "");