No project used the dom profile, and it added a second browser host to
maintain beside Canvas. This removes dom_host, dom_tree, dom_paint, dom_run
and dom_app_run, the dom profile in the project tool, docs/dom.md, and the
DOM tests and their three make targets.
The shared browser code loses its DOM branches: page_events no longer tells
a DOM host about presses, blur and document layout, page_core and
page_texture drop the native DOM flag and the img decode kept for it, and
CanvasAppMainLoop takes no argument. The web template builds a Canvas2D
page. The cursor and rotated text tests cover the Canvas profile only.
The KSS package is now kryonlabs/css, a CSS subset. The catalog themes are
converted to CSS, the unused KSS fixtures are gone, and the docs, website,
DOM interaction test and site test name the CSS package.
Also carries the EMCC lookup in mk/emcc.mk from a concurrent task.
An android profile now builds a real Android application from the same
sources as the desktop: the kryon tool scaffolds a droid/ Gradle project
beside the application on the first build and assembles a debug APK with
the NDK. The canonical host (android_run) drives the session over
raylib's NativeActivity backend with the shared viewport policies; a
generated NativeActivity reports insets, cutouts, IME state, density,
dark mode and orientation through JNI natives written in Ziran, forwards
soft-keyboard text through the session-owned input queue, and an
unconsumed back key finishes the activity. Generation runs the whole Zi
graph through ziran ir --project so application module names may repeat
Kryon module names.
Style sheet parsing, formatting, the style packs, and their tests now
live in kryonlabs/kss, which depends on Kryon. Kryon keeps the rule
table and style resolution, so an app that builds its rules in code no
longer carries a parser; apps that read .kss text add the KSS package
and import kss/Kss or kss/SystemStyle.
PlotWidget now lives in kryonlabs/plot, TableView and TreeView in
kryonlabs/data-views, and the Ziran, C, and Make tokenizer in
ziranlang/syntax, which no longer depends on Kryon. Apps add them with
`ziran add URL` and import plot/Plot, data_views/TableView, or
syntax/Syntax.
Kryon exports the building blocks those packages draw with (session,
tree, surface, paint_queue, style, style_sheet, widget_kind, and the
rest), so a widget package imports kryon/NAME instead of reaching into
Kryon's source directories. The API guide describes writing one.
CI ran only `make test`, so the desktop, raylib, and libdraw hosts that
the feature matrix calls supported were never checked automatically.
A new job installs SDL, Cairo, Mesa, and the X tools, builds plan9port
once (cached), and runs the three project tests, each on its own private
Xvfb display with DISPLAY, WAYLAND_DISPLAY, and XAUTHORITY removed.
`make sanitize-test` repeats the behavior tests with every C and C++
program they build compiled under AddressSanitizer and
UndefinedBehaviorSanitizer, through $CC/$CXX wrappers; CI runs it in a
parallel job. The main job also fuzzes KSS with the run number as seed,
so each run adds sheets, and keeps a failing sheet as an artifact.
Kryon projects can select the canvas or dom backend to build a single-file
browser app through Emscripten. Images and links carry semantic detail so the
DOM backend can expose real image sources and link targets.