Bug 1876542 - Fix test_style_struct_copy_constructors.html.

See bug 1887221 for the underlying cause of the failure (the test is
technically sound but it fails on other engines too).

MANUAL PUSH: Test-only orange fix CLOSED TREE
This commit is contained in:
Emilio Cobos Álvarez 2024-03-22 23:41:34 +01:00
parent 29e9ea00d7
commit c5008c1249

View File

@ -64,6 +64,12 @@ for (var prop in gCSSProperties) {
}
/** Test using inheritance **/
// TODO(bug 1887221): Zoom right now doesn't apply to explicitly inherited
// values, so remove it to get consistent results.
gRule1.style.removeProperty("zoom");
gRule2.style.removeProperty("zoom");
for (var prop in gCSSProperties) {
var info = gCSSProperties[prop];
if (info.inherited && !("subproperties" in info)) {
@ -79,14 +85,6 @@ for (var prop in gCSSProperties) {
}
}
for (var prop in gCSSProperties) {
var info = gCSSProperties[prop];
if (!("subproperties" in info)) {
gRule1.style.removeProperty(prop);
gRule2.style.removeProperty(prop);
}
}
</script>
</pre>
</body>