-
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.
Allow button to have writing mode vertical
This CL allows <button> and <input> types "button", "submit", "reset", "file" to have writing-mode vertical for both the default native appearance and when appearance is set to none. We also put the change behind the feature flag FormControlsVerticalWritingModeSupport so it can be turned on safely. Change-Id: I1f6cc53a1eaef640e3d968d0e7ec5fc248879b50 Bug: 681917 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4617874 Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by: David Grogan <dgrogan@chromium.org> Commit-Queue: Di Zhang <dizhangg@chromium.org> Cr-Commit-Position: refs/heads/main@{#1159261}
- Loading branch information
1 parent
012ecde
commit 29ce7dd
Showing
9 changed files
with
68 additions
and
91 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
63 changes: 9 additions & 54 deletions
63
...arty/blink/web_tests/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 |
---|---|---|
@@ -1,68 +1,23 @@ | ||
This is a testharness.js-based test. | ||
PASS .flexbox 1 | ||
PASS .flexbox 2 | ||
FAIL .flexbox 3 assert_equals: | ||
<div class="flexbox"> | ||
<div class="spacer"></div> | ||
<input type="button" value="XXXXXXX" class="test1" data-expected-height="140"> | ||
</div> | ||
height expected 140 but got 100 | ||
FAIL .flexbox 4 assert_equals: | ||
<div class="flexbox"> | ||
<div class="spacer"></div> | ||
<input type="submit" value="XXXXXXX" class="test1" data-expected-height="140"> | ||
</div> | ||
height expected 140 but got 100 | ||
FAIL .flexbox 5 assert_equals: | ||
<div class="flexbox"> | ||
<div class="spacer"></div> | ||
<input type="reset" value="XXXXXXX" class="test1" data-expected-height="140"> | ||
</div> | ||
height expected 140 but got 100 | ||
PASS .flexbox 3 | ||
PASS .flexbox 4 | ||
PASS .flexbox 5 | ||
PASS .flexbox 6 | ||
PASS .flexbox 7 | ||
FAIL .flexbox 8 assert_equals: | ||
<div class="flexbox"> | ||
<div class="spacer"></div> | ||
<input type="button" value="XXXXXXX" class="test2" data-expected-height="140"> | ||
</div> | ||
height expected 140 but got 100 | ||
FAIL .flexbox 9 assert_equals: | ||
<div class="flexbox"> | ||
<div class="spacer"></div> | ||
<input type="submit" value="XXXXXXX" class="test2" data-expected-height="140"> | ||
</div> | ||
height expected 140 but got 100 | ||
FAIL .flexbox 10 assert_equals: | ||
<div class="flexbox"> | ||
<div class="spacer"></div> | ||
<input type="reset" value="XXXXXXX" class="test2" data-expected-height="140"> | ||
</div> | ||
height expected 140 but got 100 | ||
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 | ||
FAIL .flexbox 13 assert_equals: | ||
<div class="flexbox"> | ||
<div class="spacer"></div> | ||
<input type="button" value="XXXXXXX" class="test3" data-expected-height="140"> | ||
</div> | ||
height expected 140 but got 100 | ||
FAIL .flexbox 14 assert_equals: | ||
<div class="flexbox"> | ||
<div class="spacer"></div> | ||
<input type="submit" value="XXXXXXX" class="test3" data-expected-height="140"> | ||
</div> | ||
height expected 140 but got 100 | ||
FAIL .flexbox 15 assert_equals: | ||
<div class="flexbox"> | ||
<div class="spacer"></div> | ||
<input type="reset" value="XXXXXXX" class="test3" data-expected-height="140"> | ||
</div> | ||
height expected 140 but got 100 | ||
PASS .flexbox 13 | ||
PASS .flexbox 14 | ||
PASS .flexbox 15 | ||
Harness: the test ran to completion. | ||
|
30 changes: 0 additions & 30 deletions
30
third_party/blink/web_tests/external/wpt/css/css-flexbox/flex-item-compressible-002.html.ini
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 |
---|---|---|
@@ -1,33 +1,3 @@ | ||
[flex-item-compressible-002.html] | ||
[.flexbox 10] | ||
expected: FAIL | ||
|
||
[.flexbox 11] | ||
expected: FAIL | ||
|
||
[.flexbox 12] | ||
expected: FAIL | ||
|
||
[.flexbox 13] | ||
expected: FAIL | ||
|
||
[.flexbox 14] | ||
expected: FAIL | ||
|
||
[.flexbox 15] | ||
expected: FAIL | ||
|
||
[.flexbox 3] | ||
expected: FAIL | ||
|
||
[.flexbox 4] | ||
expected: FAIL | ||
|
||
[.flexbox 5] | ||
expected: FAIL | ||
|
||
[.flexbox 8] | ||
expected: FAIL | ||
|
||
[.flexbox 9] | ||
expected: FAIL |
13 changes: 13 additions & 0 deletions
13
...xternal/wpt/css/css-writing-modes/forms/button-appearance-native-horizontal.optional.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,13 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Di Zhang" href="mailto:dizhangg@chromium.org"> | ||
<link rel="help" href="https://html.spec.whatwg.org/#the-button-element"> | ||
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow"> | ||
<title>Button appearance native writing mode horizontal</title> | ||
<meta charset="utf-8"> | ||
<link rel="mismatch" href="button-appearance-none-horizontal.optional.html"> | ||
<link rel="mismatch" href="button-appearance-native-vertical.optional.html"> | ||
<link rel="mismatch" href="button-appearance-none-vertical.optional.html"> | ||
|
||
<!-- Note test description should be the same across all files to mismatch on. --> | ||
<p>The button element below should match the correct writing mode.</p> | ||
<button style="writing-mode: horizontal-tb"></button> |
13 changes: 13 additions & 0 deletions
13
.../external/wpt/css/css-writing-modes/forms/button-appearance-native-vertical.optional.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,13 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Di Zhang" href="mailto:dizhangg@chromium.org"> | ||
<link rel="help" href="https://html.spec.whatwg.org/#the-button-element"> | ||
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow"> | ||
<title>Button appearance native writing mode vertical</title> | ||
<meta charset="utf-8"> | ||
<link rel="mismatch" href="button-appearance-none-vertical.optional.html"> | ||
<link rel="mismatch" href="button-appearance-native-horizontal.optional.html"> | ||
<link rel="mismatch" href="button-appearance-none-horizontal.optional.html"> | ||
|
||
<!-- Note test description should be the same across all files to mismatch on. --> | ||
<p>The button element below should match the correct writing mode.</p> | ||
<button style="writing-mode: vertical-rl"></button> |
13 changes: 13 additions & 0 deletions
13
.../external/wpt/css/css-writing-modes/forms/button-appearance-none-horizontal.optional.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,13 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Di Zhang" href="mailto:dizhangg@chromium.org"> | ||
<link rel="help" href="https://html.spec.whatwg.org/#the-button-element"> | ||
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow"> | ||
<title>Button appearance none writing mode horizontal</title> | ||
<meta charset="utf-8"> | ||
<link rel="mismatch" href="button-appearance-native-horizontal.optional.html"> | ||
<link rel="mismatch" href="button-appearance-none-vertical.optional.html"> | ||
<link rel="mismatch" href="button-appearance-native-vertical.optional.html"> | ||
|
||
<!-- Note test description should be the same across all files to mismatch on. --> | ||
<p>The button element below should match the correct writing mode.</p> | ||
<button style="writing-mode: horizontal-tb; appearance: none;"></button> |
13 changes: 13 additions & 0 deletions
13
...ts/external/wpt/css/css-writing-modes/forms/button-appearance-none-vertical.optional.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,13 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Di Zhang" href="mailto:dizhangg@chromium.org"> | ||
<link rel="help" href="https://html.spec.whatwg.org/#the-button-element"> | ||
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow"> | ||
<title>Button appearance none writing mode vertical</title> | ||
<meta charset="utf-8"> | ||
<link rel="mismatch" href="button-appearance-native-vertical.optional.html"> | ||
<link rel="mismatch" href="button-appearance-none-horizontal.optional.html"> | ||
<link rel="mismatch" href="button-appearance-native-horizontal.optional.html"> | ||
|
||
<!-- Note test description should be the same across all files to mismatch on. --> | ||
<p>The button element below should match the correct writing mode.</p> | ||
<button style="writing-mode: vertical-lr; appearance: none;"></button> |