[Webkit-unassigned] [Bug 270567] New: Incorrect filter primitive area

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 6 01:54:29 PST 2024


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

            Bug ID: 270567
           Summary: Incorrect filter primitive area
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ana.tudor.lhnh at gmail.com
                CC: sabouhallawa at apple.com, zimmermann at kde.org

Created attachment 470200

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

The result in a demo after also applying a feTile in Epiphany (left) vs. Chrome (right)

Consider a square element (which also gets a checkerboard background pattern to make things more obvious).

Consider an SVG filter applied on it, the only primitive being a `feComposite` with a `height` attribute set to a quarter of the filter area.

```
  <svg width="0" height="0">
    <filter id="f" primitiveUnits="objectBoundingBox" x="0" y="0" width="100%" height="100%">
      <feComposite height="0.25"/>
    </filter>
  </svg>
```

Live test https://codepen.io/thebabydino/pen/ExJVgLo?editors=1000

I would expect the output to be the top quarter of the filter area, but that's not what happens.

Note that I've only tested via Epiphany on Ubuntu and asking around (one https://twitter.com/anatudor/status/1765305940977336376 + two https://bsky.app/profile/anatudor.bsky.social/post/3kmze7a3hrk2p) about what it looks like in actual Safari, the results are all over the place: no filter applied, same result as in Chrome and Firefox or same result as I'm getting in Epiphany.

This is a very big problem if I want to have a `feTile` after that `feComposite` (see atachment).

After refresh and resize, Epiphany also shows me the same result as in Chrome and Firefox. However, if I switch to a different CodePen view, I see the same broken result as at first.

-- 
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/20240306/a0c3ebbc/attachment-0001.htm>


More information about the webkit-unassigned mailing list