зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1348481 Part 5: Add new reftests to test servo stylesheet set integrity and cloning behavior. r=heycam
MozReview-Commit-ID: CNFH6eqvuhK --HG-- extra : rebase_source : 1a4691fd613cc7780ed89b01650354ea5f8d959e
This commit is contained in:
Родитель
5426d724b2
Коммит
f7a48d11c2
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<link id="target" rel="stylesheet" href="data:text/css,">
|
||||
<link rel="stylesheet" href="data:text/css,div { color: green }">
|
||||
<link rel="stylesheet" href="data:text/css,">
|
||||
<div>This should be green</div>
|
||||
<script>
|
||||
onload = function() {
|
||||
var link = document.createElement("link");
|
||||
link.rel = "stylesheet";
|
||||
link.href = "data:text/css,div { color: red; }";
|
||||
link.title = "turnitred";
|
||||
var target = document.getElementById("target");
|
||||
target.parentNode.insertBefore(link, target);
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="stylesheet" href="data:text/css,div { color: green }">
|
||||
<link rel="stylesheet" href="data:text/css,div { color: green }">
|
||||
<div>This should be green</div>
|
||||
<script>
|
||||
onload = function() {
|
||||
var links = document.getElementsByTagName("link");
|
||||
links[0].remove();
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="stylesheet" href="data:text/css,div { color: green }">
|
||||
<link rel="stylesheet" href="data:text/css,div { color: green }">
|
||||
<div>This should be green</div>
|
||||
<script>
|
||||
onload = function() {
|
||||
var links = document.getElementsByTagName("link");
|
||||
links[0].sheet.cssRules[0].style.color = "red";
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
div {
|
||||
color: green;
|
||||
}
|
||||
</style>
|
||||
<div>This should be green</div>
|
|
@ -1990,6 +1990,9 @@ fuzzy(2,40000) == 1316719-1c.html 1316719-1-ref.html
|
|||
skip-if(Android) != 1318769-1.html 1318769-1-ref.html
|
||||
fails-if(stylo) == 1322512-1.html 1322512-1-ref.html
|
||||
== 1330051.svg 1330051-ref.svg
|
||||
== 1348481-1.html 1348481-ref.html
|
||||
== 1348481-2.html 1348481-ref.html
|
||||
fails-if(stylo) == 1348481-3.html 1348481-ref.html
|
||||
== 1352464-1.html 1352464-1-ref.html
|
||||
== 1358375-1.html 1358375-ref.html
|
||||
== 1358375-2.html 1358375-ref.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче