-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
::-webkit-textfield-decoration-container should not accept writing-mo…
…de changes https://bugs.webkit.org/show_bug.cgi?id=265111 Reviewed by Tim Nguyen. Merge: https://chromium-review.googlesource.com/c/chromium/src/+/2509409 Specifying a 'writing-mode' value different from the host INPUT to its ::-webkit-textfield-decoration-container broke many things, and it was not helpful because inner-editor always has the 'writing-mode' value same as the host INPUT. This patch prohibits authors to specify 'writing-mode' to ::-webkit-textfield-decoration-container. * Source/WebCore/css/html.css: (input::-webkit-textfield-decoration-container): Updated * LayoutTests/fast/forms/number/number-broken-by-container-style-expected.html: Add Test Case * LayoutTests/fast/forms/number/number-broken-by-container-style.html: Add Test Case Expectation * LayoutTests/fast/forms/search/search-broken-by-container-style.html: Add Test Case * LayoutTests/fast/forms/search/search-broken-by-container-style-expected.html: Add Test Case Expectation Canonical link: https://commits.webkit.org/270953@main
- Loading branch information
1 parent
34925ea
commit b3dced5
Showing
5 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
LayoutTests/fast/forms/number/number-broken-by-container-style-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<!DOCTYPE html> | ||
<input type=number placeholder="foo"> | ||
<input type=number value="123456"> | ||
<script> | ||
document.querySelectorAll('input')[1].focus(); | ||
</script> |
11 changes: 11 additions & 0 deletions
11
LayoutTests/fast/forms/number/number-broken-by-container-style.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
input::-webkit-textfield-decoration-container { | ||
writing-mode: vertical-rl; | ||
} | ||
</style> | ||
<input type=number placeholder="foo"> | ||
<input type=number value="123456"> | ||
<script> | ||
document.querySelectorAll('input')[1].focus(); | ||
</script> |
6 changes: 6 additions & 0 deletions
6
LayoutTests/fast/forms/search/search-broken-by-container-style-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<!DOCTYPE html> | ||
<input type=search placeholder="foo"> | ||
<input type=search value="query"> | ||
<script> | ||
document.querySelectorAll('input')[1].focus(); | ||
</script> |
11 changes: 11 additions & 0 deletions
11
LayoutTests/fast/forms/search/search-broken-by-container-style.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
input::-webkit-textfield-decoration-container { | ||
writing-mode: vertical-rl; | ||
} | ||
</style> | ||
<input type=search placeholder="foo"> | ||
<input type=search value="query"> | ||
<script> | ||
document.querySelectorAll('input')[1].focus(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters