Skip to content

Commit

Permalink
slot element
Browse files Browse the repository at this point in the history
  • Loading branch information
NiedziolkaMichal authored and sideshowbarker committed Nov 4, 2022
1 parent 2348481 commit d6cf423
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions schema/html5/web-components.rnc
Expand Up @@ -51,5 +51,28 @@ namespace c = "http://n.validator.nu/custom-elements/"
## The "is" attribute
common.attrs.other &= attribute is { common.data.custom.element.name }?

## Slot: <slot>

slot.elem.flow =
element slot { slot.inner.flow & slot.attrs }
slot.elem.phrasing =
element slot { slot.inner.phrasing & slot.attrs }
slot.attrs =
( common.attrs
& slot.attrs.name?
& common.attrs.aria?
)
slot.attrs.name =
attribute name {
string
}
slot.inner.flow =
( common.inner.transparent.flow )
slot.inner.phrasing =
( common.inner.phrasing )

common.elem.flow |= slot.elem.flow
common.elem.phrasing |= slot.elem.phrasing

## The "slot" attribute
common.attrs.other &= attribute slot { text }?

0 comments on commit d6cf423

Please sign in to comment.