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

[Selection API] Implement selection.direction #47043

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Jul 8, 2024

Add selection.direction [1] which returns "none", "forward" or
"backward".

We also update the WPT test selection-direction.tentative.html
to remove the selection click-based tests as this behavior is not
standardized across browsers [2] [3].

[1] https://w3c.github.io/selection-api/#dom-selection-direction
[2] w3c/selection-api#70 (comment)
[3] w3c/selection-api#177 (comment)

Change-Id: I2aad4f8efc4f3d700437501929af274116f7910a
Bug: 40286116
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5677331
Commit-Queue: Di Zhang <[email protected]>
Reviewed-by: Kent Tamura <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1324573}

@dizhang168
Copy link
Member

dizhang168 commented Jul 8, 2024

Hi @sefeng211, I have removed the click based tests from selection-direction.tentative.html because I believe the behavior tested is not interoperable across browsers nor OS. Could you help take a look? If you disagree, you can add the tests again with a link to spec/discussion. Thank you!

image

@chromium-wpt-export-bot chromium-wpt-export-bot marked this pull request as ready for review July 8, 2024 23:53
Add selection.direction [1] which returns "none", "forward" or
"backward".

We also update the WPT test selection-direction.tentative.html
to remove the selection click-based tests as this behavior is not
standardized across browsers [2] [3].

[1] https://w3c.github.io/selection-api/#dom-selection-direction
[2] w3c/selection-api#70 (comment)
[3] w3c/selection-api#177 (comment)

Change-Id: I2aad4f8efc4f3d700437501929af274116f7910a
Bug: 40286116
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5677331
Commit-Queue: Di Zhang <[email protected]>
Reviewed-by: Kent Tamura <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1324573}
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

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

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 15c5ae8 into master Jul 9, 2024
21 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-5677331 branch July 9, 2024 00:15
@sefeng211
Copy link
Contributor

Okay, thanks for letting me know!

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.

4 participants