Bug 1207734 - Part 9.b. (testing) Skip the individual transform functions in when stylo is disabled in test_bug1112014.html. r=dholbert
The individual transform functions are not implemented in the Gecko style
system. Making InspectorUtils.cssPropertySupportsType return false when using
the Gecko style system proved difficult and since stylo disabled builds are no
longer expected to be shipped, this patch simply skips testing these properties
when using the Gecko style system.
MozReview-Commit-ID: LwYKw8qge2H
--- a/layout/style/test/test_bug1112014.html
+++ b/layout/style/test/test_bug1112014.html
@@ -93,16 +93,24 @@ https://bugzilla.mozilla.org/show_bug.cg
}
}
}
is(reps.join(","), "", "all types have representative test value");
for (let propertyName in gCSSProperties) {
let prop = gCSSProperties[propertyName];
+ // We don't implement the individual transform properties in the Gecko style
+ // system but Inspector.cssPropertySupportsType will still report the
+ // types these properties *would* support if we did implement them.
+ if (!SpecialPowers.DOMWindowUtils.isStyledByServo &&
+ ['rotate', 'scale', 'translate'].includes(propertyName)) {
+ continue;
+ }
+
for (let iter in testValues) {
let testValue = testValues[iter];
if (propertyName in overrideValues &&
iter in overrideValues[propertyName]) {
testValue = overrideValues[propertyName][iter];
}
let supported =