propsToSelectors
disposition: bound, direction: spec-to-css, basis: implementation
A prop rule of the CSS binding. The kinds named below resolve jointly here — which kind a prop even is, or what platform shape it takes, is decided by this rule rather than per kind.
Keys. boolean, enum, number, object
Operands
Every fact the rule reads. Nothing outside this set participates.
| Operand | From |
|---|---|
prop.kind | spec document |
prop.enum | spec document |
conventions.specs.states | declared conventions |
context.platform | emitting platform (React or Web Components) |
Derived predicates
| Name | Expression | Source |
|---|---|---|
derived.isStateConcept | conventions.specs.states.<concept>.prop = this prop | from-specs states.buildStateLookup |
Cases
Ordered — first match wins.
| # | When | Emits | Why |
|---|---|---|---|
| 1 | derived.isStateConcept = true | the concept’s selector — a pseudo-class (:hover, :disabled) or an aria attribute ([aria-selected="true"]) | A state concept’s styling follows the browser’s or the contract’s own state surface, not a variant attribute |
| 2 | context.platform = react | [data-<prop>="<value>"] on the component’s root class | The React scaffold writes each variant prop as a data attribute on its root |
| 3 | context.platform = webcomponents | :host([<attr>="<value>"]), where <attr> is the reflected attribute — bare where the name is free, data- where it collides with a global attribute | The custom element reflects the prop; reflectedAttrs is the one function the element and the stylesheet share, so they cannot disagree |
Otherwise
Nothing is emitted. — A prop no variant configuration names selects nothing
Props never become declarations. They decide WHICH rule block applies; the styles surface above decides what the block says. Values are normalized by the enumCase contract on both sides of the selector.