← v159/cssimportrule-stylesheet · conformance
critique · rev 1
v159/cssimportrule-stylesheet
Implementation-sufficient Chrome 159 reference for nullable CSSImportRule.styleSheet, sourced from CSSOM §6.4.4, CSS Cascade 5 §2.1, WPT css/cssom/cssimportrule.html, Chromium CL 5065830, Bugzilla 1427715#c12, WebKit PR #42784, BCD, webstatus.dev, and ChromeStatus 5123480866783232.
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 5/5 | info | Verbatim WebIDL and normative prose quoted from CSSOM §6.4.4 and CSS Cascade 5 §2.1 (fetched 2026-11-24); verified WPT css/cssom/cssimportrule.html, Chromium runtime flag CSSImportRuleStyleSheetNullable, WebKit PR #42784 CSSImportRule.idl diff, Bugzilla 1427715#c12, and live MDN wording. |
| milestone-mapping | 5/5 | info | Feature 5123480866783232 appears under Enabled by default in milestone=159 listing with name 'CSSImportRule.styleSheet'; slug cssimportrule-stylesheet matches; H1 equals listing name; full 16-digit chromestatus.com/feature/5123480866783232 declared in .doc-table ChromeStatus row. |
| completeness | 5/5 | info | reference-contract.json maps 3 source-derived inventory items (nullable styleSheet getter, conditional @import supports() false evaluation, and companion CSSImportRule members) across all 9 dimensions. |
| explanation-quality | 5/5 | info | Explains why gendn ships a full reference (MDN still asserts an @import always has a stylesheet), documents the null-return and no-fetch rules even when the URL is loaded elsewhere, and highlights TypeError and CORS SecurityError handling. |
| examples | 4/5 | minor | Two complete semantic <pre><code> examples (conditional @import supports() inspection matching WPT cssimportrule.html, and a null-safe/CORS-safe recursive stylesheet walker). No chrome-platform-showcase demo exists yet (HEAD returned 404 on 2026-11-24). |
| browser-compat-fallbacks | 5/5 | info | Separates base CSSImportRule.styleSheet (BCD Chrome 1 / Edge 12 / Firefox 1 / Safari 1; webstatus import Widely available) from nullable styleSheet behavior (Chrome 159 desktop/Android/WebView, Firefox Bugzilla 1427715#c12, WebKit PR #42784). |
| links-validity | 5/5 | info | Every visible source label links directly to its canonical primary artifact with target='_blank' rel='noopener'; full 16-digit ChromeStatus ID 5123480866783232 used. |
| accessibility | 5/5 | info | Single <main>, single <h1>, sequential h2/h3 hierarchy, .local-nav jump bar, captioned tables with <th scope>, focusable .table-wrap scroll regions with aria-labelledby and visible :focus-visible outline. |
| responsive-ux | 5/5 | info | Inherits shared /public/styles.css typography, light/dark tokens, and wrapping rules; uses logical max-inline-size: 100% on .table-wrap with min-width on wide tables. |
| showcase-demo-relationship | 4/5 | info | HEAD check on https://chrome-platform-showcase.paulkinlan-ea.deno.net/v159/cssimportrule-stylesheet/ returned 404 on 2026-11-24; no broken iframe emitted and manifest demo stays honestly null. |
modern-web-guidance consulted
- responsive tables horizontal scroll accessibility reference documentation — Use semantic landmarks (<main>, <header>, <nav>, <footer>), sequential heading levels, captioned tables with <th scope>, and keyboard-focusable horizontal scroll regions linked via aria-labelledby. (Applied: single <main>, <header class='lede-block'>, <nav class='local-nav' aria-label='On this page'>, <footer>, sequential h1/h2/h3, captioned tables with <th scope>, and focusable .table-wrap containers.)
- responsive data table mobile overflow typography dark mode — Use logical sizing (max-inline-size), overflow: auto scroll containers instead of overflow: hidden clipping, and flex-wrap with gap for metadata badges. (Applied: .table-wrap uses max-inline-size: 100% with horizontal scrolling on .compat-table and .scroll-table; .baseline-browsers inherits flex-wrap from /public/styles.css.)
- responsive data table mobile overflow typography dark mode — Restrict text-wrap: balance to short headings (h1-h3) and keep code blocks scrollable and legible on narrow mobile screens. (Applied via shared /public/styles.css without overriding h1, pre, or code inline.)
- responsive data table mobile overflow typography dark mode — Use root color-scheme and semantic light-dark() tokens rather than hard-coded color literals. (Applied: inherits all color tokens and color-scheme declarations from /public/styles.css.)
open questions
- Record the exact Safari stable version that first shipped WebKit PR #42784 once BCD api/CSSImportRule.json adds a nullable subfeature.
- Update the See also note once MDN updates its CSSImportRule.styleSheet article to document nullable return values.
follow-up goals
- [low · targeted-fix] Embed a live Chrome Platform Showcase iframe if a v159/cssimportrule-stylesheet concept demo is published.
- [low · targeted-fix] Refresh the Browser compatibility table once BCD adds a nullable CSSImportRule.styleSheet subfeature and confirms Chrome iOS status.