← v158/object-fit-and-object-position-apply-to-svg-documents-in-object-and-embed · conformance
critique · rev 1
v158/object-fit-and-object-position-apply-to-svg-documents-in-object-and-embed
Implementation-sufficient Chrome 158 reference for applying object-fit and object-position to same-origin SVG documents in <object> and <embed>, sourced from HTML §15.4.1, CSS Images 3 §4.5/§4.6, Fullscreen UA stylesheet, Blink layout_embedded_object.cc / layout_embedded_content.cc, WPT css-images SVG suite, BCD, webstatus.dev, and ChromeStatus 4886345347629056.
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 5/5 | info | Verified directly against HTML §15.4.1 (normative quote fetched 2026-11-24), CSS Images 3 §4.5/§4.6, Fullscreen UA stylesheet (object-fit: contain), Blink layout_embedded_object.cc (StyleDidChange geometry/paint invalidation, PreSnappedRectForPersistentSizing, LocalFrame same-origin TODO), layout_embedded_content.cc (NodeAtPoint hit testing), WPT object-fit-contain-svg-001..006o/e + support SVGs, object-fit-dyn-aspect-ratio-001.html, fullscreen/rendering/backdrop-object.html, BCD, webstatus.dev, and ChromeStatus 4886345347629056. |
| milestone-mapping | 5/5 | info | Feature 4886345347629056 appears under 'Enabled by default' in /api/v0/features?milestone=158 with listing name 'object-fit and object-position apply to SVG documents in <object> and <embed>'; slug matches; H1 equals escaped listing name; ChromeStatus row in .doc-table declares full 16-digit ID. |
| completeness | 5/5 | info | reference-contract.json maps 4 source-derived inventory items (object-fit sizing + SVG intrinsic dims/preserveAspectRatio, object-position + hit testing, dynamic updates + viewBox + Fullscreen UA stylesheet, and element scope + LocalFrame/OOPIF limitation) across all 9 required dimensions. |
| explanation-quality | 5/5 | info | Explains the interaction between CSS object-fit and SVG width/height/viewBox/preserveAspectRatio in a structured table, documents hit-testing alignment, highlights the CSS.supports() false-positive pitfall for Safari/Chrome < 158, and clearly states the <iframe> exclusion and out-of-process frame limitation. |
| examples | 4/5 | minor | Two complete semantic <pre><code> examples covering <object>/<embed> with object-fit/object-position and dynamic contentDocument viewBox mutation + Fullscreen ::backdrop styling. No chrome-platform-showcase demo exists yet (HEAD returned 404 on 2026-11-24). |
| browser-compat-fallbacks | 5/5 | info | Separates Baseline Widely available base object-fit/object-position (Chrome 32, Edge 79, Firefox 36, Safari 10) from Limited availability of SVG-in-<object>/<embed> (Chrome 158 desktop/Android/WebView, Firefox shipped, Safari WebKit Bug 317804); discloses that runtime_enabled_features.json5 still read experimental on main when checked 2026-11-24. |
| links-validity | 5/5 | info | Every visible source label carries a direct <a href> with target='_blank' rel='noopener'; zero unlinked citations; full 16-digit ChromeStatus ID 4886345347629056; properly escaped <object> and <embed> in title, H1, prose, and code. |
| accessibility | 5/5 | info | Single <main>, single <h1>, sequential h2/h3 hierarchy, On-this-page <nav class='local-nav'>, captioned tables with <th scope>, keyboard-focusable .table-wrap scroll regions with aria-labelledby and 3px :focus-visible outline, and role='note' on the Baseline banner. |
| responsive-ux | 5/5 | info | Uses shared /public/styles.css semantic tokens without inline overrides of pre/h1/code/.baseline-browsers/blockquote, logical max-inline-size: 100% on .table-wrap, min-width scroll tables, and verified via npm run responsive at desktop (1280x800) and mobile (360x740). |
| showcase-demo-relationship | 4/5 | info | HEAD check on https://chrome-platform-showcase.paulkinlan-ea.deno.net/v158/object-fit-and-object-position-apply-to-svg-documents-in-object-and-embed/ returned 404 on 2026-11-24; no broken iframe or speculative showcase link emitted so manifest demo remains honestly null. |
modern-web-guidance consulted
- responsive reference documentation table horizontal scroll accessible navigation — Use semantic landmarks (<main>, <header>, <nav>, <footer>), sequential headings, captioned data tables with <th scope>, keyboard-focusable scroll regions wired via aria-labelledby, and visible :focus-visible outlines. (Applied: single <main>, <nav class='local-nav' aria-label='On this page'>, captioned tables with <th scope='col|row'>, tabindex='0' role='region' aria-labelledby on scrollable .table-wrap containers with 3px :focus-visible outline, and role='note' on the Baseline banner.)
- responsive CSS alignment SVG embedded object typography readability — Use logical sizing (max-inline-size: 100%), overflow auto scroll containers instead of overflow: hidden clipping, and flex-wrap lists for narrow viewports. (Applied: .table-wrap uses max-inline-size: 100% with horizontal scroll on .scroll-table and .compat-table, delegating flex-wrap .baseline-browsers and pre overflow-x scrolling to shared /public/styles.css.)
- typography legibility code blocks headings dark mode — Keep headings balanced and scannable while avoiding global text-wrap overrides on long body copy or code blocks. (Applied: relies on shared /public/styles.css heading balance and wrapping rules without inline overrides on h1, code, pre, or blockquote; places .lede before .baseline-banner.)
- typography legibility code blocks headings dark mode — Inherit semantic theme tokens from the design system so light and dark modes maintain WCAG AA contrast. (Applied: links /public/styles.css and uses only var(--accent-blue) in the minimal inline <style> block.)
open questions
- Confirm when Blink flips SVGEmbeddedAsReplacedElement from experimental to stable on trunk and when Edge's wpt.fyi run turns green on object-fit-*-svg-*.
- Track whether Blink extends replaced-element sizing to cross-origin out-of-process frames (RemoteFrame) under crbug.com/41302806.
- Track Safari support under WebKit Bug 317804 and BCD subfeature addition.
follow-up goals
- [low · targeted-fix] Embed a live Chrome Platform Showcase iframe once a v158/object-fit-and-object-position-apply-to-svg-documents-in-object-and-embed concept demo is published.
- [low · targeted-fix] Update Browser compatibility once Safari resolves WebKit Bug 317804 or BCD adds a dedicated subfeature for SVG in <object>/<embed>.