зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1431041: Make placeholder apply to <input type="number">. r=smaug
MozReview-Commit-ID: GLbdLxHLiH4 --HG-- extra : rebase_source : 18454d0720e45bc2734f01d9a84eaad33a36e848
This commit is contained in:
Родитель
d082d18417
Коммит
0d4c1d977b
|
@ -7026,7 +7026,7 @@ HTMLInputElement::PlaceholderApplies() const
|
|||
return false;
|
||||
}
|
||||
|
||||
return IsSingleLineTextControl(false);
|
||||
return IsSingleLineTextOrNumberControl(false);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<link rel='stylesheet' type='text/css' href='style-shown.css'>
|
||||
<body>
|
||||
<input class='shown-ref' value='foo'>
|
||||
</body>
|
||||
</html>
|
||||
<link rel='stylesheet' href='style-shown.css'>
|
||||
<input class='shown-ref' value='foo'>
|
||||
<input type="number" class='shown-ref' placeholder='foo'>
|
||||
<input type="email" class='shown-ref' placeholder='foo'>
|
||||
<input type="search" class='shown-ref' placeholder='foo'>
|
||||
<input type="tel" class='shown-ref' placeholder='foo'>
|
||||
<input type="url" class='shown-ref' placeholder='foo'>
|
||||
<input type="month" class='shown-ref' placeholder='foo'>
|
||||
<input type="week" class='shown-ref' placeholder='foo'>
|
||||
<input type="datetime-local" class='shown-ref' placeholder='foo'>
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<link rel='stylesheet' type='text/css' href='style-shown.css'>
|
||||
<body>
|
||||
<input class='shown' placeholder='foo'>
|
||||
</body>
|
||||
</html>
|
||||
<link rel='stylesheet' href='style-shown.css'>
|
||||
<input class='shown' placeholder='foo'>
|
||||
<input type="number" class='shown' placeholder='foo'>
|
||||
<input type="email" class='shown' placeholder='foo'>
|
||||
<input type="search" class='shown' placeholder='foo'>
|
||||
<input type="tel" class='shown' placeholder='foo'>
|
||||
<input type="url" class='shown' placeholder='foo'>
|
||||
<input type="month" class='shown' placeholder='foo'>
|
||||
<input type="week" class='shown' placeholder='foo'>
|
||||
<input type="datetime-local" class='shown' placeholder='foo'>
|
||||
|
|
Загрузка…
Ссылка в новой задаче