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

Avoid relying on vertical scrollbar placement in a couple of tests. #28425

Merged
merged 1 commit into from Apr 11, 2021

Conversation

heycam
Copy link
Contributor

@heycam heycam commented Apr 9, 2021

These two tests can end up placing their root vertical scrollbars on different sides of the window, due to the use of different writing modes. They aren't specifically testing anything to do with scrollbars, so we turn them off.

@@ -18,6 +18,8 @@
{
height: 100%;
writing-mode: vertical-rl;
overflow: hidden; /* since test and reference would place scrollbars on
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe s/would place/might place/, throughout this commit?

(I don't think these styles do actually place scrollbars on opposite sides in any browsers right now; I think because the root scrollport has special behavior, in Firefox at least. I suspect that's changing in WebKit in https://bugs.webkit.org/show_bug.cgi?id=224224 though.)

Copy link
Contributor Author

@heycam heycam Apr 9, 2021

Choose a reason for hiding this comment

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

Now I am uncertain whether I do want to change root scrollbar placement in that bug. :-) If I do, I'll merge this PR. If not, I'll abandon it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK so I think I do want to change the placement, since we already change the placement for horizontal RTL documents.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yup, I noticed that. Makes sense. thanks!

These two tests can end up placing their root vertical scrollbars on different sides of
the window, due to the use of different writing modes.  They aren't specifically testing
anything to do with scrollbars, so we turn them off.
@wpt-pr-bot
Copy link
Collaborator

There are no reviewers for this pull request. Please reach out on W3C's irc server (irc.w3.org, port 6665) on channel #testing (web client) to get help with this. Thank you!

@heycam heycam merged commit 6be0588 into web-platform-tests:master Apr 11, 2021
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.

None yet

4 participants