Skip to content

Commit d6cf423

Browse files
NiedziolkaMichalsideshowbarker
authored andcommitted
slot element
1 parent 2348481 commit d6cf423

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

schema/html5/web-components.rnc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,28 @@ namespace c = "http://n.validator.nu/custom-elements/"
5151
## The "is" attribute
5252
common.attrs.other &= attribute is { common.data.custom.element.name }?
5353

54+
## Slot: <slot>
55+
56+
slot.elem.flow =
57+
element slot { slot.inner.flow & slot.attrs }
58+
slot.elem.phrasing =
59+
element slot { slot.inner.phrasing & slot.attrs }
60+
slot.attrs =
61+
( common.attrs
62+
& slot.attrs.name?
63+
& common.attrs.aria?
64+
)
65+
slot.attrs.name =
66+
attribute name {
67+
string
68+
}
69+
slot.inner.flow =
70+
( common.inner.transparent.flow )
71+
slot.inner.phrasing =
72+
( common.inner.phrasing )
73+
74+
common.elem.flow |= slot.elem.flow
75+
common.elem.phrasing |= slot.elem.phrasing
76+
5477
## The "slot" attribute
5578
common.attrs.other &= attribute slot { text }?

0 commit comments

Comments
 (0)