Closed Bug 2019610 Opened 10 days ago Closed 12 hours ago

Inner SVG with overflow auto is hiding overflowing content (behavior change from bug 1999100)

Categories

(Core :: SVG, defect, P3)

Firefox 148
defect

Tracking

()

RESOLVED FIXED
150 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox148 --- affected
firefox149 --- affected
firefox150 --- fixed

People

(Reporter: tiberiu.zuld, Assigned: emilio, NeedInfo)

References

(Regression)

Details

(Keywords: regression)

Attachments

(3 files)

Attached image svg-overflow.png

Steps to reproduce:

SVG overflow: auto is no longer working as expected in v148 compared with v147.
In Chrome and Safari it is working as expected.

I think this is triggered by changes for https://bugzil.la/1999100

Example:
https://jsfiddle.net/7nzgbfa2/2/

In Chrome the overflow of the red rectangle is shown, but in FF v148 is not shown.
It was working correctly in v147.

Actual results:

Rect element overflowing parent SVG element is clipped when SVG has overflow: auto

Expected results:

Rect element overflowing parent SVG element shouldn't be clipped when SVG has overflow: auto

The Bugbug bot thinks this bug should belong to the 'Core::SVG' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → SVG
Product: Firefox → Core

That seems... expected? Generally overflow values that apply clipping do clip overflow, it seems like a bug that it didn't before tbh.

I guess WebKit also behaves like chrome here so we could consider changing back, but not sure the spec is clear about that.

Flags: needinfo?(tiberiu.zuld)

mozregression agrees this was caused by bug 1999100.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Priority: -- → P3
Regressed by: 1999100
Summary: SVG with overflow auto is hiding overflowing content → SVG with overflow auto is hiding overflowing content (behavior change from bug 1999100)

https://hg-edge.mozilla.org/mozilla-central/rev/e81fe51adc7c48e454bc04b7d82a6cf2211ebe82#l7.159 is the line that causes this behavior change. But I think this is the right thing to do.

I don't see why these two should render differently?

Summary: SVG with overflow auto is hiding overflowing content (behavior change from bug 1999100) → Inner SVG with overflow auto is hiding overflowing content (behavior change from bug 1999100)
Assignee: nobody → emilio
Status: NEW → ASSIGNED

Set release status flags based on info from the regressing bug 1999100

Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7b1a35d6c70c https://hg.mozilla.org/integration/autoland/rev/42c3296d9fdb Add a test for overflow: auto on inner vs. outer SVG. r=firefox-svg-reviewers,dholbert
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/58354 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 12 hours ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: