[webkit-changes] [WebKit/WebKit] c51e76: [InteractionRegions] Add support for CSS clip-path

Etienne Segonzac noreply at github.com
Wed Mar 27 11:12:19 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c51e76f5af9088c193cc9416b0da91969d26fa6e
      https://github.com/WebKit/WebKit/commit/c51e76f5af9088c193cc9416b0da91969d26fa6e
  Author: Etienne Segonzac <sgz at apple.com>
  Date:   2024-03-27 (Wed, 27 Mar 2024)

  Changed paths:
    A LayoutTests/interaction-region/clip-path-expected.txt
    A LayoutTests/interaction-region/clip-path.html
    M Source/WebCore/page/InteractionRegion.cpp

  Log Message:
  -----------
  [InteractionRegions] Add support for CSS clip-path
https://bugs.webkit.org/show_bug.cgi?id=271673
<rdar://119124300>

Reviewed by Mike Wyrzykowski.

When generating Interaction Regions, check for `clip-path` rules and use
them to generate the region clip path.
When present, this style takes priority over other types of shape generation
(SVG, Icon Masking etc...).

* Source/WebCore/page/InteractionRegion.cpp:
(WebCore::hasTransparentContainerStyle):
Container with `clip-path` should not be turned into guards.
(WebCore::interactionRegionForRenderedRegion):
Add a `clip-path` shape generation branch.

* LayoutTests/interaction-region/clip-path-expected.txt: Added.
* LayoutTests/interaction-region/clip-path.html: Added.
Add tests using `clip-path`.

Canonical link: https://commits.webkit.org/276742@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list