One ancestor compound, matched by its class or id, may come before the
styled compound: '.card Text' for any ancestor, '.card > Text' for the
parent. :first-child, :not(.class) and :not(:state) add tree context, also
in nested & rules, and the DOM export writes all of them as browser
selectors. :last-child, :nth-child(), typed or second ancestors and sibling
combinators fail with the native idiom.
The pack format is 87 words a rule. Pins Kryon 56777c65, which matches the
context while the frame builds.
A rule can hold &:state, &.class, &#id and &[attribute] rules one level
deep. Each adds its parts to every parent selector, is read after the
parent yields, and exports with the parent's selector text. A part that
repeats a parent's class, id, attribute or state with another value is
an error. Combinators, :not() and child-position pseudo-classes stay
errors, now naming the native idiom, because native styles are matched
without tree context.
Behavior tests for the parser, sheets, formatter, migrator and DOM
export; a conformance digest that C, C++, Go, ZX, Android and the
browser export must agree on; and a sanitized fuzzer. The export keeps
Kryon's rule ranking, HSL rounds as browsers round it, and the
migrator refuses output that would not parse.
Work in progress: the CSS parser, sheet, compiled packs, formatter,
migrator and DOM export replace the KSS reader. Tests and downstream
conversion follow.