Skip to content

css-chain dev challenges diary #3

@sashafirsov

Description

@sashafirsov

The thoughts around the project.

Shadow DOM vs light DOM

css-chain meant to support as classic web components with shadow DOM as usual HTML within/out of web component.
Method $( ...arr ){ return $( this.shadowRoot || this ).$(...arr); } would work in both.

Slots. Shadow DOM vs light DOM tests

where to get the complete SLOT coverage test set?

The slots manipulation by cs-chain in light dom should produce the same result as in shadow DOM as in light DOM. But what is the complete use cases set? I expected to see its coverage in web components polyfill, but could not find. The Chromium sources do have some:
https://github.com/chromium/chromium/blob/main/third_party/blink/web_tests/external/wpt/shadow-dom/slots.html

slotted-element API

has a gentleman set of operations and unit tests for them. css-chain-test would adopt those.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions