PreactBaseElement
creates a <c style="display: contents">
element in the shadow root appended to its associated custom element. Note: display: contents
is not supported everywhere, and its accessibility is not up to spec. Given display: inline
is an acceptable fallback for it, <c>
is utilized because it is display: inline
by default.
For a passthrough element, it looks like this:
amp-foo
├── #shadow-root
| └── c > Foo({children: Slot})