← v158/css-custom-highlight-universal-selector-highlight · conformance
critique · rev 1
v158/css-custom-highlight-universal-selector-highlight
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 4/5 | minor | Grammar and both specificity sentences quoted verbatim from css-pseudo-4 §3.1 (fetched 2026-11-22). Cascade/inheritance claims trace to css-pseudo-4 §3.5 and to the WPT custom-highlight-universal-* tests (source read 2026-11-22). Pre-158 rejection path observed in headless Chrome 153 (insertRule SyntaxError for ::highlight(*), CSS.supports('selector(::highlight(*))') false, ::highlight(\*) parses). Positive Chrome 158 behaviour NOT executed locally: the sandbox Chrome is 153 and the CSSCustomHighlightUniversalSelector runtime flag does not exist there. |
| milestone-mapping | 5/5 | info | Feature 5174965228929024 appears under 'Enabled by default' in /api/v0/features?milestone=158 with listing name 'CSS Custom Highlight Universal Selector ::highlight(*)'; slug css-custom-highlight-universal-selector-highlight computed with the lib/chromestatus.ts rule; H1 equals the listing name; chromestatus.com/feature/5174965228929024 linked 4 times in the rendered DOM. |
| completeness | 4/5 | minor | reference-contract.json: 3 inventory items (the '*' argument; zero-specificity per-property cascade; inheritance of the universal base) x 9 dimensions, all documented with h2/h3 fragment selectors and surfaceMarkers. Pre-existing ::highlight(<custom-ident>) and HighlightRegistry surfaces are referenced, not re-inventoried (Chrome 105, MDN-covered). |
| explanation-quality | 4/5 | info | Explains matching (per-name, not merged), parse-failure fallbacks (selector-list invalidation), per-property cascade with a worked resolved-style table, inheritance with the :root pattern, and painting/lifecycle (dynamic registration, priority, async repaint). |
| examples | 4/5 | minor | Showcase universal-base-style concept iframe (HTTP 200, 2026-11-22; renders in headless Chrome 153 at 1280 and 360 widths, showing its pre-158 fallback state) plus four pre/code examples: full page with @supports fallback, WPT painting-001 mirror, WPT deep-chain-001 mirror, script feature detection. Example code was not executed in a Chrome 158 build. |
| browser-compat-fallbacks | 4/5 | minor | BCD css/selectors/highlight.json has no '*' subfeature, stated explicitly; compat table uses ChromeStatus (Chrome 158), wpt.fyi run of 2026-11-22 (Chrome 160 canary all pass; Edge 158 1/2 inheritance-computed; Firefox Nightly 163.0a1 partial; Safari 27.2 fails painting), WebKit bug 323469 (fixed 2026-09-11) and both standards positions; parent ::highlight() versions from BCD. Baseline: Limited availability for '*', parent highlight feature Newly available since 2026-03-24 (webstatus.dev). |
| links-validity | 5/5 | info | Every source label is a direct link; spec anchors (selectordef-highlight-highlight-name-selector, typedef-highlight-name-selector, highlight-cascade, highlight-styling, highlight-painting, highlight-security, privacy; css-highlight-api-1 #default-styles #creation #highlight-registry #painting #priority #repaint #priv #sec; selectors-4 #invalid; css-conditional-4 #at-supports-ext; cssom-1 #dom-cssstylesheet-insertrule) verified present in fetched spec HTML; All 41 other non-GitHub hrefs curl-checked 200 (2026-11-22); commits.webkit.org/320952@main returned 403 through the sandbox proxy so the page links the GitHub mirror commit WebKit/WebKit@5ed89fc instead (content read via WebFetch). GitHub-hosted sources (issues, PR, WPT and BCD files, standards positions) cannot be curl-checked through this proxy; their content was read via WebFetch or raw.githubusercontent.com (200). All external links target=_blank rel=noopener. |
| accessibility | 5/5 | info | Single h1; id-anchored h2/h3 hierarchy; tables with scope'd headers and captions; scrollable table wrappers with captions get tabindex=0 + role=region + aria-labelledby and a visible focus outline; Baseline banner role=note with aria-label; iframe has a descriptive title; CSS variables only. |
| responsive-ux | 4/5 | info | deno task responsive: desktop ok / mobile ok (no overflow). Full-page headless screenshots at 1280 and 360 widths read in full (/tmp/claude-0/sp/dc-*.png, mc-*.png): banner wraps, wide tables scroll inside .table-wrap rather than squashing (args/resolved/compat tables given min-width after a first 360px pass showed one-character-per-line columns), code blocks scroll horizontally, iframe at 100% width. |
| showcase-demo-relationship | 5/5 | info | Embeds this feature's own showcase concept universal-base-style (HTTP 200); parent feature page breadcrumb verified; CPS conformance JSON release v158 / featureSlug / chromestatusId 5174965228929024 match; sibling concepts zero-specificity-cascade and multi-category-annotator linked in see also. |
modern-web-guidance consulted
- responsive data table on mobile without horizontal overflow — Semantic table with thead/th; wrap in an overflow:auto container with tabindex=0, role=region and an accessible name from the caption; keep cell text legible instead of letting columns shrink below legibility. (Applied: all tables in the shared .table-wrap scroller; the three captioned tables (args, resolved style, compat) carry tabindex=0 role=region aria-labelledby=<caption id> with a :focus-visible outline, and get a min-width so narrow columns scroll rather than wrap one character per line. Exception: no sticky headers or stacked card layout - tables are short (2-5 rows) and the house style uses plain scrollers.)
- embedding cross-origin iframe lazy loading sandbox — Apply loading=lazy to off-screen iframes; never hide focusable embedded iframes from assistive technology; use figure/figcaption for embedded media. (Applied: below-the-fold showcase iframe has loading=lazy, a descriptive title, figure/figcaption, and the mandatory sandbox="allow-scripts allow-same-origin" + referrerpolicy="strict-origin-when-cross-origin" pair.)
- long code blocks in article readable on narrow mobile screens — Contain long tokens with overflow-wrap: anywhere; avoid fixed heights on text containers. (Applied: h1/.lede and inline code use overflow-wrap:anywhere (the H1 contains '::highlight(*)'); pre blocks scroll horizontally (overflow-x:auto) so code is never reflowed.)
open questions
- Execute the examples in a Chrome 158+ build: this sandbox has Chrome 153 only, so the positive path (CSS.supports true, base + named merge painting) is documented from spec + WPT, not observed.
- The wpt.fyi Edge 158.0.4370.33 run passes 1 of 2 custom-highlight-universal-inheritance-computed subtests while Chrome 160 canary passes both; confirm whether Chrome 158 differs on parent-highlight inheritance and note it if so.
- Re-check BCD and web-features for a '*' subfeature / web-feature id, and Firefox/Safari release versions (Firefox Nightly partial; WebKit trunk fixed 2026-09-11).
- The unqualified-::highlight(*) inheritance pitfall is derived from css-pseudo-4 §3.5 rather than a dedicated WPT test; verify in a 158 build.
follow-up goals
- [medium · targeted-fix] Verify the ::highlight(*) examples and the unqualified-vs-:root pitfall in a Chrome 158+ build and record the observation (or correct the page).
- [low · targeted-fix] Update the compat table when BCD adds a ::highlight(*) subfeature or Firefox/Safari ship it, and switch the Baseline banner to the web-features status when an id exists.