visibleToHitTesting() will account for inert as well.
Created attachment 439028 [details]
Comment on attachment 439028 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=439028&action=review
> - bool userInteractive = renderer().style().pointerEvents() != PointerEvents::None;
> + bool userInteractive = renderer().visibleToHitTesting();
This also adds visibility test but I guess that is fine.
Committed r282957 (242047@main): <https://commits.webkit.org/242047@main>
All reviewed patches have been landed. Closing bug and clearing flags on attachment 439028 [details].