-
-
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: Draw floating replaced elements more correctly #3430
base: master
Are you sure you want to change the base?
LibWeb: Draw floating replaced elements more correctly #3430
Conversation
94432f1
to
7a76914
Compare
43dbd91
to
4870cf7
Compare
Rebased on master to fix CI. |
4870cf7
to
3468fca
Compare
@@ -0,0 +1,27 @@ | |||
<!DOCTYPE html> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I compared this page on build from master vs other browsers and it seems to visually already be painted correctly. could we add a test that demoes correctness improvement?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess something changed then in the commits on master that I rebased over. It rendered incorrectly on master when I first opened the PR. I'll take a look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test still reproduces the original problem for me as of 29d7463.
Master | This PR/other browser |
---|---|
![]() |
![]() |
I've rebased on that commit now.
Previously floating replaced elements were drawn incorrectly and also twice.
3468fca
to
5265cb8
Compare
Previously floating replaced elements were drawn incorrectly and also twice.
This was originally discovered because of the
css/css-images/object-fit-*
set of tests from the WPT suite. Those use dashed borders to draw floating replaced elements. The dashed borders use subpixel rendering, so rendering them twice made the borders darker than they were supposed to be. The tests themselves cannot be imported though because a) they either fail for other, unrelated reasons, or b) they only pass because both test and ref page don't render the intended content yet.