-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split feature FormControlsVerticalWritingModeSupport by adding FormCo…
…ntrolsVerticalWritingModeTextSupport We would like to ship the Form controls vertical writing mode changes in two parts. * FormControlsVerticalWritingModeSupport will ship for elements select, meter, progress, button and input type not text. Then, we will ship * FormControlsVerticalWritingModeTextSupport will ship for elements textarea and input type email, number, password, search, tel, text, url. This is because text control elements have arrow keys movements and need more key binding changes. Change-Id: I21f6f0ba6a66541a0db6f58b83fc8d4dd7534394 Bug: 484651, 681917 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4763426 Reviewed-by: Daniel Cheng <dcheng@chromium.org> Commit-Queue: Di Zhang <dizhangg@chromium.org> Reviewed-by: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/main@{#1188647}
- Loading branch information
1 parent
3a17d75
commit 634ca81
Showing
14 changed files
with
138 additions
and
35 deletions.
There are no files selected for viewing
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
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
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
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
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
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
23 changes: 23 additions & 0 deletions
23
third_party/blink/renderer/core/css/form_controls_not_vertical_text.css
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,23 @@ | ||
/* | ||
* Copyright 2021 The Chromium Authors | ||
* Use of this source code is governed by a BSD-style license that can be | ||
* found in the LICENSE file. | ||
* | ||
* The default style sheet used to render elements with a `popup` | ||
* content attribute (with HTMLPopupAttribute feature enabled). | ||
*/ | ||
|
||
@namespace "http://www.w3.org/1999/xhtml"; | ||
|
||
/* TODO(crbug.com/484651): These form controls don't go vertical if | ||
FormControlsVerticalWritingModeSupportText is disabled. */ | ||
textarea, | ||
input[type="email" i], | ||
input[type="number" i], | ||
input[type="password" i], | ||
input[type="search" i], | ||
input[type="tel" i], | ||
input[type="text" i], | ||
input[type="url" i] { | ||
writing-mode: horizontal-tb !important; | ||
} |
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
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
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
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
3 changes: 0 additions & 3 deletions
3
...rtual/vertical-form-controls-disabled/external/wpt/css/css-writing-modes/forms/README.txt
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
third_party/blink/web_tests/virtual/vertical-form-controls-text-disabled/README.md
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,3 @@ | ||
# This suite runs tests with --disable-features=FormControlsVerticalWritingModeTextSupport. | ||
|
||
This test suite is to make sure that, when the feature is disabled, form controls for text elements cannot go vertical. This test can be removed when the feature is shipped. |
23 changes: 23 additions & 0 deletions
23
...ntrols-text-disabled/external/wpt/css/css-flexbox/flex-item-compressible-002-expected.txt
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,23 @@ | ||
This is a testharness.js-based test. | ||
PASS .flexbox 1 | ||
PASS .flexbox 2 | ||
PASS .flexbox 3 | ||
PASS .flexbox 4 | ||
PASS .flexbox 5 | ||
PASS .flexbox 6 | ||
PASS .flexbox 7 | ||
PASS .flexbox 8 | ||
PASS .flexbox 9 | ||
PASS .flexbox 10 | ||
FAIL .flexbox 11 assert_equals: | ||
<div class="flexbox"> | ||
<div class="spacer"></div> | ||
<input type="text" class="test3" data-expected-height="140"> | ||
</div> | ||
height expected 140 but got 100 | ||
PASS .flexbox 12 | ||
PASS .flexbox 13 | ||
PASS .flexbox 14 | ||
PASS .flexbox 15 | ||
Harness: the test ran to completion. | ||
|