Skip to content

feat(rune-text,rune): animate monochrome SMIL SVG icons with partial damage - #1291

Merged
Hona merged 5 commits into
devfrom
ws6/animated-svg-icons
Nov 20, 2026
Merged

Hona merged 5 commits into
devfrom
ws6/animated-svg-icons

Conversation

@Hona

@Hona Hona commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Supports monochrome (currentColor) SMIL SVG animation elements (<animate>, <animateTransform>, <set>) on rune::Icon, paced via WaitingUntil + loop_step / arm_loop, preserving Windows partial window damage with zero whole-window redraws and zero empty presents, and holding at t = 0 under reduced motion with zero idle frames.

Scope & Deliberate Difference

  • Monochrome (currentColor) icons animate (built-in and third-party plugins, matching upstream anomalyco/opencode#64577 + #60001).
  • Multi-colour icons render static via existing color_icon (the colour usvg UI-thread animation path is dropped). Multi-colour icons containing SMIL tags emit a one-time debug_assertions stderr warning naming the icon (and rune-desktop logs plugin + icon name).

Shared Defence-in-Depth Caps

Defined in one place (crates/rune-text/src/icon/anim/parse.rs:13-34) and matched 1:1 by OpenCode Desktop's sanitizer (crates/opencode-plugin-runtime/src/svg/mod.rs:21-46):

  • MAX_SVG_BYTES = 32 KiB, MAX_DEPTH = 16, MAX_ELEMENTS = 128, MAX_SHAPES = 64, MAX_LAYERS = 8, MAX_ANIMATIONS = 16
  • MAX_PATH_BYTES = 16 KiB, MAX_PATH_COMMANDS = 1024, MAX_POINTS_NUMBERS = 1024, MAX_KEYFRAMES = 64, MAX_TRANSFORM_OPS = 8
  • MIN_VIEW_DIM = 1.0, MAX_VIEW_DIM = 4096.0, MIN_DUR_SECS = 0.016, MAX_CLOCK_SECS = 3600.0, MAX_REPEAT_COUNT = 10_000.0
  • MAX_COORD = 4096.0, MAX_STROKE_WIDTH = 256.0, MAX_SCALE = 64.0, MAX_SKEW_DEG = 85.0, MIN_SPLINE_Y = -4.0, MAX_SPLINE_Y = 5.0

Shipping-Build Zero-Regression Check (No Animated Icon on Screen)

Paired shipping builds of anomalyco/rune-desktop (--profile release, fat LTO, features: [], ORPHANED PGO profile identical on both builds: x86_64-pc-windows-msvc.profdata trained at app e54adc6c9ad0 / Rune 78efd4a7) built on the farm via measure-exe.ts and timed on blade (Intel(R) Iris(R) Xe Graphics, DX12, hidden desktop inside tools/quiet-window.ps1 -Kind timing, OPENCODE_RUNE_OTEL=0; proof/ws6/rune-1291-shipping-ab/summary.json):

  • Base (dev): e9b29cd06dcd (Rune dc8f7f72, 157,894,144 B, sha256 283160962421…)
  • Candidate (ws6/measure-rune-1291, measuring only): 30bab666a7ca (ONLY Rune pin bumped to train/1120s a7a0ab78 = dc8f7f72 + #1304 + #1291 bdf974ca, 158,003,200 B, sha256 574d3e47c79a…)
Scene (no animated icon) Runs Floor (same window) Base dev (dc8f7f72) median [min..max] (spread) Candidate (dc8f7f72 + #1291) median [min..max] (spread) Delta (cand − base) Verdict
Streamed reply (prose, commit frame, Pass 2 cand-first) 5 1,294.0 µs append (757.9 µs empty) 2,979.0 [2,779.7..3,032.2] (252.6 µs); pooled 2,933.7 µs 2,999.8 [2,771.1..3,072.4] (301.3 µs); pooled 2,915.6 µs +20.8 µs (−18.1 µs pooled) PASS (inside spread)
Streamed reply (prose, commit frame, Pooled Pass 1+2) 10 1,264.3 [1,234.6..1,294.0] µs append (777.1 µs empty) 2,917.9 [2,726.5..3,032.2] (305.7 µs); pooled 2,890.4 µs 3,018.3 [2,756.3..3,528.7] (772.4 µs; Pass 1 r1–r3 E-core/clock step where workUs rose identically +35%) +100.4 µs (ranges overlap) PASS (inside spread)
Streamed reply (prose, motion frame, Pooled Pass 1+2) 10 777.1 µs empty 1,249.4 [1,102.9..1,394.5] (291.6 µs) 1,268.6 [1,099.4..1,640.0] (540.6 µs); Pass 2 pooled 1,229.0 vs 1,230.1 µs +19.2 µs (−1.1 µs Pass 2) PASS (inside spread)
2,000-line code block (code2k, first block frame) 5 903.1 [888.4..1,005.8] µs pre-block (cand 858.8) 17,476.1 [17,166.1..20,831.6] (3,665.5 µs) 16,983.1 [16,793.7..23,353.6] (6,559.9 µs) −493.0 µs PASS (inside spread)
2,000-line code block (code2k, settled scroll) 5 903.1 µs pre-block (cand 858.8) 3,129.5 [2,700.3..4,444.6] (1,744.3 µs) 3,132.8 [3,071.0..4,616.9] (1,545.9 µs) +3.3 µs PASS (inside spread)
2,000-line code block (code2k, streaming 0.8–2.8 s) 5 903.1 µs pre-block (cand 858.8) 3,186.9 [2,955.4..3,511.8] (556.4 µs) 3,106.8 [2,914.1..3,188.4] (274.3 µs) −80.1 µs PASS (inside spread)
Idle window with static Goal pill (Goal reached, 10 s settle + 5 s strobe) 5 Plain idle (no goal pill): 1 present (base 3,857.0 µs, cand 4,262.9 µs); headless --at 2.0: 0 animating frames 1 present/5 s [1,1,1,1,1] (0 extra over floor); 3,703.8 [3,362.5..4,822.2] (1,459.7 µs) 1 present/5 s [1,1,1,1,1] (0 extra over floor); 3,549.6 [3,395.9..3,739.8] (343.9 µs) 0 frames (−154.2 µs) PASS (0 extra frames)

(Both builds use the same ORPHANED PGO profile trained at Rune 78efd4a7, which accounts for the ~600 µs offset vs matched-PGO reference 2,236.6 µs on prose; GPUI's earlier ORPHANED baseline at ef07741a was 2,800 [2,720.1–2,925.2] µs.)

Shipping-Build Measurement (--release --features frame-profile, RUNE_FRAME_LOG, 1280×800 @ 1.5× Iris Xe Dx12 165 Hz)

Idle window displaying 18 transcript rows + Goal pill (1 s warmup + 5 s steady window for animated/two_icons/static/reduced, 2.5 s steady for spinner/slide; hidden desktop; proof/ws6/rune-1291-bench/{summary-v4,summary-v2,summary,official-summary}.json):

Arm Steady Frames FPS loop_step / Fallback Whole-Window Redraws Empty 1×1 Presents Damaged Area / Frame build_cpu p50 Total Frame CPU p50 (mean) Window CPU Total % of 1 Core
Rune bdf974ca Animated (goal/icons/active.svg, 5 s) 108 21.6 108 / 0 (100% fast path) 0 0 625 px² (25×25, 0.027% of window) 0.5 µs (paint 0.0 µs, prebuild 47.7 µs) 728.5 µs (758.4 µs) 81.9 ms 1.64%
Rune bdf974ca Two Same-Size Animated Icons (5 s) 215 43.0 215 / 0 (100% fast path) 0 0 625 px² (both rects: 126 + 89 frames) 0.5 µs (paint 0.0 µs, prebuild 26.7 µs) 724.5 µs (752.0 µs) 161.7 ms 3.23%
Rune bdf974ca Icon + a11y_hidden Cycle Spinner (2.5 s) 70 28.0 0 / 70 (ordinary fallback) 0 0 977.9 px² (both rects: 70 + 50 frames) 0.5 µs (paint 88.7 µs, prebuild 121.9 µs) 908.1 µs (921.0 µs) 64.5 ms 2.58%
Rune bdf974ca Icon + Slide Shimmer (2.5 s) 323 129.2 0 / 323 (ordinary fallback; 0 overdue wakes) 0 134 (bar clipped off-track) 915.9 px² (slide + icon 21 frames) 149.6 µs (paint 91.1 µs) 1,074.1 µs (1,107.0 µs) 357.6 ms 14.30%
Rune bdf974ca Static (goal/icons/complete.svg, 5 s) 0 0.0 0 / 0 0 0 0 px² 0 µs 0 µs 0.0 ms 0.00%
Rune bdf974ca Animated + Reduced Motion (t = 0 hold, 5 s) 0 0.0 0 / 0 0 0 0 px² 0 µs 0 µs 0.0 ms 0.00%
Rune 61a091d8 Animated (earlier unthrottled head, 5 s) 621 124.2 0 / 621 0 67 (10.8%) 529 px² (23×23, 0.023% of window) 168.2 µs (paint 128.1 µs) 1,505.0 µs (1,436.0 µs) 891.7 ms 17.83%
Official Electron e51247f626 Static Idle (Goal reached, 0 CSS / 0 SMIL) — 2.0 — — — — — — 2,062.5 ms 41.19%
Official Electron e51247f626 SMIL-only Idle (active.svg swapped in, 0 CSS / 4 SMIL) — 240.4 — — — — — 6,289.3 µs/swap 7,562.5 ms 151.20% (+110.0% delta)
Official Electron e51247f626 Following goal Full (26 CSS + 4 SMIL) — 240.2 — — — — — 10,442.4 µs/swap 12,578.1 ms 250.83%

Stage breakdown (61a091d8 → bdf974ca, common idle case p50 µs):

  • 61a091d8 (1,505.0 µs): submit_cpu 824.9 (54.8%) + present_cpu 292.8 (19.5%) + build_cpu 168.2 (paint 128.1, 11.2%) + encode_cpu 133.7 (8.9%) + acquire_cpu 21.1 (1.4%) + upload 19.5 (1.3%) + prebuild 3.2 (0.2%).
  • bdf974ca (728.5 µs): submit_cpu 443.5 + present_cpu 157.5 + encode_cpu 52.5 + prebuild 47.7 + acquire_cpu 17.5 + upload 9.7 + build_cpu 0.5 (paint 0.0). Total idle CPU is 1.64% of 1 core (10.9× lower than 61a091d8, 92.2× lower than Official Electron SMIL-only idle), with 0 fallback frames in the 5 s window (108/108 loop_step). Visual cadence equivalence across the full 2.4 s active.svg cycle is in proof/ws6/rune-1291-bench/goal-pulse-30hz-vs-exact.png.

Finding-by-Finding Resolution (notes/review-1291.md Initial + Delta Reads at 61a091d8 & 676852e5)

# Reader Finding Resolution File & Line
1a Colour usvg UI-thread stack overflow, <filter>/<use> DoS, transposed matrix(), duplicate attrs, missing xmlns:xlink, colour reduced-motion bug Dropped colour animation path completely; multi-colour icons draw static via color_icon and log once in debug builds if SMIL tags are present. crates/rune-text/src/icon/color.rs:136-153
1b Monochrome unbounded depth, elements, shapes, body length, d/points, opacity layers (<g opacity="0.5"> OOM) Pre-allocation caps enforced before pushing/allocating (MAX_SVG_BYTES, MAX_DEPTH, MAX_ELEMENTS, MAX_SHAPES, MAX_LAYERS, MAX_PATH_BYTES, MAX_PATH_COMMANDS, MAX_POINTS_NUMBERS). crates/rune-text/src/icon/anim/parse.rs:13-34,201-334,359-412
1c Unbounded Vec allocation in values/keyTimes/keySplines/parse_key_val, values=";;;;...", keyTimes outside [0,1] / NaN Stack-allocated parse_small_numbers<N> (zero heap alloc); semicolon count bounded against MAX_KEYFRAMES + 1 before allocating; keyTimes strictly validated in [0, 1], monotonic, t[0] == 0, t[last] == 1 for linear/spline; keySplines y1/y2 clamped to [-4, 5]. crates/rune-text/src/icon/anim/parse.rs:582-620,721-838,956-984
1d Delta #1 (61a091d8): <path d> coords (1e30) & composed ctm (64^8, 64^128) reached convex/raster.rs (i64 overflow debug panic) and area.rs unclamped; rejected animated SVGs fell back to unbounded static icon_coverage_at Validated all <path d> coords <= MAX_COORD at compile time (parse.rs); added local_ctm_is_safe after every transform op and ctm_is_safe after every group/shape composition (icon.rs, anim/mod.rs, area.rs + res <= 256.0); widened convex/raster.rs edge() to i128 with MAX_DEV_COORD = 32_768.0 guard; bounded static icon_coverage_at (256 KiB, 1024 elements, 64 depth, 128 KiB path, MAX_LAYERS = 8) and returned empty coverage on hostile rejection. crates/rune-text/src/icon.rs:237-349, crates/rune-text/src/icon/area.rs:288-297, crates/rune-text/src/icon/convex/raster.rs:51-106, crates/rune-text/src/icon/anim/parse.rs:384-416,955-1002, crates/rune-text/src/icon/anim/mod.rs:373-387,477-516
1e <animate> inside <defs> / <script> / comments with > activating animation; single-quoted attrs ignored Iterative XmlScanner skipping XML comments properly, supporting single and double quotes, rejecting DTD/CDATA, and skipping NON_RENDERING subtrees. crates/rune-text/src/icon/anim/parse.rs:37-40,236-241,1100-1205
2a Windows partial damage defeated (Plan::All("image")), ImageAtlas slot thrash, per-frame Plan clone and XML re-parse Pre-parsed flat CompiledAnim evaluated with reusable scratch buffers into double-buffered (px+2)×(px+2) glyph-atlas tiles (KIND_GLYPH), GPU-tinted by fill, flipping UV only when quantized pixels change. crates/rune-text/src/atlas.rs:518-599, crates/rune-text/src/icon/anim/mod.rs:230-495, crates/rune/src/runtime/paint/content.rs:190-209,896-975
2b Delta #2 (61a091d8): AtlasPage::new reset epoch: 1, colliding with stale SlotEntry handles after overflow pages.pop() + recreate Added monotonic atlas-wide Atlas::next_page_gen counter (alloc_page_gen) used by both evict_page and newly pushed AtlasPage::new. crates/rune-text/src/atlas.rs:142-150,226-229,315,342-366,470-472
2c Delta #5 (61a091d8): Unthrottled 124–180 fps Moving burning ~18% idle core + 67 empty [0,0,1,1] presents in 5 s Paced AnimState::Moving via WaitingUntil at ≤ 30 Hz (ICON_ANIM_STEP = 1/30) with forward pixel-change probing (MAX_PIXEL_PROBES = 12) + hold-window cache hit; wired icon-only wakes into loop_step/arm_loop; left state.looped = None on empty patched so is_unchanged() skips empty presents (0 empty presents, 108/108 loop_step, 1.64% core). crates/rune-text/src/icon/anim/mod.rs:32-39,230-303, crates/rune/src/runtime/paint/cycle.rs:147-218,280-329, crates/rune/src/runtime/paint/content.rs:956-972, crates/rune/src/runtime/frame/motion.rs:31-38,139, crates/rune/src/window/host/draw.rs:390-395,485-489
2d Static icons incurred per-frame SWAP.read() RwLock + second SipHash lookup Single FxHashMap IconKind lookup replaces is_color_icon; SWAP_ACTIVE AtomicBool fast path removes SWAP.read() when no swap is installed; cache_layer.rs short-circuits on has_animated_icons(). crates/rune-text/src/icon/color.rs:45-100, crates/rune-text/src/icon.rs:34,61-67, crates/rune/src/runtime/paint/cache_layer.rs:188-199
2e Delta #3 (61a091d8): El::cache froze inline animated pill/bare icons (n.text t.cold.pills) Extended cache_layer.rs liveness check (gated by self.text.has_animated_icons()) to check `n.text.as_ref().is_some_and( t
3 <set> without dur spinning forever; live_visible / Windows occlusion; finite mount time; live reduced-motion ON → OFF <set> with omitted/indefinite dur steps once at begin then returns AnimState::Finished; paint_animated_icon checks alpha > 1/255, live_visible, and wires animated_icons_shown into loops_shown(); finite icons track (NodeId, icon_ptr) mount time; AccessibilityLink::receive wakes on inbox.settings. crates/rune-text/src/icon/anim/mod.rs:640-655, crates/rune/src/runtime/paint/content.rs:916-955, crates/rune/src/runtime/frame/motion.rs:16-19, crates/rune/src/a11y/mod.rs:173-181
4 Delta #4 (61a091d8): SMIL faults (resolve_transform additive="replace", negative by/sum clamp, by-only scale, inherited <g> paint, --5s double-sign clocks) Fixed all five in parse.rs and anim/mod.rs. crates/rune-text/src/icon/anim/parse.rs:425-445,630-820,885-935, crates/rune-text/src/icon/anim/mod.rs:500-700
5a Round 4 #1 (676852e5): Atlas::slot_dirty horizontal-shelf aliasing froze a second same-size animated icon and dropped frames when text rasterized onto the same shelf Replaced Atlas::slot_dirty with monotonic Atlas::upload_gen incremented in Atlas::rows_uploaded, compared per SlotEntry via pending_upload(upload_gen) (including keeping un-uploaded slots reported as changed: true across missed drawables on still_waiting/last_cov == scratch_cov so write_patched never panics or drops updates). crates/rune-text/src/atlas.rs:229-232,320, crates/rune-text/src/atlas/fill.rs:126-127, crates/rune-text/src/icon/anim/mod.rs:97-111,339,358-390,454-484
5b Round 4 #2 (676852e5): loop_step called Atlas::put_bordered lazily and could evict a live glyph page without rebuilding self.instances (plus Shelf::live_texels accumulated monotonically during loop_step) Pre-allocated both double-buffer slots during initial full paint (frame_quad) and touched both valid slots on full paint (touch_entry_slots). Introduced Atlas::in_place() -> InPlaceAtlas<'_> exposing only page_gen, upload_gen, and pixel-only write_bordered (no alloc, place, put_bordered, evict_page, or touch methods), so frame_quad_in_place / loop_step is unable by construction to allocate in or evict from the glyph atlas or inflate live_texels. Guarded loop_step with icon_slots_ready() to fall back to an ordinary frame whenever any slot is absent or evicted. crates/rune-text/src/atlas.rs:518-599, crates/rune-text/src/icon/anim/mod.rs:207-224,398-498, crates/rune-text/src/lib.rs:732-781, crates/rune/src/runtime/paint/cycle.rs:178,280-283,301
5c Round 4 #3 (676852e5): Web paint_cycle_tick froze animated icons beside a Cycle spinner Added || !keep.icons.is_empty() to paint_cycle_tick so Web falls back to an ordinary frame whenever animated icons are present. crates/rune/src/runtime/paint/cycle.rs:127
5d Round 4 #4 (676852e5): Overdue loop_wake left stuck beside a non-ambient Slide loop Simplified loop_step to take the icon fast path only when no LoopSpec (Cycle/Slide) is active (has_icons && !self.motion.loops_is_empty() falls back to an ordinary frame, where build() clears and re-arms wakes cleanly), leaving existing Cycle/Slide loop_step code untouched and making sample_icon_slots unconditionally clear loop_wake before arming next_wake. crates/rune/src/runtime/paint/cycle.rs:153-218,324-329
5e Round 4 Minor (676852e5): icon.rs:291 blanked benign monochrome icons whose only <animate> targeted an unsupported attribute Split compile() into CompileOutcome::{Animated, StaticOnly, Rejected} and render_rest_coverage() into RestCoverage::{Rendered, StaticFallback, Rejected} so benign icons within all caps draw static while hostile/cap-violating SVGs still return empty coverage. crates/rune-text/src/icon/anim/parse.rs:199-216,359-366, crates/rune-text/src/icon/anim/mod.rs:76-84,184-201, crates/rune-text/src/icon.rs:291-297, crates/rune-text/src/icon/color.rs:148-151

Checks

  • 0 test files modified, 0 #[test] / #[cfg(test)] / #[ignore] attributes added/edited, 0 unsafe.
  • train/1120s (a7a0ab78, #1304 + #1291 bdf974ca on dev dc8f7f72): Windows RTX whole suite 3,106 passed / 0 failed / 0 new (42 binaries, all 11 crates), Mac whole suite 3,323 passed / 0 failed / 0 new, 4-target check (native / wasm32 / Apple / Linux) all clean.
  • Headless GPU verification (--release --features frame-profile, proof/ws6/rune-1291-bench/checks-v4.txt): UNSUPPORTED_ATTR_STATIC_OK, TWO_ICONS_SAME_SHELF_OK, ATLAS_PRESSURE_GPU_READBACK_OK (5 pages, 6 evictions, text_diff_px=0), SPINNER_BESIDE_ICON_OK, SLIDE_BESIDE_ICON_OK, ALL_CHECKS_PASSED elapsed_ms=2395.9.
  • Shipping-build measurements: animated icon (proof/ws6/rune-1291-bench/summary-v4.json) and paired no-animated-icon zero-regression A/B (proof/ws6/rune-1291-shipping-ab/summary.json).

Hona added 3 commits November 20, 2026 17:20
…frame hold

Parse SMIL <animate>, <animateTransform>, and <set> elements on 
une::Icon
once into a bounded per-icon plan (32 tracks, 64 keyframes), advance frames on
the runtime clock so animations never reset across view rebuilds, and update a
single streaming Pixels handle in place to reuse its image atlas slot. Static
icons pay only a cached pointer lookup, and reduced motion draws the 	 = 0
resting frame through the ordinary static atlas with zero frames scheduled.
…nd fix partial damage

Rewrite PR #1291 as monochrome (currentColor) SMIL animation only, addressing every finding from review-1291.md:

- Drop the colour (usvg) UI-thread animation path: multi-colour icons stay static via color_icon (emitting a one-time debug_assertions warning if they contain SMIL tags).
- Compile monochrome animated icons once into a bounded flat Op + Track AST (crates/rune-text/src/icon/anim/parse.rs) enforcing hard pre-allocation caps matching opencode-plugin-runtime::svg (32 KiB, depth 16, 128 elements, 64 shapes, 8 opacity layers, 16 tracks, 16 KiB / 1024 path cmds, 1024 points, 64 keyframes, 8 transform ops, clock <= 3600s, repeat <= 10000, coords <= 4096, scale <= 64, skew <= 85 deg, spline y in [-4, 5]), plus defensive mask bounds in area::render_aaa and aaa::fill.
- Render live monochrome frames into double-buffered (px+2)x(px+2) glyph-atlas tiles (Atlas::put_bordered / Atlas::write_bordered, KIND_GLYPH), flipping UV only when quantized coverage bytes change. Preserves Windows partial damage (~23x23 icon rect, 0 whole-window redraws), GPU tinting (0 hover/scale atlas thrash), rotation, and non-resting scale.
- Eliminate static-icon overhead: single FxHashMap IconKind lookup replacing is_color_icon, AtomicBool fast path on icon::swapped (no RwLock when no swap active), untouched static icon_coverage_at, and single bool has_animated_icons() guard in El::cache.
- Fix wake/sleep and SMIL semantics: flat-hold WaitingUntil sleep via wake_for_motion, live.visible() gating, loops_shown() Windows occlusion polling, mount-relative time for finite animations, El::cache/PaintKeep re-enable on finish, finite/indefinite <set> termination, calcMode="paced", additive="sum" on <animate>, normalized 1/2-arg scale, fractional repeatCount freeze, inherited <g> paint, <rect> ry, inline pill icons, and live a11y reduced-motion redraw wake.
@Hona Hona changed the title Icons: support SMIL SVG animation elements with reduced-motion first-frame hold feat(rune-text,rune): animate monochrome SMIL SVG icons with partial damage Nov 20, 2026
Hona added a commit to anomalyco/opencode-rune that referenced this pull request Nov 20, 2026
…d colour icons (#273)

- Sync all SVG cap constants in crates/opencode-plugin-runtime/src/svg/mod.rs 1:1 with Rune's backstop caps (rune-text::icon::anim::parse, anomalyco/rune#1291): MAX_SVG_BYTES=32 KiB, MAX_DEPTH=16, MAX_ELEMENTS=128, MAX_SHAPES=64, MAX_LAYERS=8, MAX_ANIMATIONS=16, MAX_PATH_BYTES=16 KiB, MAX_PATH_COMMANDS=1024, MAX_POINTS_NUMBERS=1024, MAX_KEYFRAMES=64, MAX_TRANSFORM_OPS=8, MIN/MAX_VIEW_DIM=1..4096, MIN_DUR_SECS=0.016, MAX_CLOCK_SECS=3600, MAX_REPEAT_COUNT=10000, MAX_COORD=4096, MAX_STROKE_WIDTH=256, MAX_SCALE=64, MAX_SKEW_DEG=85, MIN/MAX_SPLINE_Y=-4..5.
- Enforce opacity layer count (<= 8), transform arg bounds, keySpline y bounds, and signed begin/by validation in svg/validate.rs so hostile plugin icons are rejected first with plugin, icon, and attribute diagnostics.
- Emit a dev-build stderr warning in icons::{replace_plugin,intern_svg} when a plugin's multi-colour icon declares SMIL animation elements that Rune ignores and renders static.
Hona added 2 commits November 20, 2026 21:56
…ation via loop_step

- Clamp <path d> coords and composed transforms (ctm_is_safe, res <= 256, i128 edge + MAX_DEV_COORD in convex/raster.rs), and reject failed animated SVGs to empty coverage instead of falling back to static icon_coverage_at.
- Add monotonic Atlas::next_page_gen so popped and recreated overflow pages never collide with stale bordered SlotEntry handles, plus slot_dirty in-place rewrite on missed drawables.
- Include n.text pill icons (t.cold.pills) in El::cache liveness checks (cache_layer.rs).
- Fix SMIL semantics: per-track additive='replace' on <animateTransform>, signed negative by/additive='sum' deltas, by-only scale (1,1)->(1+bx,1+by), inherited <g> paint base for additive/by/to-only, and double-sign clock rejection.
- Pace AnimState::Moving via 30 Hz WaitingUntil with forward next-pixel-change probing (MAX_PIXEL_PROBES=12), wire IconSlot into CyclePaint/loop_step so icon-only ticks skip paint walks, and skip empty-patch presents via is_unchanged().
@Hona
Hona merged commit eff95e8 into dev Nov 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant