code wiki / _hdl_build / nx_css_vars_gate.nx

nx_css_vars_gate.nx

buildroot/runtime/_hdl_build/nx_css_vars_gate.nx

7337 B135 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic css
docsdependenciesstructsconstsfunctions

about

nx_css_vars_gate.nx -- KATs for CSS custom-property (var()) resolution (nx_css_vars). Proves Nishi Browser's engine can now resolve the fleet-standard --nx-color-* tokens NATIVELY: basic sub, fallback, indirection, embedded-in-shorthand, real office-shape two-level, and the CRITICAL no-op (a page without var() must come out byte-identical so every existing reader/browser/nishios gate stays green). license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_css_vars.nx nx_css_vars_gate.nx

imports: nx_css_vars.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main p g_run g_slen cx_expand sys_mmap cx_collect cx_ch cx_is_ws cx_find cx_name_eq cx_ch ↻ cx_emit_span cx_ch ↻ cx_is_ws ↻ cx_emit_name cx_find ↻ cx_emit_span ↻ cx_emit_span ↻ g_has g_slen ↻ g_ck p ↻ g_slen ↻ clamp_resolve cx_ch ↻ clamp_eval sys_mmap ↻ cx_ch ↻ cx_is_ws ↻ clamp_term cx_isdig cx_ch ↻ cl_emit_int sys_mmap ↻

structs

none

consts

none

functions

8func p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 2: g_ckmain
9func g_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 3: g_hasg_runmain
11func g_has(out: *u8, olen: i64, needle: *u8) -> i64
called by 1: main calls 1: g_slen
24func g_ck(name: *u8, cond: i64, pass: *i64, fail: *i64) -> i64
called by 1: main calls 1: p
29func g_run(css: *u8, out: *u8) -> i64
called by 1: main calls 2: g_slencx_expand
35func main() -> i64