content icon indicating copy to clipboard operation
content copied to clipboard

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

Open rscharfer opened this issue 1 year ago • 1 comments

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

rscharfer avatar Jun 26 '24 20:06 rscharfer

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.

Josh-Cena avatar Jun 26 '24 21:06 Josh-Cena