зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1406254 - Visited reftest for ::first-line inheritance. r=emilio
MozReview-Commit-ID: 4ZOlVvBuSfT
This commit is contained in:
Родитель
5b1a5502d7
Коммит
aa03c11bd5
|
@ -0,0 +1,16 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<style>
|
||||||
|
.unvisited {
|
||||||
|
color: blue;
|
||||||
|
}
|
||||||
|
.visited {
|
||||||
|
color: purple;
|
||||||
|
}
|
||||||
|
.first-line {
|
||||||
|
color: green;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div class="first-line">Visited</div>
|
||||||
|
<div class="first-line">Visited with span</div>
|
||||||
|
<div class="unvisited">Visited with inner unvisited</div>
|
||||||
|
<div class="visited">Visited with inner visited</div>
|
|
@ -0,0 +1,20 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<style>
|
||||||
|
a {
|
||||||
|
display: block;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
:link {
|
||||||
|
color: blue;
|
||||||
|
}
|
||||||
|
:visited {
|
||||||
|
color: purple;
|
||||||
|
}
|
||||||
|
.outer::first-line {
|
||||||
|
color: green;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<a class="outer" href>Visited</a>
|
||||||
|
<a class="outer" href><span>Visited with span</span></a>
|
||||||
|
<a class="outer" href><a href="unvisited-page.html">Visited with inner unvisited</a></a>
|
||||||
|
<a class="outer" href><a href>Visited with inner visited</a></a>
|
|
@ -60,6 +60,8 @@ TEST_HARNESS_FILES.testing.mochitest.tests.layout.style.test['css-visited'] += [
|
||||||
'/layout/reftests/css-visited/color-on-visited-1-ref.html',
|
'/layout/reftests/css-visited/color-on-visited-1-ref.html',
|
||||||
'/layout/reftests/css-visited/color-on-visited-1.html',
|
'/layout/reftests/css-visited/color-on-visited-1.html',
|
||||||
'/layout/reftests/css-visited/color-on-visited-before-1.html',
|
'/layout/reftests/css-visited/color-on-visited-before-1.html',
|
||||||
|
'/layout/reftests/css-visited/color-on-visited-text-1-ref.html',
|
||||||
|
'/layout/reftests/css-visited/color-on-visited-text-1.html',
|
||||||
'/layout/reftests/css-visited/column-rule-1-notref.html',
|
'/layout/reftests/css-visited/column-rule-1-notref.html',
|
||||||
'/layout/reftests/css-visited/column-rule-1-ref.html',
|
'/layout/reftests/css-visited/column-rule-1-ref.html',
|
||||||
'/layout/reftests/css-visited/column-rule-1.html',
|
'/layout/reftests/css-visited/column-rule-1.html',
|
||||||
|
|
|
@ -38,6 +38,7 @@ var gTests = [
|
||||||
"== color-on-link-before-1.html color-on-link-1-ref.html",
|
"== color-on-link-before-1.html color-on-link-1-ref.html",
|
||||||
"== color-on-visited-1.html color-on-visited-1-ref.html",
|
"== color-on-visited-1.html color-on-visited-1-ref.html",
|
||||||
"== color-on-visited-before-1.html color-on-visited-1-ref.html",
|
"== color-on-visited-before-1.html color-on-visited-1-ref.html",
|
||||||
|
"== color-on-visited-text-1.html color-on-visited-text-1-ref.html",
|
||||||
"!= content-color-on-link-before-1-ref.html content-color-on-visited-before-1-ref.html",
|
"!= content-color-on-link-before-1-ref.html content-color-on-visited-before-1-ref.html",
|
||||||
"== content-color-on-link-before-1.html content-color-on-link-before-1-ref.html",
|
"== content-color-on-link-before-1.html content-color-on-link-before-1-ref.html",
|
||||||
"== content-color-on-visited-before-1.html content-color-on-visited-before-1-ref.html",
|
"== content-color-on-visited-before-1.html content-color-on-visited-before-1-ref.html",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче