← v147/css-contrast-color · conformance
critique · rev 1
v147/css-contrast-color
MDN stub upgraded to MDN shape: Baseline Newly available banner (webstatus 2026-04-10), verbatim Level 5 grammar, live hue-explorer iframe, BCD per-version table; one factual fix to the Returns row.
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 4/5 | info | Syntax quoted verbatim from css-color-5 §8 (fetched 2026-11-22): 'contrast-color() = contrast-color( <color> )'; tie->white and UA-defined algorithm taken from the same section. Quick-reference 'Returns' row previously claimed 'higher WCAG contrast ratio' — corrected (the spec advises UAs NOT to simply use WCAG 2.1). Level 6 extended grammar noted as not shipped per the ChromeStatus summary. |
| milestone-mapping | 5/5 | info | Identity 4841046007742464 unchanged (6 chromestatus.com/feature links in dumped DOM); ChromeStatus record desktop/android first 147; route/slug untouched. |
| completeness | 4/5 | info | Stub keeps the MDN card + quick reference and now adds MDN-shaped Baseline banner, Syntax, Examples (live iframe + two pre/code snippets), per-version BCD table, Specifications and See also. Stub status kept (MDN owns the detailed reference), so no reference-contract.json is required. |
| examples | 5/5 | info | Embedded CPS hue-explorer concept (HTTP 200, own-feature chromestatus id) rendered in headless Chrome 153 at 1280px (scratchpad cc-1280.png shows the Hue Explorer UI inside the frame). Snippet behaviour verified in Chrome 153: rebeccapurple -> rgb(255,255,255); #ffee00 -> rgb(0,0,0); CSS.supports('color','contrast-color(red)') true. |
| browser-compat-fallbacks | 5/5 | info | BCD css/types/color.json contrast-color: chrome 147, edge/chrome_android mirror, firefox 146, safari 26 (raw fetched 2026-11-22). webstatus.dev contrast-color baseline {status: newly, low_date: 2026-04-10}. Fallback declaration + @supports example. |
| links-validity | 5/5 | info | All new external URLs curl-checked 200 on 2026-11-22 except github.com blob BCD links (proxy returns 403 here; the raw.githubusercontent equivalents returned 200). Every citation span carries <a href>; blink-dev Intent to Ship linked by msgid (title verified). |
| accessibility | 5/5 | info | Single h1; role=note banner with aria-label; captioned compat table in a focusable labelled region; iframe has a descriptive title; CSS variables only. |
| responsive-ux | 5/5 | info | deno task responsive desktop:ok mobile:ok; conformance no-horizontal-overflow both pass. Full-page captures read at 1280 and 360: banner wraps, compat table scrolls within its .table-wrap at 360, page has no horizontal overflow. |
| showcase-demo-relationship | 5/5 | info | Embeds this feature's own CPS concept /v147/css-contrast-color/hue-explorer/ (null -> URL recorded as a 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
- Chrome's actual contrast algorithm (UA-defined) is not documented in the ChromeStatus record; confirm from the blink-dev thread or Chromium source if MDN later documents it.
follow-up goals
- [low · targeted-fix] When Chrome ships the CSS Color 6 extended contrast-color() form (role keywords, <target-contrast>, candidates), add it to the v147 css-contrast-color Syntax section with its own compat row.