Move attr_exists_selector.html to wpt reftests.

This commit is contained in:
Ms2ger 2015-10-08 17:20:18 +02:00
parent 2ca5f85d4e
commit 1f37ac0d71
4 changed files with 25 additions and 1 deletions

View file

@ -171,6 +171,18 @@
"url": "/_mozilla/css/anon_block_inherit_a.html"
}
],
"css/attr_exists_selector.html": [
{
"path": "css/attr_exists_selector.html",
"references": [
[
"/_mozilla/css/attr_exists_selector_ref.html",
"=="
]
],
"url": "/_mozilla/css/attr_exists_selector.html"
}
],
"css/background.html": [
{
"path": "css/background.html",
@ -1136,6 +1148,18 @@
"url": "/_mozilla/css/anon_block_inherit_a.html"
}
],
"css/attr_exists_selector.html": [
{
"path": "css/attr_exists_selector.html",
"references": [
[
"/_mozilla/css/attr_exists_selector_ref.html",
"=="
]
],
"url": "/_mozilla/css/attr_exists_selector.html"
}
],
"css/background.html": [
{
"path": "css/background.html",

View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<title>Attribute exists selector: [foo] and [*|foo]</title>
<link rel=match href=attr_exists_selector_ref.html>
<style>
p[data-green] { color: green }
p[*|data-red] { color: red }
</style>
</head>
<body>
<p data-green="">This text should be green.</p>
<p data-red="">This text should be red.</p>
<p>This text should be black.</p>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>Attribute exists selector: [foo] (reference)</title>
</head>
<body>
<p style="color: green">This text should be green.</p>
<p style="color: red">This text should be red.</p>
<p>This text should be black.</p>
</body>
</html>