зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1674319 [wpt PR 26343] - css-pseudo: ::placeholder should not support 'writing-mode', 'direction', and 'text-orientation', a=testonly
Automatic update from web-platform-tests css-pseudo: ::placeholder should not support 'writing-mode', 'direction', and 'text-orientation' 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 Bug: 1144040 Change-Id: Ia8c74ec80a7d94dc11053e4d95e3facae148f094 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2509073 Reviewed-by: Koji Ishii <kojii@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#822556} -- wpt-commits: a24d40776a2fea52f1a698e10d5bd98f3f46dee5 wpt-pr: 26343
This commit is contained in:
Родитель
c332df3ce9
Коммит
92926414c1
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<title>::placeholder should not support 'writing-mode', 'direction', and 'text-orientation'</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#placeholder-pseudo">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-line-styling">
|
||||
<link rel="match" href="reference/placeholder-excluded-properties-ref.html">
|
||||
<style>
|
||||
.horizontal::placeholder {
|
||||
writing-mode: vertical-rl;
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
.vertical {
|
||||
writing-mode: vertical-rl;
|
||||
}
|
||||
.vertical::placeholder {
|
||||
text-orientation: upright;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<input class="horizontal" placeholder="placeholder">
|
||||
<input class="vertical" placeholder="placeholder">
|
||||
</body>
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
.vertical {
|
||||
writing-mode: vertical-rl;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<input placeholder="placeholder">
|
||||
<input class="vertical" placeholder="placeholder">
|
||||
</body>
|
Загрузка…
Ссылка в новой задаче