- From: Daniel Holbert via GitHub <sysbot+gh@w3.org>
- Date: Fri, 05 Jan 2024 22:16:27 +0000
- To: public-css-archive@w3.org
> It looks like you were asserting that we don't read the computed value of the element in grid like we do in flexbox - is that understanding correct? Not quite. I think Gecko does treat grid/flex consistently[i] but we do seem to treat them differently from Chromium/WebKit. Looking at e.g. http://wpt.live/css/css-grid/stretch-grid-item-text-input-overflow.html (one of the recent test changes), I think the idea of the changes was: (1) overflow:clip and overflow:visible should behave the same, RE impact on automatic minimum size (this part likely isn't controversial) (2) inherently-scrollable things like `<input>` shouldn't have their min-size be conditioned on their explicit `overflow` value (this is the part where engines differ I think) During code-review, I only noticed change (1) and didn't think too much about (2), but it does seem like (2) is in contradiction to the resolution here and is a divergence from other browsers, so we may need to rethink/revert that part. [i] RE treating grid/flex consistently, here's an example: ``` data:text/html, <style>f { display: flex; width: 1px;}g { display: grid; width: 1px}</style> <f><input></f> <f><input style="overflow:auto"></f> <g><input></g> <g><input style="overflow:auto"></g> ``` > (also the tests are kinda asserting unspecified things we believe - like if scrollbars are allowed on buttons etc, but we can fix that in the tests separately). Mmm right, that seems to be https://wpt.fyi/results/css/css-grid/stretch-grid-item-button-overflow.html (which I think is just a button-flavored version of the `text-input` testcase). I think that one is similarly expecting that `overflow` has no effect on buttons (in terms of creating scrollbars and also in terms of min-sizing impact), but that's perhaps unjustified on both counts. -- GitHub Notification of comment by dholbert Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7714#issuecomment-1879319762 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 5 January 2024 22:16:30 UTC