mirror of
https://github.com/servo/servo.git
synced 2025-09-30 16:49:16 +01:00
Move style_is_in_doc.html to wpt reftests.
This commit is contained in:
parent
cb6c43c18e
commit
b17a395415
4 changed files with 25 additions and 1 deletions
|
@ -603,6 +603,18 @@
|
|||
"url": "/_mozilla/css/stacking_context_rtl.html"
|
||||
}
|
||||
],
|
||||
"css/style_is_in_doc.html": [
|
||||
{
|
||||
"path": "css/style_is_in_doc.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/style_is_in_doc_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/style_is_in_doc.html"
|
||||
}
|
||||
],
|
||||
"css/submit_focus_a.html": [
|
||||
{
|
||||
"path": "css/submit_focus_a.html",
|
||||
|
@ -2600,6 +2612,18 @@
|
|||
"url": "/_mozilla/css/stacking_context_rtl.html"
|
||||
}
|
||||
],
|
||||
"css/style_is_in_doc.html": [
|
||||
{
|
||||
"path": "css/style_is_in_doc.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/style_is_in_doc_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/style_is_in_doc.html"
|
||||
}
|
||||
],
|
||||
"css/submit_focus_a.html": [
|
||||
{
|
||||
"path": "css/submit_focus_a.html",
|
||||
|
|
29
tests/wpt/mozilla/tests/css/style_is_in_doc.html
Normal file
29
tests/wpt/mozilla/tests/css/style_is_in_doc.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='style_is_in_doc_ref.html'>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
.from_html { color: blue; }
|
||||
.is_not_in_doc { color: grey; }
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var append_later = document.createElement('style');
|
||||
append_later.textContent = ".append_later { color: green; }";
|
||||
document.head.appendChild(append_later);
|
||||
|
||||
var text_set_later = document.createElement('style');
|
||||
document.head.appendChild(text_set_later);
|
||||
text_set_later.textContent = ".text_set_later { color: yellow; }";
|
||||
|
||||
var is_not_in_doc = document.createElement('style');
|
||||
is_not_in_doc = ".is_not_in_doc { color: red; }";
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<p class="from_html">Style from html element</p>
|
||||
<p class="append_later">Style from an element added in javascript</p>
|
||||
<p class="text_set_later">Style from an element with content set in javascript</p>
|
||||
<p class="is_not_in_doc">Style that is never in the document</p>
|
||||
</body>
|
||||
</html>
|
18
tests/wpt/mozilla/tests/css/style_is_in_doc_ref.html
Normal file
18
tests/wpt/mozilla/tests/css/style_is_in_doc_ref.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
.from_html { color: blue; }
|
||||
.append_later { color: green; }
|
||||
.text_set_later { color: yellow; }
|
||||
.is_not_in_doc { color: grey; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="from_html">Style from html element</p>
|
||||
<p class="append_later">Style from an element added in javascript</p>
|
||||
<p class="text_set_later">Style from an element with content set in javascript</p>
|
||||
<p class="is_not_in_doc">Style that is never in the document</p>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue