Open Bug 1509949 Opened 2 years ago Updated 1 year ago

Make displayed and non-displayed SVG clipPath/mask/filter behave consistently

Categories

(Core :: SVG, defect, P3)

defect

Tracking

()

People

(Reporter: jwatt, Unassigned)

References

Details

Spinning this off from bug 1509394 comment 2. Currently nsSVGUtils::PaintFrameWithEffects refuses to render elements referencing a non-existent or invalid clipPath/mask/filter:

https://dxr.mozilla.org/mozilla-central/source/layout/svg/nsSVGUtils.cpp#720

However, that's our non-displayed paint path. If we are using display lists to paint these effects, then we do paint the referencing element for mask and clipPath, but not for filter. (In all cases, for hit-testing we ignore the effect.)

We should update the non-displayed path to be consistent.
We should add some WPT tests while doing this.
Type: enhancement → defect
You need to log in before you can comment on or make changes to this bug.