topic: css
22 modules sharing the css name family (derived from the tree's prefix discipline).
The 'css' topic family in the Nishi sovereign ecosystem implements the cascading style sheet system, enabling styling of elements through a structured, modular approach. Modules like `nx_css_cascade_test` handle the computation of styles from HTML and user agents, while `nx_css_boxmap_test` maps these styles onto layout boxes, ensuring visual consistency. `nx_css_boxmodel_gate` provides a proof of the box model's height-axis calculations, validating padding and margin behavior. Together, these modules form a cohesive system for rendering styled content within the Nishi browser.
auto-narrated by the local model from this topic's module headers; links verified against the wiki index.
narrated overview -- maintained by the narration lane, module links verified against this wiki.
| module | description | lines | funcs |
|---|---|---|---|
| nx_css_apply.nx | CSS cascade for the Nishi browser. Phase 2 | 181 | 3 |
| nx_css_apply_test.nx | smoke for the Phase-2 cascade primitive. | 210 | 3 |
| nx_css_boxmap_test.nx | styling rung 3: map the cascade onto LAYOUT BOXES. nx_layout_block looks up | 154 | 7 |
| nx_css_boxmodel_gate.nx | PROOF (re-runnable) of the S21 height-axis rung: `padding`/`margin` | 143 | 9 |
| nx_css_cascade_test.nx | styling rung 2: HTML + a UA stylesheet -> per-element COMPUTED styles. | 136 | 6 |
| nx_css_color_decode.nx | decode a CSS HEXCOLOR byte range into | 291 | 9 |
| nx_css_color_decode_test.nx | smoke for CSS hex color decoder. | 91 | 2 |
| nx_css_dimension_to_px.nx | convert a CSS dimension (NUMBER body | 164 | 4 |
| nx_css_dimension_to_px_test.nx | smoke for dimension -> px. | 97 | 2 |
| nx_css_extract_test.nx | styling rung 1: extract a CssElement[] (tag/id/class per element, in | 111 | 7 |
| nx_css_fontsize_frac_gate.nx | PROOF (re-runnable) of the S21 F1 root-cause fix: a FRACTIONAL CSS | 85 | 7 |
| nx_css_number_parse.nx | decode a CSS NUMBER token body into a | 111 | 1 |
| nx_css_number_parse_test.nx | smoke for CSS number -> thousandths. | 97 | 3 |
| nx_css_parse.nx | CSS parser for the Nishi browser. Phase 2 (CSS | 459 | 7 |
| nx_css_parse_test.nx | smoke for the CSS parser Phase-2 second | 131 | 3 |
| nx_css_selector_match.nx | match a parsed CssRule selector against | 165 | 5 |
| nx_css_selector_match_test.nx | smoke for the Phase-2 selector | 125 | 3 |
| nx_css_tokenize.nx | CSS tokenizer for the Nishi browser. | 499 | 13 |
| nx_css_tokenize_test.nx | smoke for the CSS tokenizer Phase-2 seed. | 188 | 3 |
| nx_css_vars.nx | CSS custom-property (var()) resolution for the SOVEREIGN render engine, so Nishi Browser | 242 | 13 |
| nx_css_vars_engine_gate.nx | proves the NATIVE render engine (the exact rh_filter_media + _rh_to_fb the | 116 | 5 |
| nx_css_vars_gate.nx | KATs for CSS custom-property (var()) resolution (nx_css_vars). Proves Nishi Browser's | 135 | 6 |