diff --git a/layout/reftests/css-placeholder/input/css-text-align.html b/layout/reftests/css-placeholder/input/css-text-align.html new file mode 100644 index 00000000000..13456c3b30c --- /dev/null +++ b/layout/reftests/css-placeholder/input/css-text-align.html @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/layout/reftests/css-placeholder/input/reftest.list b/layout/reftests/css-placeholder/input/reftest.list index 8353080a90b..dbe15679ea0 100644 --- a/layout/reftests/css-placeholder/input/reftest.list +++ b/layout/reftests/css-placeholder/input/reftest.list @@ -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 diff --git a/layout/style/nsCSSPropList.h b/layout/style/nsCSSPropList.h index ad39b91178f..fffe0d685cd 100644 --- a/layout/style/nsCSSPropList.h +++ b/layout/style/nsCSSPropList.h @@ -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....