Teach the Rust parser to recognize declarative shadow root templates and pass the parsed mode, slot assignment, clonable, serializable, and focus-delegation flags to the C++ DOM host. Expose shadowRootSlotAssignment reflection with the spec-defined named missing and invalid value defaults, and extend the ShadowDOM text test coverage for the reflected property and parser-created shadow roots.
35 lines
488 B
Text
35 lines
488 B
Text
[object ShadowRoot]
|
|
0
|
|
null
|
|
0
|
|
[object ShadowRoot]
|
|
1
|
|
null
|
|
0
|
|
[object ShadowRoot]
|
|
0
|
|
|
|
|
|
|
|
<template shadowrootmode="open">open</template>
|
|
|
|
|
|
<template shadowrootmode="open" shadowrootserializable="">open</template>
|
|
|
|
|
|
|
|
|
|
|
|
<template shadowrootmode="open" shadowrootserializable="">open</template>
|
|
|
|
|
|
manual
|
|
null
|
|
<template shadowrootmode="open" shadowrootserializable="" shadowrootslotassignment="manual"><slot name="slot"></slot></template>
|
|
|
|
<span slot="slot">manual</span>
|
|
|
|
named
|
|
manual
|
|
named
|
|
named
|