Skip to content
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-view-transitions-1] Limiting the feature to HTML #9357

Closed
vmpstr opened this issue Sep 14, 2023 · 2 comments
Closed

[css-view-transitions-1] Limiting the feature to HTML #9357

vmpstr opened this issue Sep 14, 2023 · 2 comments

Comments

@vmpstr
Copy link
Member

vmpstr commented Sep 14, 2023

The spec currently describes the feature as being agnostic to the type of document. We use style sheets that are :root etc. I think this is great, but we don't know of any implementations planning to support anything other than html. Specifically, since we don't have implementation experience for other document types, we don't know whether all of the features in the spec can be implemented there (does xml have pseudo elements?)

I propose specifically mentioning that this must be supported for html documents, and browser may support this for other document types. Either that, or just flat out limiting this to html? I don't really know of use cases targeting any other document type. Are there compelling use-cases?

@vmpstr vmpstr added the css-view-transitions-1 View Transitions; Bugs only label Sep 14, 2023
@zcorpan
Copy link
Member

zcorpan commented Sep 14, 2023

Any document type that can be loaded into a browsing context can also be navigated. An SVG doc can also have CSS styles even without using any HTML elements, and can have links that can cause navigation. I don't know if view transitions work for SVG elements, but you can also have HTML (or MathML) elements in SVG.

Also, if it's limited to "HTML documents", then that excludes XHTML, which seems unnecessary/bad.

HTML's rendering section already says how to handle "unstyled XML", where the UA stylesheet doesn't apply at all: https://html.spec.whatwg.org/multipage/rendering.html#unstyled-xml-documents

So I think having any-namespace rules in the UA stylesheet is fine. There's also precedent for that with fullscreen: https://fullscreen.spec.whatwg.org/#user-agent-level-style-sheet-defaults

@vmpstr
Copy link
Member Author

vmpstr commented Sep 19, 2023

Sounds good. We also discussed this offline a bit and agree that we should keep supporting all document types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants