Closed Bug 1635473 Opened 4 years ago Closed 4 years ago

[css-overflow] overflow:-moz-hidden-unscrollable viewport propagation is incompatible with spec for clip

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)

References

Details

(Keywords: testcase)

Attachments

(2 files, 1 obsolete file)

Testcase: https://bugzilla.mozilla.org/attachment.cgi?id=9145869

So if I understand the spec[1] correctly, the overflow value on <body> is supposed to be propagated to the viewport in this case. That is, you should see a large blue rectangle that is clipped by the viewport on the right/bottom side (with no scrollbars, since it should behave as hidden). It should not be clipped by <body> (like we currently do) because the spec says:

The element from which the value is propagated must then have a used overflow value of visible.

[1]
https://drafts.csswg.org/css-overflow/#overflow-propagation

This blocks bug 1531609 since -moz-hidden-unscrollable is currently incompatible with clip in this case and I rather fix this separately in case there are any regressions.

Attached file Testcase (needs editing the image URL) (obsolete) —
Attached file Testcase #1

Attaching the right testcase (the first testcase was for a different bug).

Attachment #9147297 - Attachment is obsolete: true
Pushed by mpalmgren@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6da37d7f6dd3
[css-overflow] Make viewport propagation for 'overflow:-moz-hidden-unscrollable' compatible with the spec for 'clip'.  r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/24831 for changes under testing/web-platform/tests
Pushed by mpalmgren@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1c5a85ab0efd
[css-overflow] Make viewport propagation for 'overflow:-moz-hidden-unscrollable' compatible with the spec for 'clip'.  r=emilio
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
Upstream PR merged by moz-wptsync-bot
Regressions: 1689777
No longer regressions: 1689777
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: