-
Notifications
You must be signed in to change notification settings - Fork 711
[css-conditional-5] Add inline/block/x/y values to overflowing
scroll-state query?
#11183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yeah, I think this makes sense as a shorthand for having to write |
Yes, that makes perfect sense. I've found in my practice that many times I want to know if there are horizontal or vertical scrollbars. |
Proposed async resolution: add inline/block/x/y values to scrollable scroll-state() query |
The CSSWG will automatically accept this resolution one week from now if no objections are raised here. Anyone can add an emoji to this comment to express support. If you do not support this resolution, please add a new comment. Proposed Resolution: add inline/block/x/y values to scrollable scroll-state() query |
Add new values for matching axis instead of edge for overflowing: block, inline, x, y. These are convenience keywords. For instance: scroll-state(overflowing: x) is the same as: scroll-state((overflowing: left) or (overflowing: right)) Based on request in [1] [1] w3c/csswg-drafts#11183 Bug: 367764865 Change-Id: I125db5e5eced86da6404aa0bc5469830278d0ca9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6022915 Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Commit-Queue: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/main@{#1386111}
Add new values for matching axis instead of edge for overflowing: block, inline, x, y. These are convenience keywords. For instance: scroll-state(overflowing: x) is the same as: scroll-state((overflowing: left) or (overflowing: right)) Based on request in [1] [1] w3c/csswg-drafts#11183 Bug: 367764865 Change-Id: I125db5e5eced86da6404aa0bc5469830278d0ca9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6022915 Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Commit-Queue: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/main@{#1386111}
Add new values for matching axis instead of edge for overflowing: block, inline, x, y. These are convenience keywords. For instance: scroll-state(overflowing: x) is the same as: scroll-state((overflowing: left) or (overflowing: right)) Based on request in [1] [1] w3c/csswg-drafts#11183 Bug: 367764865 Change-Id: I125db5e5eced86da6404aa0bc5469830278d0ca9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6022915 Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Commit-Queue: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/main@{#1386111}
RESOLVED: add inline/block/x/y values to scrollable scroll-state() query |
…e(overflowing) axis, a=testonly Automatic update from web-platform-tests [@container] Add support for scroll-state(overflowing) axis Add new values for matching axis instead of edge for overflowing: block, inline, x, y. These are convenience keywords. For instance: scroll-state(overflowing: x) is the same as: scroll-state((overflowing: left) or (overflowing: right)) Based on request in [1] [1] w3c/csswg-drafts#11183 Bug: 367764865 Change-Id: I125db5e5eced86da6404aa0bc5469830278d0ca9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6022915 Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Commit-Queue: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/main@{#1386111} -- wpt-commits: d486856789206e72535e8a0c2d341bd2d39b4af1 wpt-pr: 49304
…e(overflowing) axis, a=testonly Automatic update from web-platform-tests [@container] Add support for scroll-state(overflowing) axis Add new values for matching axis instead of edge for overflowing: block, inline, x, y. These are convenience keywords. For instance: scroll-state(overflowing: x) is the same as: scroll-state((overflowing: left) or (overflowing: right)) Based on request in [1] [1] w3c/csswg-drafts#11183 Bug: 367764865 Change-Id: I125db5e5eced86da6404aa0bc5469830278d0ca9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6022915 Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Commit-Queue: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/main@{#1386111} -- wpt-commits: d486856789206e72535e8a0c2d341bd2d39b4af1 wpt-pr: 49304
…(overflowing) axis, a=testonly Automatic update from web-platform-tests [container] Add support for scroll-state(overflowing) axis Add new values for matching axis instead of edge for overflowing: block, inline, x, y. These are convenience keywords. For instance: scroll-state(overflowing: x) is the same as: scroll-state((overflowing: left) or (overflowing: right)) Based on request in [1] [1] w3c/csswg-drafts#11183 Bug: 367764865 Change-Id: I125db5e5eced86da6404aa0bc5469830278d0ca9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6022915 Reviewed-by: Anders Hartvoll Ruud <andruudchromium.org> Commit-Queue: Rune Lillesveen <futharkchromium.org> Cr-Commit-Position: refs/heads/main{#1386111} -- wpt-commits: d486856789206e72535e8a0c2d341bd2d39b4af1 wpt-pr: 49304 UltraBlame original commit: 9ed5d61e8851988edf3eb21e4495ad379184b728
…(overflowing) axis, a=testonly Automatic update from web-platform-tests [container] Add support for scroll-state(overflowing) axis Add new values for matching axis instead of edge for overflowing: block, inline, x, y. These are convenience keywords. For instance: scroll-state(overflowing: x) is the same as: scroll-state((overflowing: left) or (overflowing: right)) Based on request in [1] [1] w3c/csswg-drafts#11183 Bug: 367764865 Change-Id: I125db5e5eced86da6404aa0bc5469830278d0ca9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6022915 Reviewed-by: Anders Hartvoll Ruud <andruudchromium.org> Commit-Queue: Rune Lillesveen <futharkchromium.org> Cr-Commit-Position: refs/heads/main{#1386111} -- wpt-commits: d486856789206e72535e8a0c2d341bd2d39b4af1 wpt-pr: 49304 UltraBlame original commit: 9ed5d61e8851988edf3eb21e4495ad379184b728
…(overflowing) axis, a=testonly Automatic update from web-platform-tests [container] Add support for scroll-state(overflowing) axis Add new values for matching axis instead of edge for overflowing: block, inline, x, y. These are convenience keywords. For instance: scroll-state(overflowing: x) is the same as: scroll-state((overflowing: left) or (overflowing: right)) Based on request in [1] [1] w3c/csswg-drafts#11183 Bug: 367764865 Change-Id: I125db5e5eced86da6404aa0bc5469830278d0ca9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6022915 Reviewed-by: Anders Hartvoll Ruud <andruudchromium.org> Commit-Queue: Rune Lillesveen <futharkchromium.org> Cr-Commit-Position: refs/heads/main{#1386111} -- wpt-commits: d486856789206e72535e8a0c2d341bd2d39b4af1 wpt-pr: 49304 UltraBlame original commit: 9ed5d61e8851988edf3eb21e4495ad379184b728
The
overflowing
scroll-state query has the valuesnone | top | right | bottom | left | block-start | inline-start | block-end | inline-end
, which indicate each of the sides of the box. But sometimes people want to know about an axis, not one side of it specifically.Would it make sense to add
x
/y
/inline
/block
values to this query as well? They would be true if there is scrollable overflow in either direction along the named axis.The text was updated successfully, but these errors were encountered: