Skip to content
Permalink
Browse files
css-pseudo: ::placeholder should not support 'writing-mode', 'directi…
…on', and 'text-orientation'

css-pseudo: ::placeholder should not support 'writing-mode', 'direction', and 'text-orientation'

https://bugs.webkit.org/show_bug.cgi?id=244982

Reviewed by Alan Bujtas.

Merge - https://chromium.googlesource.com/chromium/src.git/+/68c32d4e9fe24e25e672095253e0f0b2e709ecf4%5E%21/

It is to align Webkit behavior with Web-Spec:

https://drafts.csswg.org/css-pseudo-4/#placeholder-pseudo

All properties that apply to the ::first-line pseudo-element also apply to the ::placeholder pseudo-element.

https://drafts.csswg.org/css-pseudo-4/#first-line-styling

User agents may apply other properties as well except for the following excluded properties:
- writing-mode
- direction
- text-orientation

* Source/WebCore/css/html.css - Updated ::placeholder to add 'direction', 'text-orientation' and 'writing-mode'

Canonical link: https://commits.webkit.org/254416@main
  • Loading branch information
Ahmad Saleem authored and hortont424 committed Sep 13, 2022
1 parent 6a7b744 commit b79ce718736d854df91a05173ba242e49d9cf2f2
Showing 1 changed file with 3 additions and 0 deletions.
@@ -762,7 +762,10 @@ textarea {
::placeholder {
-webkit-text-security: none;
color: darkGray;
direction: inherit !important;
pointer-events: none !important;
text-orientation: inherit !important;
writing-mode: inherit !important;
}

input::placeholder {

0 comments on commit b79ce71

Please sign in to comment.