-
Notifications
You must be signed in to change notification settings - Fork 183
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
[popup] visibility: hidden vs. other choices #492
Comments
Summary log of the comments from the original issue: @scottaohara:
Arguably a popup could still be given a
Yeah, that was specifically the reasoning behind the current UA stylesheet for So this might be a kind of consistency-vs.-goodness tradeoff. @mfreed7: div[popup]:not([open]) {
display: block;
visibility: hidden;
transition: whatever;
} So I think I'm fine changing this back to @domenic:
Hmm, it's a bit odd in this case, because @domenic: |
FWIW, i do agree that for consistency sake |
As I'm implementing the prototype, I'm inclined to just change the explainer to |
I've put up a PR to make this change, on the optimistic assumption that people agree with me. |
I'm going to just make this change and close the issue. It seems to work well, at least for now, in the prototype, and I haven't heard any complaints. |
This issue was reported by @domenic here, and is being moved to the OpenUI repo.
The explainer says being not-
open=""
will usevisibility: hidden
.I couldn't find any consideration for why this is the best choice. In particular:
open=""
on<dialog>
usesdisplay: none
.open=""
on<details>
usesdisplay: block; content-visibility: hidden;
.I don't know which is the best choice for popup, but I hope to see a section weighing the various tradeoffs.
The text was updated successfully, but these errors were encountered: