Files
shinyobjectz 30960ed5fa #34: a render says once, when it ends, what its page didn't apply, and its output loses the warnings no one acts on.
Dropped CSS: stylo drops what it can't parse silently unless a ParseErrorReporter is passed, and blitz-dom passed none, so a render printed APPLIED over a picture missing some of its code. vendor/blitz-dom/src/not_applied.rs is that reporter, passed at every author parse (stylesheets and @imports in net.rs, <style> in document.rs, style attributes in node/element.rs, CSSOM in cssom.rs; never the user-agent sheet). It keeps each drop once per property and selector, never its value ("-webkit-text-stroke in .outline", "... in a style attribute"), since a style attribute is parsed again on every frame it changes. FileNet's loads that fail join the list ("the file ... (it didn't load)"). The render prints it once after APPLIED (engine/cli for TSX, apps/media for HTML) as "NOTE  the page didn't apply N things, and is drawn without them:", one per line, at most 20, and --manifest gets it as not_applied. RAEA_NOT_APPLIED=0 parses as before (docs/settings.md), for measuring.

Vendored stylo change, to upstream later: report_one_css_error (properties/declaration_block.rs) returned before reporting any unknown property with a -webkit-, -ms- or -o- prefix, which hid the reporter's main case, -webkit-text-stroke (Gecko-only in stylo, drawn as nothing). It reports them now, and raea's reporter skips the prefixed properties that change nothing in a picture (text-size-adjust, tap-highlight-color, font-smoothing, appearance, user-select and the like), so Tailwind's preflight adds no lines (a Tailwind page with gradients, rings, blur and truncate printed no NOTE). A value error is also named by the property stylo parsed, with the value after it. vendor.toml says both.

Noise: Bevy's bevy_asset::io::web and io::source warnings (printed by every render) and fontdb's skipped faces (system fonts it can't parse, which the reporter saw on Windows; a missing @font-face file, which the NOTE names) are filtered at both LogPlugins (engine/page motion.rs, engine/render open.rs). io/trace's `log` logger, which every third-party `log` record goes through, prints only warnings and errors now, and not fontdb's (Bevy's Ctrl+C handler printed two INFO lines on every render); every record still goes to the trace's events.jsonl.

Check: bench/dropped-css/check.sh renders the reporter's page as TSX (30 frames, its outline moving so its style attribute is parsed each frame) and as HTML. Each must exit 0 and print one NOTE naming -webkit-text-stroke and the missing font once each, with no INFO line and no bevy_asset or fontdb warning, and the TSX render's manifest must list both under not_applied. It fails on the raea before this (no NOTE) and passes on this one.

fps, one build with the reporter on and off (RAEA_NOT_APPLIED), seven alternating rounds on a shared, busy machine: the worst case (bench/dropped-css's page at 600 frames, dropping a declaration on every frame) median 516 on vs 479 off; bench/html-repeat median 202 on vs 172 off. No cost shows above the noise (min to max spans 315 to 620). (closes #34)
2026-11-07 17:46:28 -08:00
..