-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
LibWeb: Implement some viewport proximity features #2603
LibWeb: Implement some viewport proximity features #2603
Conversation
Hello! One or more of the commit messages in this PR do not match the Ladybird code submission policy, please check the |
6cb3c6e
to
92abe2a
Compare
92abe2a
to
5b72427
Compare
5b72427
to
5edba43
Compare
6c09f7a
to
e9f00d6
Compare
There are a couple of tests crashing on CI. They both look like flakes but I'm re-running CI just in case. Otherwise this looks good. |
I am not quite sure how much of it is flaky and how much is a race condition. But I am not sure. |
Pasting it here so it's easier to find. I would have thought that
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions! |
Your pull request has conflicts that need to be resolved before it can be reviewed and merged. Make sure to rebase your branch on top of the latest |
e9f00d6
to
fe4cbb9
Compare
fe4cbb9
to
141b5b4
Compare
I've now just made it check if there is a document element and only iterate over the children if there is. |
This gets rid of some FIXMEs related to viewport proximity and relevancy to the user in the update the rendering algorithm.
I know there is no tests, but I tried some of the relevant WPT tests for the new sections and none of them are passing yet so I assume there is other code missing elsewhere that would need to actually make use of the element's proximity to the viewport. (beyond just setting it in this one place.)
So I don't think there is any sensible tests that can be written for these two functions on their own.