Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML: vertical switch #43664

Merged
merged 1 commit into from
Dec 15, 2023
Merged

HTML: vertical switch #43664

merged 1 commit into from
Dec 15, 2023

Conversation

annevk
Copy link
Member

@annevk annevk commented Dec 14, 2023

webkit-commit-queue pushed a commit to annevk/WebKit that referenced this pull request Dec 14, 2023
https://bugs.webkit.org/show_bug.cgi?id=266412

Reviewed by Aditya Keerthi.

Imports web-platform-tests/wpt#43664 and
changes made before. This resulted in some surrounding cleanup,
presumably due to import-w3c-tests not being used last time around.

* LayoutTests/imported/w3c/resources/resource-files.json:
* LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/checkbox-switch-input-computed-style.tentative-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/checkbox-switch-input-computed-style.tentative.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/select-appearance-none-vertical-lr.optional-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/select-appearance-none-vertical-rl.optional-expected-mismatch.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/select-multiple-keyboard-selection.optional.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/w3c-import.log:
* LayoutTests/platform/glib/imported/w3c/web-platform-tests/css/css-writing-modes/forms/checkbox-switch-input-computed-style.tentative-expected.txt: Added.
* LayoutTests/platform/ios/imported/w3c/web-platform-tests/css/css-writing-modes/forms/checkbox-switch-input-computed-style.tentative-expected.txt: Added.

Canonical link: https://commits.webkit.org/272047@main
Copy link
Contributor

@noamr noamr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@annevk annevk merged commit 89a0598 into master Dec 15, 2023
20 checks passed
@annevk annevk deleted the annevk/vertical-switch branch December 15, 2023 11:57
@r12a
Copy link
Contributor

r12a commented Dec 15, 2023

I think this looks ok, if switches will be rotated like the text, which i assume is fair. An interesting aside question will be which way to rotate them (left or right). (In fact for Japanese & Chinese folks there is currently a difference in opinion about this for range controls.) cc @xfq

@annevk
Copy link
Member Author

annevk commented Dec 15, 2023

Our plan is for the logical left to be on top when rendered vertically.

@r12a
Copy link
Contributor

r12a commented Dec 15, 2023

Logical 'left' in LTR text. I suppose there's also the question about whether the logical movement for RTL text is reversed. See w3c/alreq#259, where i added a question about this.

@annevk
Copy link
Member Author

annevk commented Dec 16, 2023

For RTL the switch control is reversed, at least on Apple platforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants