← v147/math-sumprecise · conformance
critique · rev 1
v147/math-sumprecise
MDN stub upgraded to MDN shape: Baseline Newly available banner (2026-04-10), ECMA-262-derived syntax/returns/exceptions, live float-drift-lab iframe, BCD table; fixed a dead proposal link and an inaccurate 'compensated summation' lede.
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 4/5 | info | Syntax, parameters, return value (incl. -0 for empty input, NaN/Infinity state machine) and exceptions (TypeError for non-iterable/non-Number values with iterator close; RangeError past 2^53-1 values) derived from ECMA-262 §21.3.2.34 algorithm steps fetched 2026-11-22. Lede corrected: it claimed a 'compensated summation algorithm', but the spec defines the exact real sum rounded once (Shewchuk/xsum named only as possible implementations). Examples executed in V8 15.0 (deno 2.9.8): reduce -> 0, sumPrecise -> 0.1, [0.1,0.2] -> 0.30000000000000004, [] -> -0, [1,'2'] throws TypeError. |
| milestone-mapping | 5/5 | info | Identity 4790090146643968 unchanged (chromestatus.com/feature link present in dumped DOM); ChromeStatus desktop_first 147; route/slug untouched. |
| completeness | 4/5 | info | Stub keeps MDN card + quick reference and adds Baseline banner, Syntax/Parameters/Return value/Exceptions, Examples (live iframe + 2 snippets), BCD compat table, Specifications, See also. Stub status kept (MDN owns the reference). |
| examples | 5/5 | info | CPS float-drift-lab concept (HTTP 200, own-feature id) renders its live UI inside the iframe in headless Chrome 153 (scratchpad ms-1280.png: preset select, count slider, Run button). |
| browser-compat-fallbacks | 5/5 | info | BCD javascript/builtins/Math.json sumPrecise: chrome 147, edge/chrome_android mirror, firefox 137, safari 26.2 (raw fetched 2026-11-22); webstatus.dev math-sum-precise baseline {newly, low_date 2026-04-10}; typeof feature-detection fallback example. |
| links-validity | 5/5 | info | Fixed the broken TC39 proposal link: nicolo-ribaudo/tc39-proposal-math-sum returned 404 for README on main/master/HEAD via raw.githubusercontent, while tc39/proposal-math-sum (the ChromeStatus record's spec field) returned 200. All other new URLs curl-checked 200 (github.com blob links blocked by this sandbox's proxy; raw equivalents 200). |
| accessibility | 5/5 | info | Single h1; role=note banner; captioned compat table in focusable labelled region; titled iframe; CSS variables only. |
| responsive-ux | 5/5 | info | deno task responsive desktop:ok mobile:ok; full-page 1280/360 captures read. One snippet comment overflowed its pre at 1280 and was shortened; at 360 pre blocks and the compat table scroll inside their own boxes with no page overflow. |
| showcase-demo-relationship | 5/5 | info | Embeds own CPS concept /v147/math-sumprecise/float-drift-lab/ (null -> URL via demo-change migration); feature index linked in See also. |
modern-web-guidance consulted
- embed cross-origin iframe lazy loading sandbox responsive — DO use loading="lazy" for iframes well outside the initial viewport so they do not compete with critical resources. (Applied: the below-the-fold showcase iframe carries loading="lazy" and a fixed height (520) so it reserves space and does not shift layout.)
- embed cross-origin iframe lazy loading sandbox responsive — Referrer Policy: use strict-origin-when-cross-origin as a safe default for cross-origin requests. (Applied: iframe carries referrerpolicy="strict-origin-when-cross-origin" plus the house sandbox="allow-scripts allow-same-origin" pair (routine Step 6, gendn-kjq).)
- responsive data table horizontal overflow narrow mobile — Semantic <table> with <caption>/<thead>/<tbody>; wrap in an overflow:auto scroller that is keyboard focusable (tabindex=0) with role=region and an accessible name (aria-labelledby the caption). (Applied to the new compat table: .table-wrap scroller with role=region tabindex=0 aria-labelledby=compat-caption, captioned table with thead/tbody. Exception: sticky headers/stacked card layout not added (3-column, 5-row table; the shared .table-wrap scroller is the house pattern and the page itself has no horizontal overflow at 360px).)
open questions
- ChromeStatus records no Android first-shipped milestone for this V8 feature while BCD mirrors Chrome Android 147; the quick reference keeps 'desktop + Android' on the BCD basis.
follow-up goals
- [low · targeted-fix] Re-check v147 math-sumprecise Baseline when it becomes Widely available (expected about 30 months after 2026-04-10) and update the banner.