code wiki / (root) / nx_layout_example_com_real_test.nx

nx_layout_example_com_real_test.nx

buildroot/runtime/nx_layout_example_com_real_test.nx

9234 B229 linesdepth 7pulls 18 transitivereach 0 importersview sourcekind gate/prooftopic layout
docsdependenciesstructsconstsfunctions

about

nx_layout_example_com_real_test.nx -- lay out the REAL example.com HTML page (528 bytes) fetched through bits-up TLS 1.3 + cert chain + chunked-transfer dechunk. Reads /tmp/example_com.html (dropped by nx_https_get_live_real_ca), streams it through nx_layout_from_dom, and reports the resulting LayoutBox tree shape: count, max depth, presence of canonical nodes (html/head/body/h1/p/a). Does NOT yet compute geometry -- the goal here is to prove the substrate's HTML→DOM→layout-tree path consumes a real-world page without segfaulting or stalling. expect_exit: 0. license_tier: ORIGINAL

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_layout_box.nx nx_layout_from_dom.nx nx_layout_block.nx nx_css_apply.nx nx_layout_example_com_real_tes

imports: nx_syscalls.nxnx_layout_box.nxnx_layout_from_dom.nxnx_layout_block.nxnx_css_apply.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close dump_dec sys_mmap ↻ sys_write nx_layout_tree_init nx_layout_from_dom_stack_i nx_layout_from_dom nx_layout_box_append _layout_box_at _lfd_push sys_mmap ↻ nx_html_cursor_init nx_html_next_token _scan_name _is_name _is_void_element _lc _lfd_is_chrome_start _lfd_chrome_tag _lfd_has_role_nav _lfd_name_eq _lfd_lc _lfd_has_chrome_class _lfd_src_has_sub _lfd_inline_hidden _lfd_src_has_sub ↻ nx_layout_default_display _disp_eq1 _disp_lc _disp_is_h_family _disp_lc ↻ _disp_eq2 _disp_lc ↻

structs

none

consts

none

functions

21func dump_dec(l0: i64, l1: i64, v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
46func max_depth(tree: *LayoutTree, idx: i64, d: i64) -> i64
called by 2: max_depthmain calls 1: max_depth
60func main() -> i64