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

Declarative Shadow DOM #232

Closed
josepharhar opened this issue Oct 20, 2022 · 4 comments
Closed

Declarative Shadow DOM #232

josepharhar opened this issue Oct 20, 2022 · 4 comments
Labels
focus-area-proposal Focus Area Proposal

Comments

@josepharhar
Copy link

This was split from #181

Description

https://w3c.github.io/webcomponents-cg/#declarative-shadow-dom
Declarative Shadow DOM is a mechanism to express Shadow DOM using only HTML, with no dependency on JavaScript, much like light DOM can be declaratively expressed today.

Rationale

https://w3c.github.io/webcomponents-cg/#declarative-shadow-dom
Without Declarative Shadow DOM, web components depend on rendering environments that support JavaScript. This limits their use in server-side rendering and javascript-less environments.

Tests

https://wpt.fyi/results/shadow-dom/declarative

Spec

whatwg/dom#892
whatwg/html#5465

@gsnedders gsnedders added the focus-area-proposal Focus Area Proposal label Oct 21, 2022
@smaug----
Copy link

It is unclear which version of the declarative shadow DOM this is about. The one shipping in Chrome or the more recent streaming based? Or just generic proposal to have some way to have declarative shadow DOM?

@josepharhar
Copy link
Author

I don't think any of the tests are for streaming at this point, but we have a prototype of streaming in chromium and webkit sounded supportive. Therefore, if it must be streaming or not-streaming I suppose I choose streaming.

@foolip
Copy link
Member

foolip commented Nov 11, 2022

In the MDN short survey on APIs & JavaScript, "Web Components (custom elements, Shadow DOM, etc.)" was the most popular choice by a fairly wide margin, selected by ~39% of survey takers.

Web Components was split into many granular proposals, and the survey results don't tell us which aspects web developers want the most, but it's fair to say that something about Web Components is important. (I'm posting this comment on each of the split proposals.)

@nairnandu
Copy link
Contributor

Thank you for proposing Declarative Shadow DOM for inclusion into Interop 2023.

We wanted to let you know that this proposal was not selected to be part of Interop this year. As discussed in the issue, there were concerns about the maturity of the specification and the availability of automated tests. These issues will need to be addressed in the relevant standards organization. However this should not be taken as a comment on the technology as a whole. If these issues are resolved, resubmitting a proposal for this feature as part of a future round of Interop would be welcome.

For an overview of our process, see the proposal selection summary. Thank you again for contributing to Interop 2023!

Posted on behalf of the Interop team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus-area-proposal Focus Area Proposal
Projects
No open projects
Status: Proposed
Development

No branches or pull requests

5 participants