mdn / content

The content behind MDN Web Docs
https://developer.mozilla.org
Other
9.14k stars 22.47k forks source link

overflow-{x,y}: clip/visible interaction is inaccurate #34436

Closed rscharfer closed 2 months ago

rscharfer commented 3 months ago

MDN URL

https://developer.mozilla.org/en-US/docs/Web/CSS/overflow

What specific section or headline is this issue about?

Description

What information was incorrect, unhelpful, or incomplete?

Setting one direction to visible (the default) while setting the other to a different value results in visible behaving as auto.

Not correct because you can have one direction set to visible and the other set to clip and the visible will still behave as visible

What did you expect to see?

The bullet point maybe should just not be there.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

Chrome browser MacOS Monterey

MDN metadata

Page report details * Folder: `en-us/web/css/overflow` * MDN URL: https://developer.mozilla.org/en-US/docs/Web/CSS/overflow * GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/css/overflow/index.md * Last commit: https://github.com/mdn/content/commit/2109843d4c4f24aa9d8ee29d4ba4a82665934ea4 * Document last modified: 2024-05-14T05:25:20.000Z
Josh-Cena commented 3 months ago

Hi! This is directly translated from the spec:

The visible/clip values of overflow compute to auto/hidden (respectively) if one of overflow-x or overflow-y is neither visible nor clip.

So it appears we should say "setting the other to any value except visible or clip" for both this point and the one below. And perhaps it affects the computed value (test needed), so we should use language that's closer to the spec.