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
InteractionRegions are missing for some display: table
elements
#14390
InteractionRegions are missing for some display: table
elements
#14390
Conversation
EWS run on current version of this PR (hash b04ffac) |
@@ -258,7 +258,7 @@ std::optional<InteractionRegion> interactionRegionForRenderedRegion(RenderObject | |||
bool isInlineNonBlock = renderer.isInline() && !renderer.isReplacedOrInlineBlock(); | |||
|
|||
// The parent will get its own InteractionRegion. | |||
if (!isOriginalMatch && !isInlineNonBlock) | |||
if (!isOriginalMatch && !isInlineNonBlock && !renderer.style().isDisplayTableOrTablePart()) |
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 think on the web, some people use display: table
or similar to do clearfix hacks, not sure that affects the code you're writing, but worth noting.
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.
No impact here, but happy to know one of the reasons for this setup!
https://bugs.webkit.org/show_bug.cgi?id=257379 <rdar://109538261> Reviewed by Tim Horton. Don't skip the child renderer's InteractionRegion if the link parent is `display: table`, like we do for inline links. * Source/WebCore/page/InteractionRegion.cpp: (WebCore::interactionRegionForRenderedRegion): Check if the matched renderer `isDisplayTableOrTablePart()` before bailing out. * LayoutTests/interaction-region/display-table-expected.txt: Added. * LayoutTests/interaction-region/display-table.html: Added. Add a test. * LayoutTests/interaction-region/layer-tree-expected.txt: Test update. Canonical link: https://commits.webkit.org/264598@main
b04ffac
to
fde1853
Compare
Committed 264598@main (fde1853): https://commits.webkit.org/264598@main Reviewed commits have been landed. Closing PR #14390 and removing active labels. |
fde1853
b04ffac