-
Notifications
You must be signed in to change notification settings - Fork 707
[css-anchor-position-1] Last @try to display none? #9380
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
Agree, maybe not Right now, a workaround for this could be to have the last |
We won't be able to support properties that modify the layout tree within |
Yeah, having the ability to just hide it when nothing fits is a necessity. |
@tabatkins and I drafted up a suggestion for a
This issue is somewhat related also to the discussion in #7758 |
I actually want to push back on this a little, now, and review what the use-case is for "just don't show me if I don't fit". When is that desired? (Assuming we already have some way of clipping you when your anchor is scrolled out of view.) |
The example I was thinking of is positioning help text next to a input field which provides some optional information about the text field. Depending on window size, scroller positions, other content, font size, etc, etc, I may want to try a few locations and if none of them work, just don't display the optional information. The problem with simply clipping is that it may be a worse experience if there is no way to expand the displayed area to reveal the full tooltip. In either case, I'm sure there are other ways to solve this problem in UX land, like having smaller tooltips or not clipping them. I would just find it surprising that, as an author, I don't have a way of hiding the anchored element. I imagine, in the cases where this is desired, my last try block would then be some artificially far away spot to "hide" it. |
Hm. I'd think you'd want to display that text some other way, but I suppose if it's optional/decorative/etc, it would be fine to just hide it, and authors do already have a guaranteed way to "hide" it themselves (by positioning in the unscrollable area). All right, use-case accepted. ^_^ |
This is a dupe of #7758 now. |
It wasn't clear from the spec, but it would be super nice to try a bunch of layouts to see where the anchored element fits, but if it doesn't fit anywhere, don't show it. Is that possible with the current syntax proposals?
The text was updated successfully, but these errors were encountered: