From bf421d99d65e83e5095b0b07efa5b23ae4bfeff3 Mon Sep 17 00:00:00 2001 From: Evan Gress <106449014+evangress@users.noreply.github.com> Date: Tue, 10 Nov 2026 19:59:35 -0500 Subject: [PATCH 1/3] Fix CI after landing the stack: scrollbar gutter only while a modal is open - scrollbar-gutter: stable moves from :root to :root:has(dialog:modal). Always on, it gave every page an empty scrollbar-wide strip with classic scrollbars (Windows, Linux), and 51 width tests failed on the Linux runner. - The near-neutral test read Firefox's exponent form (5.96046e-8) as 5.96. - The prefers-contrast test skips where the browser doesn't emulate the query (checked with matchMedia at runtime); it has failed in Firefox on CI since #46. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 4 ++-- tagbrush.css | 12 +++++------- tagbrush.min.css | 2 +- tests/tagbrush.spec.mjs | 9 +++++++-- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 645cd2c..b0e9205 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,7 +30,7 @@ A major release: the default look changes (roadmap chunk 23's open question, dec - Menus stay on screen: a popover holding a nav or a list (a user menu) opens next to the button that opened it, below it and flipping up or to the other side near an edge, with CSS anchor positioning (`position-area`, `position-try-fallbacks`), gated on `@supports (position-area: block-end)` so other browsers keep it centered (modern-web-guidance `viewport-aware-dropdowns`). Other popovers and the phone menu are unchanged. - New-tab links: a link in running text with `target="_blank"` ends in " ↗", read as "(opens in a new tab)". Buttons, nav links, heading links, image links, and document links are left alone. - Sticky top bar, opt-in: `
` stays at the top on the page background, the root gets `scroll-padding-top: 5rem` so a heading you jump to or a focused field doesn't land under it, and once it's stuck a soft shadow appears where `container-type: scroll-state` is supported (Chromium; elsewhere the hairline alone), following the modern-web-guidance `state-aware-sticky-headers` guide. -- Modal dialogs lock the page: while a `dialog:modal` is open the page behind doesn't scroll (`overflow: hidden` on the root via `:has()`), and the root keeps the scrollbar's space (`scrollbar-gutter: stable`), so nothing shifts sideways. Non-modal dialogs leave the page alone. Not in the scoped and Shadow DOM builds. +- Modal dialogs lock the page: while a `dialog:modal` is open the page behind doesn't scroll (`overflow: hidden` on the root via `:has()`), and the root keeps the scrollbar's space while it is open (`scrollbar-gutter: stable`), so a long page doesn't shift sideways. Non-modal dialogs leave the page alone. Not in the scoped and Shadow DOM builds. - Disclosure: a `
` marker is a chevron instead of the browser's triangle, at the start of the summary and turning down when open, or at the end in an accordion (neighboring `
`, or a `name`) and turning up. Opening eases the height where `interpolate-size` and `::details-content` are supported (Chromium); elsewhere, and with reduced motion, it opens at once. The header-nav dropdown keeps its own chevron. - Status banners: a `

`, `

`, `
` or `