← v152/window-shape-api · conformance
critique · rev 2
v152/window-shape-api
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 5/5 | critical | API migration updated for Chrome 154 (shipped stable October 2026): Window.setShape(rects) is the current shipped method on Window per the vendor specification and Chromium SetShape runtime feature. The pre-154 IsolatedWebApp.setShape binding (gated by BlinkExtensionChromeOSIsolatedWebAppSetShape) is retained and tested as a legacy alias with an explicit dated migration note. IDL quoted verbatim from the bikeshed specification. The full setShape() validation order (10000-entry cap, non-finite check, negative size check, 10x10 minimum guard, int32 truncation/clamping, parallel application with double display-mode check) is preserved. |
| milestone-mapping | 5/5 | critical | Slug window-shape-api is the slugified listing name 'Window Shape API'; the feature appears in the milestone=152 listing's features_by_type under BOTH 'Enabled by default' and 'Stepped rollout' (verified by direct API query 2026-07-28). The page discloses the dual-category listing rather than picking one. Folder v152/window-shape-api/ matches both invariants. |
| completeness | 5/5 | major | The reference contract inventories the current shipped surface (Window.setShape) as well as the pre-154 legacy alias (IsolatedWebApp.setShape) and the two pre-154 namespace attributes (Window.chromeos, ChromeOS.isolatedWebApp); all four are inventoried in reference-contract.json and mapped to documentation with all nine dimensions covered. setShape has a dedicated child route with parameters, return value, all six rejection conditions, the application algorithm, lifecycle, and tested alias behavior. |
| explanation-quality | 5/5 | minor | why-it-exists explains the Chrome Apps deprecation -> VDI partner migration -> parity-with-chrome.app.window.setShape chain, the deliberate non-standardization decision, and the allowlist rationale. Coordinate space/scaling has its own section covering DIPs, int32 truncation, DPR auto-scaling, and the page-zoom non-effect, each sourced. |
| examples | 4/5 | minor | Overview has the explainer's canonical two-rectangle example, the demo repo's feature-detection pattern, and an embedded live showcase demo (rectangle-composer, HEAD 200). Child route adds a realistic overlay-strip example, the reset call, and both documented TypeError paths as runnable snippets. Not runtime-executed locally: no ChromeOS IWA environment is available to this writer, so behavior is source-derived, not observed. |
| browser-compat-fallbacks | 5/5 | major | Honest interim tables on both pages: ChromeOS-only from 152 for allowlisted IWAs; explicitly not available on other platforms (intent quote); Edge not available (Blink extension is ChromeOS-only); Firefox/Safari 'No signal' per the ChromeStatus record. BCD and webstatus absence checked and stated with links to the queries. |
| links-validity | 4/5 | major | All primary sources fetched live 2026-07-28: spec (200), explainer raw file (200), intent thread (200 after redirect), manifest-incubations unframed dfn (anchor confirmed present in the served document), geometry-1 and window-management specs (200), demo repo + types file (200), showcase feature + 3 concept routes (200). Chrome Apps predecessor doc URLs at developer.chrome.com 404 and were therefore NOT linked; the API is referenced by name only. |
| accessibility | 4/5 | minor | Semantic tables with th scope=row, banner with role=note and aria-label, headings hierarchy h1>h2>h3 preserved, byline/footer landmarks via the shared stylesheet. Follows the exemplar-derived patterns from prior accepted pages; not separately audited with a screen reader. |
| responsive-ux | 5/5 | major | css-layout guidance applied: .table-wrap{overflow-x:auto} around every table, overflow-wrap:anywhere on h1/lede/code/table cells, <wbr> in the long setShape H1, pre{overflow-x:auto}, iframe with explicit width/height and max-width:100%. Screenshots READ at 390x844 mobile and 1280x900 desktop for both routes (2026-07-28): no horizontal overflow, tables contained, live showcase iframe renders real demo content on both classes (one transient 502 BOOT_FAILED from the showcase deploy observed mid-verification; route re-checked 200 x3 and re-shot clean). |
| showcase-demo-relationship | 5/5 | minor | Embedded https://chrome-platform-showcase.paulkinlan-ea.deno.net/v152/window-shape-api/rectangle-composer/ (HEAD 200, 2026-07-28); feature index and the other two concept routes (clear-shape, minimum-size-guard) also 200. Page links the showcase feature index in see-also. |
modern-web-guidance consulted
- responsive reference documentation tables without horizontal overflow — Lean on intrinsic sizing; wrap potentially-wide content in overflow containers; overflow-wrap on unbreakable tokens; flex-wrap for wrapping rows; logical properties. (Applied: every data table sits in .table-wrap{overflow-x:auto}; overflow-wrap:anywhere on h1, lede, code, and table cells; <wbr> in the long method-name H1; baseline-browsers uses flex with wrap; pre blocks scroll internally. Exception: no container queries - the shared single-column editorial measure already fits the reference format (same as prior accepted pages).)
open questions
- The Blink runtime flag remains status experimental (ChromeOS) at trunk and on the M152 branch while the listing says 'Enabled by default'. The page attributes enablement for allowlisted IWAs to browser-process brokering (browser_process_read_write_access: true). Confirm with the integrator whether this framing is sufficient or whether a Chromium source pointer to the allowlist/enablement code should be added.
- The chrome.app.window.setShape predecessor documentation no longer exists at developer.chrome.com (404). The API is named but unlinked; if a stable archive of the Chrome Apps reference exists it should be cited.
- The setShape() spec resolves the promise after asking the host OS to apply the shape; whether OS-level application failure can still reject afterwards is not specified. The page describes the promise as resolving once the OS 'has been asked' - flag if a Chromium implementation read shows stronger guarantees.
- The dual listing category ('Enabled by default' + 'Stepped rollout') is disclosed but not explained; the ChromeStatus record does not state why the feature appears in both.
follow-up goals
- [medium · targeted-fix] When a ChromeOS 152 build with an allowlisted IWA (or the enable-chromeos-isolated-web-app-set-shape flag) is available, runtime-verify the documented contract: null vs object for window.chromeos outside the allowlist, the six rejection paths, empty-array reset semantics, and page-zoom behavior; record evidence in this critique.
- [medium · targeted-fix] Locate the Chromium browser-process code that force-enables SetShape for allowlisted IWAs after the Chrome 154 rename (likely near the IWA allowlist in //chrome) and add it as a source so the 'Enabled by default for allowlisted IWAs' claim is traceable to implementation.
- [high · targeted-fix] Cross-link check once the sibling page v152/unframed-display-mode-for-isolated-web-apps lands: verify the see-also route on this page resolves (it currently 404s until that page ships) and that the sibling links back here.
- [low · additive-page] Watch the WPT repository for any future chromeos/isolated-web-app test directory and refresh the wpt section if coverage appears.