Skip to content

statesToContract

disposition: bound, direction: spec-to-code, basis: implementation

A prop rule of the Web Components 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

Operands

Every fact the rule reads. Nothing outside this set participates.

OperandFrom
conventions.specs.statesdeclared conventions
concept.contractthe shared state-concept table (from-specs states.ts)

Cases

Ordered — first match wins.

#WhenEmitsWhy
1concept.contract = omitnothing — the prop leaves the contract; the CSS binding selects on the browser pseudo-classHover, focus, active are the browser’s to drive; a consumer cannot meaningfully set them
2concept.contract = keepthe prop stays a property; the element writes the concept's aria attribute when it is setDisabled, selected, invalid are consumer-set facts the DOM should also state

Otherwise

the prop is an ordinary property — A prop no state entry names is not a state

Identical rule to the React binding by construction: the concept table — selector and contract disposition per concept — is one shared module, so the two emitters and the CSS transform cannot disagree.