[Webkit-unassigned] [Bug 214418] New: CSS clip-path is applied to the <svg> root element in the view-box coordinates

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 16 12:32:29 PDT 2020


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

            Bug ID: 214418
           Summary: CSS clip-path is applied to the <svg> root element in
                    the view-box coordinates
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sabouhallawa at apple.com
                CC: zimmermann at kde.org

Created attachment 404473

  --> https://bugs.webkit.org/attachment.cgi?id=404473&action=review

test case

Open the attached test case.

Results: A 100x100 green box is displayed
Expected: A 250x250 green box is displayed

The CSS size of the <svg> root element is 400x400 but its view-box size is 200x200. The <svg> root element also has a clip-path: inset(0 150px 150px 0). This means 150 pixels from the right and from the bottom should be clipped to the 400x400 bounding box. And a 250x250 green box should be displayed.

The bug is the clipping is applied to the view-box rectangle. This leaves only 50x50 box. This box is displayed 100x100 because the local-to-parent transformation is 2:1.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200716/ec5b8d34/attachment.htm>


More information about the webkit-unassigned mailing list