зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1007278: Restore the distinct text-color on disabled buttons. r=dholbert
This commit is contained in:
Родитель
c4437aa74d
Коммит
b284511edd
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Bug 1007278: test button "disabled" text style</title>
|
||||
<style>
|
||||
button {
|
||||
color: GrayText;
|
||||
border-width: 0;
|
||||
background: transparent;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<button>Some text</button>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Bug 1007278: test button "disabled" text style</title>
|
||||
<style>
|
||||
button {
|
||||
border-width: 0;
|
||||
background: transparent;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<button disabled>Some text</button>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Bug 1007278: test all types of buttons look similar when disabled</title>
|
||||
</head>
|
||||
<body>
|
||||
<button>Some text</button>
|
||||
<button>Some text</button>
|
||||
<button>Reset</button>
|
||||
<button>Submit Query</button>
|
||||
<br>
|
||||
<button disabled>Some text</button>
|
||||
<button disabled>Some text</button>
|
||||
<button disabled>Reset</button>
|
||||
<button disabled>Submit Query</button>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Bug 1007278: test all types of buttons look similar when disabled</title>
|
||||
</head>
|
||||
<body>
|
||||
<button>Some text</button>
|
||||
<input type="button" value="Some text">
|
||||
<input type="reset">
|
||||
<input type="submit">
|
||||
<br>
|
||||
<button disabled>Some text</button>
|
||||
<input disabled type="button" value="Some text">
|
||||
<input disabled type="reset">
|
||||
<input disabled type="submit">
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Bug 1007278: check disabled and non-disabled buttons look different</title>
|
||||
</head>
|
||||
<body>
|
||||
<button disabled>Some text</button>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Bug 1007278: check disabled and non-disabled buttons look different</title>
|
||||
</head>
|
||||
<body>
|
||||
<button>Some text</button>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Bug 1007278: check disabled and non-disabled buttons look different</title>
|
||||
</head>
|
||||
<body>
|
||||
<input disabled type="button" value="Some text">
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Bug 1007278: check disabled and non-disabled buttons look different</title>
|
||||
</head>
|
||||
<body>
|
||||
<input type="button" value="Some text">
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Bug 1007278: check disabled and non-disabled buttons look different</title>
|
||||
</head>
|
||||
<body>
|
||||
<input disabled type="reset">
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Bug 1007278: check disabled and non-disabled buttons look different</title>
|
||||
</head>
|
||||
<body>
|
||||
<input type="reset">
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Bug 1007278: check disabled and non-disabled buttons look different</title>
|
||||
</head>
|
||||
<body>
|
||||
<input disabled type="submit">
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Bug 1007278: check disabled and non-disabled buttons look different</title>
|
||||
</head>
|
||||
<body>
|
||||
<input type="submit">
|
||||
</body>
|
||||
</html>
|
|
@ -17,3 +17,15 @@ fuzzy-if(B2G||Android,125,80) == percent-width-child-2.html percent-width-child
|
|||
!= line-height-button-1.5.html line-height-button-1.0.html
|
||||
!= line-height-input-0.5.html line-height-input-1.0.html
|
||||
!= line-height-input-1.5.html line-height-input-1.0.html
|
||||
|
||||
# Looks like Android and B2G change the text color, but to something slightly
|
||||
# different from ColorGray
|
||||
fails-if(Android||B2G) == disabled-1.html disabled-1-ref.html
|
||||
# While disabled buttons don't look like non-disabled buttons, <button disabled>
|
||||
# is different from other disabled buttons for B2G ICS Emulator (see bug 1009714)
|
||||
fails-if(B2G) == disabled-2.html disabled-2-ref.html
|
||||
|
||||
!= disabled-3.html disabled-3-notref.html
|
||||
!= disabled-4.html disabled-4-notref.html
|
||||
!= disabled-5.html disabled-5-notref.html
|
||||
!= disabled-6.html disabled-6-notref.html
|
||||
|
|
|
@ -664,6 +664,7 @@ input[type="submit"]:disabled {
|
|||
cursor: inherit;
|
||||
}
|
||||
|
||||
button:disabled:active, button:disabled,
|
||||
input[type="reset"]:disabled:active,
|
||||
input[type="reset"]:disabled,
|
||||
input[type="button"]:disabled:active,
|
||||
|
|
Загрузка…
Ссылка в новой задаче