← 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.

reviewed 2026-11-24 by gendn leaf-reference writer (self-review; independent integrator review pending)

rubric

dimensionscoreseverityevidence
factual-source-fidelity5/5infoVerified 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-mapping5/5infoFeature 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.
completeness5/5inforeference-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-quality5/5infoExplains 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.
examples4/5minorTwo 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-fallbacks5/5infoSeparates 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-validity5/5infoEvery 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.
accessibility5/5infoSingle <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-ux5/5infoUses 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-relationship4/5infoHEAD 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

open questions

follow-up goals