Skip to content

Declarative Shadow DOM #232

Closed
Closed

Description

@josepharhar

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

Activity

  1. moved this to Proposed in Interop 2023on Oct 21, 2022
  2. smaug---- commented on Oct 24, 2022

    @smaug----

    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?

  3. josepharhar commented on Oct 31, 2022

    @josepharhar
    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.

  4. foolip commented on Nov 11, 2022

    @foolip
    Member

    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.)

  5. nairnandu commented on Feb 1, 2023

    @nairnandu
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    focus-area-proposal

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions