Skip to content

feat(layout): upgrade Taffy and Stylo with sizing and overflow fixes - #1745

Merged
ldm0 merged 22 commits into
mainfrom
upgrade/taffy-stylo-20261020
Oct 21, 2026
Merged

ldm0 merged 22 commits into
mainfrom
upgrade/taffy-stylo-20261020

Conversation

@ldm0

@ldm0 ldm0 commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Upgrade the layout/style stack to Taffy 0.15 and Stylo 0.22, with compatible adapters, intrinsic sizing fixes, physical scroll overflow, and regression coverage. Runtime meta-refresh, detached Window, hash navigation and CSP fixes remain in #1726.

Changes

  • Pin Taffy 0.15, Stylo 0.22, and the Blitz/stylo_taffy adapters. Share the same Taffy fork across both dependency paths.
  • Adapt constraints, baselines, positioned descendants, tables, selectors and CSS parsing. Fix fractional grid termination, intrinsic min/max widths, percentage flex padding, positioned grid areas, aspect ratios, orthogonal layouts, form controls and wrapped flex distribution. Retain upstream implementations that supersede fork patches.
  • Upgrade production HTML/XML parsers to 0.40 for Stylo's shared atom types. Move XML patches into lexmount/html5ever, pin the XML production commit, and remove vendored XML sources. All 11 XML source files match the former vendor byte-for-byte; registry markup5ever 0.40.0 and web_atoms 0.3.0 remain shared. Preserve CDATA, namespace attributes, XML character references and Moli's strict lexical validation.
  • Project scroll overflow in physical coordinates. Share reachable bounds between scrollbar admission and final metrics, covering RTL, vertical writing modes, reversed flex flows, grid areas, clipping, transforms, margins and end padding. Include the permanent Chromium differential script.
  • Restore CSSOM serialization of multiword font families and retain Color 5 parsing/serialization guards and native layout regressions.

Validation

Rebased onto origin/main@3ca6888b9d6c88987fef6035c678656ed2dce235. The final source commit is e39838564c7f3f4ec288e76708c0242e22a226f2; the separately refreshed Cases commit is 4d81a00ce0f3595f3a79156d5f965fdf82f13726.

  • Release build and cargo fmt --all passed.
  • cargo clippy --workspace --all-targets --all-features -- -D warnings passed.
  • cargo nextest run --no-fail-fast: 20,427 passed, 18 skipped.
  • XML/DOM parsing/responseXML WPT: 52 cases × two frozen builds × three rounds = 312 executions, with identical statuses, subtest counts and failure names. Fork checks also pass strict workspace Clippy, 17 XML tests and the reference DOM regression.
  • Chromium overflow: 140 fixtures × hidden/native scrollbars × three rounds = 840 comparisons, including initial and positive/negative scroll extremes: 0 differences on the final Release.
  • Full WPT Cross at db95fafd1fcef8428805e41eb5705d444e8c67ce: 9,863 pass, 3,483 fail, 249 timeout, 26 harness-stalled, 9 error, 1 crash; 0 missing, covering all 13,631 cases. The committed lists exactly partition this Release's full run.
  • Reviewed all 16 apparent case, subtest and timeout/error changes against the prior validated build: 96 paired case executions, with no new stable or possible flaky regression. Fourteen replay identically; two show existing snapshot/timing variation. Keep the measured full-run statuses in Cases.
  • Frozen Release SHA-256: 8eefbbace618edfbe851b6f2ba2a6231db214e5fbc202bf35d0e16f23d606004.

CSS Color snapshot expectations

Two known Fail records reflect newer CSS Color 5 behavior against the fixed WPT snapshot. CSS Color 5 permits zero-sum color mixes that the older invalid-color test rejects; serialization preserves a trailing 0% that the older contrast-color test omits. WPT #61205 updates the contrast-color expectation; zero-sum behavior is tracked separately in Mozilla Bug 2049645.

This PR remains independent of #1726. The main CSP regression introduced by #1714, 5399724fb07, is fixed in that runtime PR rather than copied into the style stack.

@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Sequential Navigation Soak A/B

✅ HEAD completed the 200-navigation resilience and memory observation.

One browser process, one target, and one CDP session navigate CSDN → SegmentFault → Huaban → example.com repeatedly. This run issued 200 Page.navigate commands per binary.

Common ancestor d4b0ad257d → HEAD 9d80858ea9; benchmark order: base-first; workflow: success.

Session resilience

Metric Base HEAD
Attempted / planned 200 / 200 200 / 200
Direct observable pass 197 / 200 197 / 200
Failures / recovered 3 / 3 3 / 3
Recovery failures 0 0
Lifecycle order violations 0 0
Network order violations 0 0
Wall time 516.9 s 514.8 s

A public-page failure is reported separately from an unrecoverable session. The soak requires all navigation attempts, zero failed recovery, zero lifecycle/network ordering violations, and complete resource evidence.

Process-tree memory

Metric Base HEAD Δ
Boundary samples 200 200 0
Boundary RSS samples 200 200 0
Boundary PSS samples 200 200 0
Periodic peak RSS 239.7 MiB 240.7 MiB +1.0 MiB
Periodic peak PSS 238.3 MiB 237.6 MiB -0.7 MiB
RSS · first 10 avg 154.0 MiB 152.4 MiB -1.6 MiB
RSS · last 10 avg 165.9 MiB 164.2 MiB -1.8 MiB
RSS · last − first window +12.0 MiB +11.8 MiB -0.2 MiB
RSS · warm slope / 100 nav +3.6 MiB +2.4 MiB -1.2 MiB
PSS · first 10 avg 150.8 MiB 148.2 MiB -2.7 MiB
PSS · last 10 avg 164.4 MiB 160.1 MiB -4.3 MiB
PSS · last − first window +13.6 MiB +12.0 MiB -1.6 MiB
PSS · warm slope / 100 nav +3.6 MiB +2.2 MiB -1.4 MiB
Peak file descriptors 61 61 0
Peak threads 31 31 0

HEAD memory by 50-navigation quarter

HEAD range Avg RSS Final RSS Peak RSS Avg PSS Final PSS Peak FD
1–50 159.0 MiB 146.4 MiB 203.7 MiB 155.1 MiB 143.0 MiB 53
51–100 164.1 MiB 154.9 MiB 206.6 MiB 160.5 MiB 151.4 MiB 53
101–150 166.1 MiB 150.1 MiB 203.0 MiB 162.8 MiB 147.0 MiB 52
151–200 164.3 MiB 159.5 MiB 206.9 MiB 160.5 MiB 155.7 MiB 53

Raw reports and per-navigation boundary samples: workflow run and full sequential-navigation-soak-results artifact.

Public-site timing and memory are observational. Use the A/B deltas and trend shape as evidence, not as a deterministic performance threshold.

@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Spider Bench A/B

✅ All benchmark browser service runs completed; results are informational.

Public HEAD: 184 / 240 rows; 38 / 48 sites produced rows; 10 unexpected empty sites.

✅ Deterministic fixture contract is clean.

Common ancestor d4b0ad257dfc → HEAD 9d80858ea9f7; benchmark order: base-first; workflow: success.

Public 48-site run · informational

Metric Base HEAD Δ
Run status success success —
Extracted rows / contract 184 / 240 184 / 240 0 (0.00%)
Contract fill 76.67% 76.67% 0.00 pp (0.00%)
Sites with rows 38 / 48 38 / 48 0 (0.00%)
Sites meeting row contract 36 / 48 36 / 48 0 (0.00%)
Unexpected empty sites 10 10 0 (0.00%)
Partial-row sites 2 2 0 (0.00%)
Site outcomes extracted: 36; HTTP error + rows: 2; empty: 7; HTTP error + empty: 1; snapshot error + empty: 2 extracted: 37; HTTP error + rows: 1; empty: 7; HTTP error + empty: 1; snapshot error + empty: 2 —
Observed duration 44.27 s 39.88 s -4.39 s (-9.92%)
Estimated CPU 36.54 s 36.94 s +0.40 s (+1.11%)
Peak PSS 252.34 MiB 254.66 MiB +2.32 MiB (+0.92%)
Peak RSS 256.19 MiB 258.05 MiB +1.86 MiB (+0.73%)
Peak threads 27 27 0 (0.00%)
Mismatched sites 0 0 0
Timeout with items 0 0 0
Category rows Base HEAD Δ
news 35 / 40 35 / 40 0
stocks 20 / 40 20 / 40 0
tech 35 / 40 35 / 40 0
sports 27 / 40 27 / 40 0
games 37 / 40 37 / 40 0
life 30 / 40 30 / 40 0

Public-site content, timing, and memory are noisy. This single A/B run reports evidence only; site outcome counts explain missing rows without treating them as a deterministic regression.

CPU and memory timelines

These are bounded 40-point views of the same complete process-tree samples used by the HTML report. CPU uses 100% per occupied logical core; memory lines are RSS first and PSS second when complete PSS samples are available.

Base

xychart-beta
    title "Base CPU"
    x-axis "Elapsed seconds" [1.036, 2.537, 3.538, 4.539, 5.04, 6.042, 7.545, 8.546, 10.047, 11.049, 12.55, 13.551, 15.051, 16.052, 17.553, 18.553, 19.053, 20.055, 21.057, 22.559, 23.562, 24.563, 26.065, 27.066, 28.567, 29.568, 31.071, 32.073, 33.573, 34.573, 36.075, 37.075, 38.578, 39.578, 41.079, 42.08, 43.583, 44.083]
    y-axis "CPU percent" 0 --> 200
    line [3.99, 97.92, 123.8, 127.97, 147.75, 135.78, 97.76, 135.88, 119.76, 101.97, 45.96, 59.91, 49.98, 7.99, 6, 4, 0, 0, 2, 115.79, 25.93, 107.78, 131.97, 113.87, 127.91, 111.83, 107.78, 127.63, 86.01, 33.99, 79.89, 120, 0, 14, 121.92, 55.89, 107.91, 165.93]
Loading
xychart-beta
    title "Base memory: RSS then PSS"
    x-axis "Elapsed seconds" [0.035, 1.036, 2.537, 3.538, 4.539, 5.04, 6.042, 7.545, 8.546, 10.047, 11.049, 12.55, 13.551, 15.051, 16.052, 17.553, 18.553, 19.053, 20.055, 21.057, 22.559, 23.562, 24.563, 26.065, 27.066, 28.567, 29.568, 31.071, 32.073, 33.573, 34.573, 36.075, 37.075, 38.578, 39.578, 41.079, 42.08, 43.583, 44.083, 44.274]
    y-axis "Memory MiB" 0 --> 500
    line [13.65, 62.7, 102.29, 116.18, 137.25, 145.59, 148.63, 129.84, 133.83, 161.35, 142.03, 114.2, 120.99, 140.36, 117.44, 120.94, 119.89, 119.93, 119.96, 119.93, 154.21, 132.16, 140.49, 162.7, 256.19, 200.93, 129.96, 165.23, 152.65, 124.36, 127.3, 159.19, 212.46, 156.96, 146.95, 155.03, 127.63, 158.85, 156.46, 0]
    line [10.24, 59.1, 98.66, 112.56, 133.54, 141.97, 145.16, 126.36, 130.37, 157.75, 138.5, 110.59, 117.37, 136.75, 113.82, 117.32, 116.27, 116.31, 116.34, 116.31, 150.72, 128.61, 136.88, 159.11, 252.34, 197.48, 126.35, 161.63, 149.21, 120.75, 123.69, 155.86, 208.87, 153.34, 143.33, 151.43, 124.02, 155.25, 152.98, 0]
Loading

HEAD

xychart-beta
    title "HEAD CPU"
    x-axis "Elapsed seconds" [0.536, 1.038, 2.039, 3.542, 4.544, 5.544, 6.546, 8.05, 9.052, 10.054, 11.054, 12.056, 13.559, 14.561, 15.561, 16.562, 18.064, 19.067, 20.069, 21.069, 21.571, 22.072, 23.573, 24.573, 25.575, 26.578, 28.08, 29.082, 30.082, 31.084, 32.085, 33.586, 34.587, 35.587, 36.59, 37.09, 38.093, 39.095]
    y-axis "CPU percent" 0 --> 200
    line [4, 5.98, 105.85, 117.73, 145.61, 127.95, 117.76, 127.69, 71.85, 85.81, 115.93, 85.81, 87.81, 115.74, 23.99, 23.99, 115.78, 59.89, 97.76, 123.92, 101.72, 107.79, 131.83, 149.9, 61.88, 115.69, 109.9, 103.81, 81.94, 15.97, 128, 113.91, 9.99, 65.98, 119.71, 161.83, 71.82, 121.77]
Loading
xychart-beta
    title "HEAD memory: RSS then PSS"
    x-axis "Elapsed seconds" [0.036, 0.536, 1.038, 2.039, 3.542, 4.544, 5.544, 6.546, 8.05, 9.052, 10.054, 11.054, 12.056, 13.559, 14.561, 15.561, 16.562, 18.064, 19.067, 20.069, 21.069, 21.571, 22.072, 23.573, 24.573, 25.575, 26.578, 28.08, 29.082, 30.082, 31.084, 32.085, 33.586, 34.587, 35.587, 36.59, 37.09, 38.093, 39.095, 39.883]
    y-axis "Memory MiB" 0 --> 500
    line [13.58, 55.41, 64.55, 112.43, 143.89, 132.04, 148.03, 131.49, 156.05, 141.05, 140.83, 142.02, 133.49, 126.04, 139.49, 118.27, 119.02, 158.16, 125.91, 142.45, 187.07, 258.05, 215.55, 184.93, 213.75, 134.44, 154.66, 154.09, 142.68, 138.37, 138.6, 183.96, 163.97, 146.83, 144.3, 165.11, 145.08, 134.75, 152.43, 0]
    line [10.33, 52.01, 61.15, 109.1, 140.49, 128.87, 142.99, 128.01, 152.58, 137.54, 137.37, 138.54, 130.01, 122.58, 136.03, 114.81, 115.55, 154.7, 122.67, 138.99, 183.63, 254.66, 211.73, 181.51, 211.44, 130.91, 151.13, 150.56, 139.18, 134.92, 135.06, 180.24, 160.73, 143.28, 140.8, 161.57, 141.36, 131.21, 148.9, 0]
Loading

Deterministic fixture · required contract

The fixture exercises 15 routes: 8 are expected to emit rows and 7 intentionally exercise empty, loading, or timeout behavior.

Metric Base HEAD Δ
Run status success success —
Extracted rows / contract 40 / 40 40 / 40 0 (0.00%)
Contract fill 100.00% 100.00% 0.00 pp (0.00%)
Sites with rows 8 / 15 8 / 15 0 (0.00%)
Sites meeting row contract 15 / 15 15 / 15 0 (0.00%)
Unexpected empty sites 0 0 0
Partial-row sites 0 0 0
Site outcomes extracted: 7; HTTP error + rows: 1; empty: 3; timeout + empty: 4 extracted: 7; HTTP error + rows: 1; empty: 3; timeout + empty: 4 —
Observed duration 19.90 s 19.86 s -0.04 s (-0.20%)
Estimated CPU 0.47 s 0.44 s -0.03 s (-5.94%)
Peak PSS 67.45 MiB 68.07 MiB +0.61 MiB (+0.91%)
Peak RSS 70.95 MiB 71.59 MiB +0.64 MiB (+0.90%)
Peak threads 18 18 0 (0.00%)
Mismatched sites 0 0 0
Timeout with items 0 0 0

Full HTML, JSON, CSV, logs, and page snapshots: workflow run and full spider-bench-results artifact.

The public-web A/B is informational. The exact HEAD fixture contract runs as a separate required CI check; timing and public-site content deltas remain non-blocking.

@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

CI Regression Report

Source CI run · source state at render: in_progress · artifacts: 6/6

Check Status Signal
Release regression ✅ HEAD/base failures 0/0; raw binary −0.254382%
Frontend differential ✅ 1,020/1,020 cases matched; 0 issues
Agent episodes ✅ 8/8 Moli episodes passed; 0 failures
Runtime/CDP contracts ✅ 26 contract cases; 0 failures
CDP smoke ✅ 52/52 groups passed; 622 scenarios
WebMainBench ✅ 545/545 completed; 0 unexpected failures
Release regression — ✅ HEAD/base failures 0/0; raw binary −0.254382%

Package and image size

Metric Base HEAD Delta Delta %
Raw binary 153.42 MiB 153.03 MiB −399.63 KiB −0.254382%
Stripped binary 106.66 MiB 106.29 MiB −387.97 KiB −0.355203%
gzip binary 52.84 MiB 52.69 MiB −159.66 KiB −0.295053%
Rootfs 160.32 MiB 159.93 MiB −400.00 KiB −0.243650%
gzip rootfs 61.90 MiB 61.73 MiB −179.91 KiB −0.283818%

Startup latency and PSS

Case Base p50 HEAD p50 Delta Base PSS HEAD PSS Delta
Serve ready 27.73 ms 27.18 ms −0.55 ms 4.35 MiB 4.23 MiB −121.00 KiB
CDP first page 52.81 ms 49.75 ms −3.06 ms 4.35 MiB 4.23 MiB −119.00 KiB
CDP warm page 13.89 ms 12.01 ms −1.88 ms 50.60 MiB 51.47 MiB +891.00 KiB
CLI about:blank 39.52 ms 38.05 ms −1.47 ms 3.86 MiB 4.23 MiB +382.50 KiB
CLI local JS 42.13 ms 42.23 ms +0.10 ms 3.60 MiB 4.34 MiB +754.00 KiB

Concurrency matrix

Concurrency Base p50 HEAD p50 Delta Base PSS HEAD PSS Delta HEAD failures Unstable B/H
1 40.98 ms 42.05 ms +1.07 ms 680.00 KiB 792.00 KiB +112.00 KiB 0 0/0
5 41.56 ms 41.80 ms +0.23 ms 4.46 MiB 6.29 MiB +1.83 MiB 0 0/0
10 41.52 ms 42.89 ms +1.37 ms 3.23 MiB 1.70 MiB −1.53 MiB 0 0/0
25 41.86 ms 42.34 ms +0.47 ms 1.58 MiB 4.61 MiB +3.03 MiB 0 0/0
100 42.31 ms 41.88 ms −0.42 ms 1.76 MiB 3.92 MiB +2.16 MiB 0 0/0
Frontend differential — ✅ 1,020/1,020 cases matched; 0 issues
Match DOM mismatch Diagnostic mismatch Moli error Reference error Infrastructure error Mismatched frames Duration
1,020 0 0 0 0 0 0 6m 24.41s
Agent episodes · Moli vs Chromium — ✅ 8/8 Moli episodes passed; 0 failures
Fast contract Episodes Passed Assertions Ready p50 Episode p50
Moli 8 8 47/47 29.47 ms 24.77 ms
Chromium 8 8 47/47 238.66 ms 77.11 ms
Operation p50 Chromium Moli Delta Delta %
navigate 41.26 ms 5.84 ms −35.42 ms −85.85%
observe 1.36 ms 0.85 ms −0.50 ms −37.16%
fill 4.04 ms 3.36 ms −0.69 ms −17.00%
click 2.95 ms 3.89 ms +0.95 ms +32.08%
Idle-resource episode Peak RSS Peak PSS Average CPU Peak CPU Peak processes Sampler
Moli 67.44 MiB 64.02 MiB 0.79% 14.03% 1 ✅
Chromium 1288.48 MiB 353.23 MiB 0.92% 19.90% 13 ⚠️ PSS partial
Runtime and CDP session contracts — ✅ 26 contract cases; 0 failures
Suite Cases Failures Median case p50 Median case p95 Median peak PSS p50
Synthetic fetch 13 0 40.78 ms 41.59 ms 591.00 KiB
Long-lived CDP session 13 0 17.44 ms 18.14 ms —
CDP smoke — ✅ 52/52 groups passed; 622 scenarios

Workers: 4 · cumulative group time: 205.28 s · failed groups: 0

Slowest group Scenarios Duration Status
scrollbar-visibility 22 33.65 s ✅
target-lifecycle 24 16.30 s ✅
dom-input 27 13.14 s ✅
chromium-cdp 56 11.42 s ✅
multi-page 45 11.40 s ✅
WebMainBench · 545 pages — ✅ 545/545 completed; 0 unexpected failures
Completed Successful Expected DNS failure Unexpected failures Panics Crashes Timeouts Empty output
545/545 544 1 0 0 0 0 0

Frozen HTML · Linux · --wait done · 45 seconds per page · no retries. Content quality is evaluated separately.

Diagnostics: webmainbench-results — every page's Markdown, stderr, and exit status. Source run and artifacts

All artifact fields are parsed by the trusted default-branch renderer; missing or invalid inputs remain visible as unavailable.

@ldm0
ldm0 force-pushed the upgrade/taffy-stylo-20261020 branch from d3a5a5c to 4d81a00 Compare October 19, 2026 22:37
ldm0 added 22 commits October 21, 2026 05:15
Pin Taffy5453d6cd, whose remaining-growth subtraction uses the same rounded base-plus-increase value as its growability predicate. This prevents a zero-growth iteration from repeating forever.

MOL-464: the new bounded CLI test fails after10s before the pin and passes afterward. The nested grid, percentage margin and Webfont reproducer also completes in0.17s; this trigger hangs in both1.1.17 and1.1.18.

cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast: 20276 passed,18 skipped. A disk-full compilation attempt is retained separately; the successful full retry passes.

Original-commit: 1639419
Pin the separate Taffy71617899 and4a618c7b fixes: resolve authored intrinsic item minima for auto-track contributions and before fixing the width used to measure row height. A smaller preferred width must not hide the minimum in either path.

MOL-465: browser regression covers min-content/max-content with auto,0px and50px preferred widths, track positions and row heights. The two pre-fix failures were next-column x40 instead of60 and row height60 instead of20. The Webfont grid nontermination control still completes.

cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast:20277 passed,18 skipped. Initial partial-fix failure logs retained.

Original-commit: 3b602b4
Constrain auto-width inline-blocks by max-width:min-content while preserving intrinsic minimums, minimum precedence and automatic growth. Pin the separate Taffy sizing fixes, including the block-root auto-fill control.

MOL-466: Taffy a34a7a82e5144b311b2fcb34feeb8412db9d0117. Browser before/after probes retained.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast: 20278 passed,18 skipped.

Original-commit: d401616
Resolve percentage padding against the flex containing block while measuring a content flex basis. This keeps the text content width intact before line breaking. The browser regression covers three container widths, four padding percentages and both box-sizing modes.

MOL-467: Taffy 02c4920e93348e20cb197667a366e0a15e91db39. Browser before/after probes retained.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast: 20279 passed,18 skipped.

Original-commit: 8ab5696
Replay the 43 Moli patches onto upstream 2e4dbc55 while preserving the
0.13 interfaces consumed by Moli and stylo_taffy. Include the upstream
grid loop bounds, definiteness tracking and flex wrapping fixes.

Keep the intrinsic sizing regression fixes and repair the existing RTL
scrollbar inset and wrapped-column baseline failures. Pin the published
fork at 3c19aa124ebcef6320a4e84e141be19f4af659c3.

Validation: cargo fmt --all; strict workspace Clippy; full Nextest
(20279 passed, 18 skipped, NEXTEST_TEST_THREADS=16); Release build;
Taffy native tests (5898 passed, 4 ignored); full WPT Cross plus old/new
three-round retests of all 26 worsened case statuses.

Original-commit: d95b404
Move Taffy to 0.15 and Stylo to 0.22 using fixed fork revisions, with the
matching stylo_taffy adapter. Upgrade cssparser and the production HTML/XML
parsers while preserving the vendored XML behavior.

Adapt sizing inputs, baselines, grid positions, overflow and out-of-flow
ownership. Preserve font-stretch CSSOM compatibility and intrinsic sizing
through nested atomic inline probes.

Validation: root cargo fmt --all; strict workspace/all-target/all-feature
Clippy; Nextest 20280 passed, 18 skipped; Release build; five browser
regression rounds; RTL and nested intrinsic Chromium geometry controls.
Full WPT Cross is recorded separately with its Cases refresh.

Original-commit: 281a920
Check strict lexical XML errors before xml5ever tree construction. Cover six malformed attribute/name forms both alone and in a valid XHTML prologue, plus distinct xml:lang/lang namespaces.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (20283 passed, 18 skipped). Release v3 and five browser regression rounds. Full WPT recorded separately.

Original-commit: 0232344
Map native controls to compressible replaced leaves without the image-only replaced flag. Cover checkbox, radio and range normal alignment at 50 by 50 pixels.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (20283 passed, 18 skipped). Release v3 and five browser regression rounds. Full WPT recorded separately.

Original-commit: 143e72e
Pin published Taffy and Stylo fixes for baseline provenance, intrinsic child bounds, grid/OOF ratio constraints, writing modes, selector matching, stylesheet nesting and calc type dependencies. Treat IFC ContentProbe inputs as intrinsic contribution measurements.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (20283 passed, 18 skipped). Release v3 and five browser regression rounds. Full WPT recorded separately.

Original-commit: b002c0e
…ng roles

Subtract horizontal margins for explicit inline-block fit-content widths and carry float min/max-content constraints across the IFC boundary. Cover six font-backed role/keyword combinations, including an inline break that exercises the float path.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (20284 passed, 18 skipped). The combined working tree passed these checks before this logical split. Frozen Release and focused browser/WPT validation also passed; final full WPT is running.

Original-commit: 00cfb54
Pin the tested Taffy fork with intrinsic flex constraints, supported baseline grouping, wrapped stretch measurement and scroll origin corrections. Reuse the existing shared static fallback and remove duplicate grid coordinate projection.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (20284 passed, 18 skipped). The combined working tree passed these checks before this logical split. Frozen Release and focused browser/WPT validation also passed; final full WPT is running.

Original-commit: fe7aa2f
Adopt the separately validated Taffy fixes for vertical min-content float-grid parents and wrapped RTL flex scroll padding. Preserve the upstream intrinsic keyword result, share one physical flow projection, and cover both browser seams with CLI regression tests.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (20286 passed, 18 skipped). The combined working tree passed these checks before this logical split. Frozen Release and focused browser/WPT validation also passed; final full WPT is running.

Original-commit: 6374fa6
Adopt the separate Taffy distribution fallback correction. Remove the scroll-only branch, preserve flex-start versus safe center behavior in every writing mode, and add a browser regression that checks child positions for visible and scroll overflow.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (20287 passed, 18 skipped). The combined working tree passed these checks before this logical split. Frozen Release and focused browser/WPT validation also passed; final full WPT is running.

Original-commit: 4d5786f
Allow quoted font-family names that contain valid identifiers separated
by single spaces to serialize unquoted. Keep the required quoting for reserved
keywords, invalid identifier starts, and repeated or special whitespace.

The rebased branch failed two WPT cases consistently: quoted Twisty Tie /
Times New Roman and Lucida Grande. Preserve the dash and digit guards from
the original fix and update specified/computed regression coverage.

Fixes: ab4dcb2 (PR #1647)

Validation of the complete fix set, with unchanged source content across
the separate logical commits:
- cargo fmt --all
- cargo clippy --workspace --all-targets --all-features -- -D warnings
- cargo nextest run --no-fail-fast: 20374 passed, 18 skipped

Original-commit: c873872
Aggregate physical descendants once instead of treating Taffy's logical
scroll origin as a physical top-left corner. Share reachable scroll bounds
between scrollbar admission and final projection, including vertical writing
modes and reversed flex flows.

Preserve grid track areas, per-axis clipping, transformed borders, normal-flow
margins and end padding. Anchor vertical RTL block flow at the physical bottom
while keeping relative insets physical.

Add five native browser guards and a live Chromium differential covering
140 fixtures, two scrollbar modes and three fresh-document rounds.

Validation: root fmt, strict workspace/all-target/all-feature Clippy, and
Nextest (20380 passed, 18 skipped); Release; 840 Chromium comparisons;
960 flex geometry controls; MOL-463-468 probes; full 13631-case WPT Cross.
Three old/new control rounds found no new stable case, assertion or harness
regression. Cases are refreshed in the following commit.

Original-commit: d433653
Consume lexmount/html5ever at 4574311c63e79bba7d4ddb98cb0562d8dad499ee and remove the XML vendor tree and obsolete ignore exceptions. All 11 production XML source files match the former vendor byte-for-byte; HTML, XML and Stylo still share registry markup5ever 0.40.0 and web_atoms 0.3.0.

Rebased the style stack onto origin/main at ebae4ca.

Validation: Release; cargo fmt --all; strict workspace/all-target/all-feature Clippy; cargo nextest run --no-fail-fast (20413 passed, 18 skipped); 312 paired XML WPT executions and 840 Chromium overflow comparisons with no differences. Full WPT and nine status/subtest-change replays found no new stable regression.
Refresh the complete 13631-case snapshot at WPT db95fafd1fcef8428805e41eb5705d444e8c67ce after the XML fork migration and main rebase.

9866 pass, 3487 fail, 240 timeout, 28 harness-stalled, 9 error, 1 crash; zero missing. Frozen Release SHA-256: b6408a72a6ad26dcd613ced3b0998d6fcf3c9d510d7657011057e294b1637f60.

All nine apparent case/subtest/status regressions were replayed against both frozen builds. No new stable regression; the Trusted Types navigation delta is preexisting flaky behavior. Keep the full-run statuses in these lists.
Refresh all 13631 WPT cases at db95fafd1fcef8428805e41eb5705d444e8c67ce after rebasing the style stack and XML fork migration onto main 3ca6888.

9863 pass, 3483 fail, 249 timeout, 26 harness-stalled, 9 error, 1 crash; zero missing. Lists exactly partition frozen Release 8eefbbace618edfbe851b6f2ba2a6231db214e5fbc202bf35d0e16f23d606004.

All 16 status/subtest changes versus the prior validated build were replayed against both binaries for three rounds (96 case executions). No new stable or possible flaky regression; existing variations are recorded without rewriting full-run outcomes. Root fmt, strict workspace/all-target/all-feature Clippy and complete Nextest (20427 passed, 18 skipped) pass. XML 312-case and Chromium overflow 840-case comparisons have no differences.
@ldm0
ldm0 force-pushed the upgrade/taffy-stylo-20261020 branch from 4d81a00 to 9d80858 Compare October 20, 2026 21:16
@ldm0
ldm0 merged commit 8d57e02 into main Oct 21, 2026
22 checks 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