Open Bug 1739251 Opened 4 years ago Updated 4 years ago

clipPathUnits="objectBoundingBox" should apply to the element's border-box (and not consider descendants)

Categories

(Core :: SVG, defect)

defect

Tracking

()

People

(Reporter: dholbert, Unassigned)

References

()

Details

STR:

  1. Load https://codepen.io/smfr/pen/yLoebgw

EXPECTED RESULTS: Gray square
ACTUAL RESULTS: Gray square with blue and red

If you set display:none on the blue descendant, then that changes the clipping rect such that we get EXPECTED RESULTS.

In https://github.com/w3c/csswg-drafts/issues/5786 , the CSSWG resolved that the clipping rect shouldn't be influenced by (overflowing) descendants like this; we should just use the clipped element's own border-box.

Chrome gives EXPECTED RESULTS. Safari and Firefox (currently) give ACTUAL RESULTS.

Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.