Bug 452915 - Remove default border from linked images per HTML5. r=dbaron.
--HG-- extra : rebase_source : 10b90a485cffe44c01493d4469eec2204724e2ce
This commit is contained in:
Родитель
37b26b7092
Коммит
afe83fa3bb
|
@ -113,31 +113,31 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=429659
|
|||
testThis("nonLinkedImage", null, "moz.png", 89, 38);
|
||||
|
||||
// Test linked image
|
||||
testThis("linkedImage", null, "moz.png", 93, 42);
|
||||
testThis("linkedImage", null, "moz.png", 89, 38);
|
||||
|
||||
// Test non-linked image with alt attribute
|
||||
testThis("nonLinkedImageWithAlt", "MoFo", "moz.png", 89, 38);
|
||||
|
||||
// Test linked image with alt attribute
|
||||
testThis("linkedImageWithAlt", "MoFo link", "moz.png", 93, 42);
|
||||
testThis("linkedImageWithAlt", "MoFo link", "moz.png", 89, 38);
|
||||
|
||||
// Test non-linked image with title attribute
|
||||
testThis("nonLinkedImageWithTitle", "MoFo logo", "moz.png", 89, 38);
|
||||
|
||||
// Test linked image with title attribute
|
||||
testThis("linkedImageWithTitle", "Link to MoFo", "moz.png", 93, 42);
|
||||
testThis("linkedImageWithTitle", "Link to MoFo", "moz.png", 89, 38);
|
||||
|
||||
// Test simple image with empty alt attribute
|
||||
testThis("nonLinkedImageEmptyAlt", "", "moz.png", 89, 38);
|
||||
|
||||
// Test linked image with empty alt attribute
|
||||
testThis("linkedImageEmptyAlt", "", "moz.png", 93, 42);
|
||||
testThis("linkedImageEmptyAlt", "", "moz.png", 89, 38);
|
||||
|
||||
// Test simple image with empty alt attribute and title
|
||||
testThis("nonLinkedImageEmptyAltAndTitle", "MozillaFoundation", "moz.png", 89, 38);
|
||||
|
||||
// Test linked image with empty alt attribute and title
|
||||
testThis("linkedImageEmptyAltAndTitle", "Link to Mozilla Foundation", "moz.png", 93, 42);
|
||||
testThis("linkedImageEmptyAltAndTitle", "Link to Mozilla Foundation", "moz.png", 89, 38);
|
||||
|
||||
// Image with long desc
|
||||
var actionNamesArray = new Array("showlongdesc");
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>HTML5 Rendering section: No border for linked images.</title>
|
||||
</head>
|
||||
<body><img src="solidblue.png"></body>
|
||||
</html>
|
|
@ -0,0 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>HTML5 Rendering section: No border for linked images.</title>
|
||||
</head>
|
||||
<body><a href="about:blank"><img src="solidblue.png"></a></body>
|
||||
</html>
|
|
@ -1137,6 +1137,7 @@ random == 445004-1.html 445004-1-ref.html # bug 472268
|
|||
== 451168-1.html 451168-1-ref.html
|
||||
== 451876-1.html 451876-1-ref.html
|
||||
== 451876-2.html 451876-2-ref.html
|
||||
== 452915-1.html 452915-1-ref.html
|
||||
== 452964-1.html 452964-1-ref.html
|
||||
== 454361.html about:blank
|
||||
== 455105-1.html 455105-ref.html
|
||||
|
|
|
@ -526,10 +526,6 @@ hr[size="1"] {
|
|||
border-style: solid none none none;
|
||||
}
|
||||
|
||||
*|*:-moz-any-link img, img[usemap], object[usemap] {
|
||||
border: 2px solid;
|
||||
}
|
||||
|
||||
img:-moz-broken::before, input:-moz-broken::before,
|
||||
img:-moz-user-disabled::before, input:-moz-user-disabled::before,
|
||||
img:-moz-loading::before, input:-moz-loading::before,
|
||||
|
|
Загрузка…
Ссылка в новой задаче