-
Notifications
You must be signed in to change notification settings - Fork 57
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
CSS content-visibility property #306
Comments
At TPAC, it sounded as there is some overlap between this and the Invisible Searchable DOM proposals and that you needed to work out what solution to promote or whether you could come up with a new joined proposal. In the light of that, are you still looking for feedback on this proposal at this time? |
Given the opposition from Apple and Mozilla (see WICG/virtual-scroller#164) is this moving forward, and worth out time to review in details? |
The URL (and hashchange) could change/fire with the find-in-page especially with the new scroll to text fragment feature https://github.com/WICG/ScrollToTextFragment/ |
Just to clarify your last point here, do you mean that it already should fire on find-in-page and scroll-to-text, or that we should update When considering find-in-page specifically, which is a primary use case for us, I think it would be somewhat awkward to have I think we can safely drop fragment-link navigation (ie #id navigation) from |
Yes, it would probably have to be a |
Strong +1. It's better to leave hashchange for being dedicated to handling hash changes, and not force developers to structure their code like document.addEventListener("beforematch", handleBeforeMatch);
document.addEventListener("hashchange", () => {
handleHashChange();
handleBeforeMatch();
}); Letting "beforematch" be the one-stop-shop for this sort of handling is a much more elegant and decoupled design, instead of taking a dependency on the incidental fact that we already have an event for 1 of 3 cases. |
Maybe we can find a better name than It is also not clear that match relates to find-in-page etc |
Yes, that's the intended behavior
That's fair, we're discussing it here: WICG/display-locking#115 |
Yeah, I think that's fine. But I think it's worth mentioning the existence of |
After further testing (with @josepharhar's help), I'm no longer sure that my position of keeping fragment navigation is correct. Specifically, script can change the hash and expect that the scroll be changed immediately. The way we've been thinking about I've filed WICG/display-locking#135 to discuss this further. |
Hello, We'd like to focus only on the CSS content-visibility property in this issue (contain-intrinsic-size and beforematch events should be discussed separately if needed). The current version of the spec draft can be found here: We would appreciate another pass at this review! Note: If possible please file an issue in https://github.com/w3c/csswg-drafts/issues/ with your feedback |
@vmpstr the spec doesn't have the hidden-matchable which the explainer says will solve use-case 2. Was that dropped and should the explainer be updated? |
@dbaron @kenchris and myself took another look this issue, now scoped to content-visibility only. It would be good to update the explainer to match the CSS Containment module, ex. the value We advise you to continue working with the CSSWG in completing the rest of the spec. |
The hidden-matchable value is something that we would still like to pursue in the future but it would require a separate discussion / design review, as well as require additional features like #511 to be useful. For now, we're focussing on the values outlined in the spec draft. I will update the explainer to separate the proposed values here from the possible new values that we are thinking of proposing. Thanks! |
I've updated this in the repo, hopefully the separation of the features is more clear now. https://github.com/WICG/display-locking/ |
Bonjour TAG,
I'm requesting a TAG review of:
We'd prefer the TAG provide feedback as (please select one):
The text was updated successfully, but these errors were encountered: