Backed out changeset 1df4622b548b (bug 1405635) for failing mochitest layout/style/test/test_custom_content_inheritance.html. r=backout on a CLOSED TREE

This commit is contained in:
Sebastian Hengst 2017-10-05 17:39:20 +02:00
parent b4684c64dc
commit ee4297061e
2 changed files with 0 additions and 27 deletions

View File

@ -196,7 +196,6 @@ skip-if = toolkit == 'android' #bug 536603
[test_css_parse_error_smoketest.html]
[test_css_supports.html]
[test_css_supports_variables.html]
[test_custom_content_inheritance.html]
[test_default_bidi_css.html]
[test_default_computed_style.html]
[test_descriptor_storage.html]

View File

@ -1,26 +0,0 @@
<!doctype html>
<title>Test for custom content inheritance</title>
<style>
html { color: red !important; }
</style>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script>
onload = function() {
try {
let doc = SpecialPowers.wrap(document);
let div = doc.createElement('div');
div.id = "test-id";
ok(!!doc.insertAnonymousContent,
"Must have the insertAnonymousContent API");
let content = doc.insertAnonymousContent(div);
ok(!!content, "Must have anon content");
isnot(content.getComputedStylePropertyValue("test-id", "color"),
getComputedStyle(document.documentElement).color,
"Custom anon content shouldn't inherit from the root element");
} catch(e) {
ok(false, "Threw: " + e);
}
SimpleTest.finish();
};
SimpleTest.waitForExplicitFinish();
</script>