mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
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:
parent
b4684c64dc
commit
ee4297061e
@ -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]
|
||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user