← Back to Pull requests

feat(media): CSS-only native carousel buttons and position markers #341

Open
unknown opened this pull request with 310 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 22, 2026 19:32 UTC
Author

Summary


  • Add opt-in syn-media-rail--controls native previous/next buttons and syn-media-rail--markers labeled scroll markers to the existing optional syntyr.media.css module (no JavaScript, no core-bundle expansion).

  • Preserve touch, keyboard, scrollbar and Scroll Snap behavior in browsers without CSS Overflow 5 / anchor-positioning support; marker names are provided by data-syn-scroll-label.

  • Extend the original static media demo, user documentation, API stability notes, generated editor metadata (including VS Code), and machine-readable docs.

  • Add red-to-green contract tests and an actual Chromium test with page JavaScript disabled. Avoid duplicating existing native details/accordion, popover, dialog, or form controls.
  • Validation


  • python3 -m unittest discover -s tests -q: 1,188 tests, OK (1 skipped).

  • NODE_PATH=/home/davidporkka/.local/share/browser-automation/node_modules node tests/media_native_controls_browser.cjs: PASS native next button advancing (0→188px), labeled marker and keyboard/scrollbar fallback, JavaScript disabled.

  • python3 scripts/build.py --check, python3 scripts/build_component_gallery.py --check, python3 scripts/build_cloudflare_site.py --check, docs render check, exported API/editor adapters, native tests and release policy checks: PASS.
  • Compatibility and scope


    Generated buttons/markers currently require capable browsers; the base rail remains usable in Firefox/Safari, but native button/marker parity has not been verified in those engines. No mandatory JS, no autoplay/infinite scrolling, and no change to published alpha.4. This is an experimental alpha.5 candidate. No auto-merge requested.

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    New Features
    Added optional, JavaScript-free carousel buttons and position markers for media rails in supported browsers. Rails remain scrollable with existing fallback behavior where these features are unavailable.
    Updated the featured-story example to demonstrate both options, with labels for each item.
    Documentation
    Added usage guidance covering browser support, accessibility, localization, and feature limitations. Clarified that these options are experimental.
    Tests
    * Added checks for carousel behavior, fallback scrolling, and example markup.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 310 lines (+232 / -78) across 3 files Reviewer: coderabbitai[bot] Review duration: 7m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.40) × (1 − Review Confidence (0.46)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 310 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 97% · Reviewer familiarity: 35%
    46%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.343
    Real PR Conversation Timeline
    1 comments
    "Review active on #341"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46% 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: 40.3% (MEDIUM) · Higher = larger blast radius
    40.3%
    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: 46% · Lower = rushed or shallow review
    46%
    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: 21.7% · Safe to merge
    21.7%