зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1431539: Tests. r=dholbert
MozReview-Commit-ID: FSkzeMjIWN1
This commit is contained in:
Родитель
78189660d8
Коммит
edd0b400cd
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Test reference for bug 1431539</title>
|
||||
<style>
|
||||
a { text-decoration: none }
|
||||
span { color: green }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<a href="visited-page.html">
|
||||
<a href="visited-page.html">visited</a>
|
||||
<span>Should be green</span>
|
||||
</a>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Test for bug 1431539</title>
|
||||
<style>
|
||||
a { text-decoration: none }
|
||||
span { color: green }
|
||||
:-moz-any(:visited) + span {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<a href="visited-page.html">
|
||||
<a href="visited-page.html">visited</a>
|
||||
<span>Should be green</span>
|
||||
</a>
|
||||
</body>
|
||||
</html>
|
|
@ -90,6 +90,8 @@ TEST_HARNESS_FILES.testing.mochitest.tests.layout.style.test['css-visited'] += [
|
|||
'/layout/reftests/css-visited/selector-adj-sibling-1.html',
|
||||
'/layout/reftests/css-visited/selector-adj-sibling-2-ref.html',
|
||||
'/layout/reftests/css-visited/selector-adj-sibling-2.html',
|
||||
'/layout/reftests/css-visited/selector-adj-sibling-3-ref.xhtml',
|
||||
'/layout/reftests/css-visited/selector-adj-sibling-3.xhtml',
|
||||
'/layout/reftests/css-visited/selector-any-sibling-1-ref.html',
|
||||
'/layout/reftests/css-visited/selector-any-sibling-1.html',
|
||||
'/layout/reftests/css-visited/selector-any-sibling-2-ref.html',
|
||||
|
|
|
@ -69,6 +69,7 @@ var gTests = [
|
|||
"== selector-child-2.xhtml selector-child-2-ref.xhtml",
|
||||
"== selector-adj-sibling-1.html selector-adj-sibling-1-ref.html",
|
||||
"== selector-adj-sibling-2.html selector-adj-sibling-2-ref.html",
|
||||
"== selector-adj-sibling-3.xhtml selector-adj-sibling-3-ref.xhtml",
|
||||
"== selector-any-sibling-1.html selector-any-sibling-1-ref.html",
|
||||
"== selector-any-sibling-2.html selector-any-sibling-2-ref.html",
|
||||
"== subject-of-selector-descendant-1.html subject-of-selector-1-ref.html",
|
||||
|
|
Загрузка…
Ссылка в новой задаче