[Webkit-unassigned] [Bug 131375] [CSS Shapes] Can't select content within the area of the floating box when clip-path is applied

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Apr 26 12:31:20 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=131375





--- Comment #5 from Dirk Schulze <krit at webkit.org>  2014-04-26 12:31:41 PST ---
(From update of attachment 230204)
View in context: https://bugs.webkit.org/attachment.cgi?id=230204&action=review

> Source/WebCore/rendering/RenderBlock.cpp:2971
> +            if (!clipPath->pathForReferenceRect(borderBoxRect()).contains(locationInContainer.point() - localOffset, clipPath->windRule()))

Same question as in Blink. Hit-testing occurs dozen of times just by hovering over the original element size. Can you try to a create (manual) performance test? I am thinking about a script that creates hundred of div boxes with fixed size. Each box with a circle clip shape and a radius of 50%. Add :hover pseudo selectors that change the background color. Then hover with the mouse really fast and compare it with the same document where the div boxes are not clipped.

It would be interesting if it makes sense to investigate in more heuristics before asking the graphic lib if the point is in the path. Especially for circle, inset, ellipse it would be very easy to add heuristics. For polygon we could at least check the bounding box.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list