File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -51,5 +51,28 @@ namespace c = "http://n.validator.nu/custom-elements/"
51
51
## The "is" attribute
52
52
common.attrs.other &= attribute is { common.data.custom.element.name }?
53
53
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
+
54
77
## The "slot" attribute
55
78
common.attrs.other &= attribute slot { text }?
You can’t perform that action at this time.
0 commit comments