Bug 915551. Allow text-align styling on ::-moz-placeholder. r=bzbarsky

This commit is contained in:
Mounir Lamouri 2013-09-13 14:15:01 +01:00
parent 5a04a52cb9
commit d5293704a9
3 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<link rel='stylesheet' type='text/css' href='style.css'>
<style>
input::-moz-placeholder {
text-align: center;
}
</style>
<body>
<input placeholder='foo'>
</body>
</html>

View File

@ -24,3 +24,4 @@ needs-focus == placeholder-blur.html placeholder-simple-ref.html
# We can't check except by verifying that the output is different.
# Same reasons as focus issues explained above.
!= css-opacity.html placeholder-simple-ref.html
!= css-text-align.html placeholder-simple-ref.html

View File

@ -2722,7 +2722,7 @@ CSS_PROP_TEXT(
text-align,
text_align,
TextAlign,
CSS_PROPERTY_PARSE_VALUE,
CSS_PROPERTY_PARSE_VALUE | CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
"",
// When we support aligning on a string, we can parse text-align
// as a string....