code wiki / _hdl_build / nx_browser_bg_gate.nx
nx_browser_bg_gate.nx
buildroot/runtime/_hdl_build/nx_browser_bg_gate.nx
about
nx_browser_bg_gate.nx -- proves the Nishi Browser box painter fills element backgrounds given as rgb() (and
the fleet var(--token) that resolves to rgb()), through the REAL browser render path (br_layout + br_draw_fb).
ROOT CAUSE this locks: br_comp_bg's `background` SHORTHAND branch was hex-only, so the office chrome
(buttons/.fico badges use `background:var(--acc)` -> `background:rgb(...)`) painted NOTHING natively -- the live
office rendered monochrome in our own browser while Waterfox was fine. license_tier: ORIGINAL expect_exit: 0
dependencies 1 imports · 0 importers
imports: nx_browser_render.nx
imported by: nobody (leaf or entry point)
structs
| none |
consts
| none |
functions
| 8 | func p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 9 | func bg_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: bg_yspan |
| 14 | func bg_xspan_at(html: *u8, hlen: i64, render_w: i64) -> i64 |
| 51 | func bg_accent(html: *u8) -> i64 { return bg_accent_n(html, bg_slen(html)) } |
| 53 | func bg_accent_n(html: *u8, hlen: i64) -> i64 |
| 90 | func bg_yspan(html: *u8) -> i64 |
| 128 | func bg_ck(name: *u8, cond: i64, cnt: i64, pass: *i64, fail: *i64) -> i64 |
| 144 | func main() -> i64 |