8 Commits
Author SHA1 Message Date
waozi 00d65fcb36 Refuse browser-only CSS natively and generate the property table
A plain CssSheetParse no longer skips a browser-only declaration
silently: it fails with a message that points shared sheets to
CssSheetParseWithDiagnostics, which keeps native rules and reports the
declaration. The web declaration counters on the parser and sheet are
gone; packs refuse such declarations through the same parse, and the
formatter counts them from the recorded declarations.

The README property table is generated by css_tool properties from the
parser's catalog, make check fails when it is stale, and the parse tests
read every catalog row natively on its target.
2026-11-22 19:15:09 -03:00
waozi 48f2da629b Flatten nested & rules into compound selectors
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.
2026-11-22 19:00:19 -03:00
waozi 3effc75222 Resolve calc(), min(), max(), clamp(), em, vw and vh natively
Lengths read through one expression reader. Without viewport units an
expression folds to pixels as the sheet is read, so box, size and flex
lengths take calc() and em too (em is the rule's own font-size, else
16px). With vw or vh it stays a clamp of linear forms the install
evaluates against the environment's viewport; packs carry them in an
exprs table, and CssSheetSameMedia reports a change when a new viewport
changes an active rule's length. A var() fallback may hold one more
var(), and var(--kryon-NAME) reads the installed theme palette.
2026-11-22 18:54:17 -03:00
waozi 7dd9fff21b Enable native viewport grids in CSS 2026-11-21 17:08:31 -03:00
waozi eba580e376 Compile native width and height for retained layouts 2026-11-20 12:19:41 -03:00
waozi 850bf7465c Resolve native CSS color mixes and reduced-motion queries 2026-11-20 01:07:50 -03:00
waozi ad4ec746bb Expand native CSS authoring and remove legacy KSS 2026-11-19 22:12:22 -03:00
waozi bc247a75de Parse Kryon styles as a CSS subset
Work in progress: the CSS parser, sheet, compiled packs, formatter,
migrator and DOM export replace the KSS reader. Tests and downstream
conversion follow.
2026-11-07 13:15:02 -03:00