← Back to Pull requests

[Rangegroup] Explainer updates: spec alignment pass + interaction mode #1513

Closed
unknown closed this pull request without merging on Sep 08, 2026 15:13 UTC
View on GitHub
unknown unknown commented on Aug 28, 2026 09:35 UTC
Author

I did a pass through the explainer against the latest specs and recent CSSWG / Open UI discussions. The core proposal hasn't changed—most of this pass is about tightening the wording, fixing spec citations, and resolving a few internal contradictions.

Spec Alignment & Wording Fixes

Switched CSS Forms links to the Editor's Draft: We were linking to the TR snapshot while referencing ::slider-track, ::slider-fill, and ::slider-thumb. That snapshot still lists the older ::track/::fill/::thumb syntax and flags naming as unresolved. Since CSSWG resolved to keep the slider- prefix (csswg-drafts#9830), the explainer now points to the ED and explicitly notes why. Also clarified which pseudos come from CSS Forms versus the ones we're introducing (::slider-segment, ::slider-tick, ::slider-tick-label).
Aligned with the split fill model: CSSWG recently resolved (19 Feb 2026) to split the fill into ::slider-fill-over / ::slider-fill-under, with ::slider-fill aliasing under. Because multi-range handling came up in that discussion, the explainer now maps the two models cleanly: single-thumb controls use over/under, while multi-thumb controls use ::slider-segment(n). This also clears up a contradiction where we previously claimed ::slider-fill styled the space between multi-range thumbs.
Clarified form association and name: The <rangegroup> name attribute was vaguely described as being "for identification." To avoid confusion around form submission, we aligned it with <fieldset>: it's form-associated and listed, but not submittable on its own. The group name only appears in form.elements, while child inputs handle their own name/value pairs. We added form to the attribute list to match and closed the open question on group-level submission for v1 (dual submission risks payload mismatches across browsers and breaks progressive enhancement).
Explicit HTML change for <legend>: Using <legend> as a direct child of <rangegroup> requires updating its HTML content model (which currently only allows <fieldset> and <optgroup>). We now call this out directly as an explicit spec ask, citing the <optgroup> update for customizable <select> as precedent, alongside a fallback pattern that validates today.
Reframed datalist snapping as proposed: We previously claimed arrow keys snap to datalist ticks "following existing conventions," but native range controls only snap on pointer input (keyboard navigation is still strictly step-driven). This is now framed as a proposed feature, with an open question on whether it should apply strictly to rangegroup or any range with a list.

Quick Corrections & Polish

*::-ms- prefixes:* Labeled as legacy IE/EdgeHTML (modern Edge runs Chromium and uses WebKit pseudos).
accent-color: Noted as the only standardized tint available today.
interactivity collision: Clarified that the name collision is with CSS UI 4's interactivity, since a CSS interaction property doesn't exist.
list attribute on groups: Noted that moving list to <rangegroup> is an explicit ask, and flagged that fallback markup won't render ticks without duplicating the attribute onto child inputs.
Vertical orientation: Since slider-orientation is flagged for rework in the ED (csswg-drafts#11891), we no longer present it as a settled solution.
Thumb custom property: Added a note that UA-defined --slider-thumb-position can be overridden by authors, so it might need a different shape.

  • Fieldset disabled state: Added the standard <legend> exception inside <fieldset disabled>.
  • Single-Thumb Handling

    Expanded the section on single-thumb groups to explain how they relate to standard <input type="range"> with appearance: base. A group with a single thumb still behaves like a standard single control (one thumb, one filled area, one unfilled area), but gains the shared track coordinate space, group-level attributes (min, max, list), and the group label. This keeps the mapping to ::slider-fill-over / ::slider-fill-under consistent. It also means we have a baseline on which we can expand more easily.

    Interaction Modes & Naming

    No functional changes here: endpoints remains default and range is opt-in. We did, however, give the naming caveat its own dedicated paragraph in Track Click Behavior. It explicitly lists the collisions (interactivity, inputmode), notes why draggable was dropped (global attribute clash), and makes clear that the core interaction behavior is what matters, regardless of the final attribute name. Discussion stays on #1460.

    Issue References


    Updated all citations so claims point directly to their supporting discussions, pulling in the relevant CSSWG threads alongside our existing Open UI issues. Open UI numbers and telecon resolutions remain untouched.

    Diff: 617 lines (+462 / -155) across 7 files Reviewer: lukewarlow Review duration: 16178m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 617 lines diff across 7 files
    0.50
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.384
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1513"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 50.2% (MEDIUM) · Higher = larger blast radius
    50.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19.8% · Safe to merge
    19.8%
    Repository