AI 摘要This article examines the CSS caret-* properties (caret-color, caret-animation, and caret-shape) and the accessibility considerations surrounding the caret, an often-overlooked focus indicator for editable text and caret browsing mode. It explains how caret browsing enables precise keyboard navigation of web pages, and how operating systems like macOS and Windows provide accessibility settings for caret blinking, thickness, and visibility that browsers honor inconsistently. The author urges caution when applying custom caret styles, since the caret may be the only focus indicator some keyboard or pointer users receive.
AI 摘要The author shares their ranked picks for Interop 2027, a yearly project aiming to improve cross-browser interoperability of key web platform features, using Firefox's community ranking page. Their top choices—the HTML focusgroup attribute and the ariaNotify() API—reflect their preference for features that improve both accessibility/user experience and developer experience, followed by other picks like heading-related HTML attributes, Interest Invokers, and various CSS properties. The author notes that features cannot be downvoted, only ranked or left unranked, and concludes by linking to blog posts where other web developers shared their own rankings.
AI 摘要The article explains how CSS-generated content inserted via ::before and ::after pseudo-elements is included in an element's accessible name computation, and why meaningful CSS images, icons, and unicode characters need descriptive alternative text while decorative ones should be hidden from screen readers. It introduces the CSS Generated Content Module Level 3 syntax that lets authors provide alternative text after a slash in the content property (with empty-string alt text for decorative content), noting that browser support is now very good except for older browsers like Internet Explorer. The author shares testing results across browsers and screen readers such as VoiceOver, observing that CSS images without alt text are excluded from the accessibility tree, images with alt text are announced properly, and there are some quirks like NVDA not announcing Chrome's CSS image alt text and Safari only showing broken CSS image alt text when VoiceOver is enabled.
AI 摘要The author and Kevin Powell finally recorded a nearly two-hour video podcast about navigating the world of web accessibility, covering topics like HTML semantics, ARIA, screen readers, the accessibility tree, how CSS affects accessibility, and the author's Practical Accessibility course. They also chatted about shared personal interests such as cooking, fermentation, and nutrition. The author invites front-end designers and developers curious about accessibility to watch or listen and share their feedback.
AI 摘要The article explains how to create a CSS-only scrollspy effect using the new scroll-target-group property combined with the :target-current pseudo-class, which automatically highlights navigation links (like a table of contents) when their target sections are scrolled into view—no JavaScript required. It describes how applying scroll-target-group to a container of HTML anchors promotes them to scroll markers, letting the browser determine and style the active link. The author also covers accessibility considerations, including WCAG contrast requirements for active link styling and using aria-current to convey the active state to screen reader users.
AI 摘要The article critically examines the accessibility of the newly announced 'CSS Carousels,' a set of CSS-only scrolling UI patterns built with new pseudo-elements like ::scroll-marker and ::scroll-button defined in the CSS Overflow Module 5 specification. Despite claims that carousel accessibility best practices are handled by the browser, the author's inspection of examples reveals significant accessibility and usability concerns, largely because these interactive pseudo-elements are not real DOM elements and the features are still experimental (currently only available in Chrome Canary behind a flag). The post aims to raise accessibility awareness so developers do not adopt these features prematurely and create confusing experiences for assistive technology users.
AI 摘要In this interview-style post, a web developer reflects on starting their blog in 2012 to solidify what they were learning about front-end development and to share knowledge with the community, explaining their move from Jekyll to Eleventy and their Markdown-based workflow drafting in Obsidian before polishing in a code editor. They write primarily about HTML, CSS, SVG, and web accessibility, naming their deep-dive post on SVG coordinate systems as their favorite, and they plan to redesign and refactor their site after completing a design course. Rather than nominating a specific blogger to continue the chain, they invite readers to start or continue blogging and share their work with the world.
AI 摘要This article explains ARIA live regions, an accessible notification system that allows dynamic web content updates—such as status messages and toasts—to be announced to screen reader users without moving their focus. It covers how screen readers linearize web content, why updates happening outside the user's current focus would otherwise go unnoticed, and the relevant WCAG Success Criterion 4.1.3 for status messages. It also introduces the aria-live attribute with its polite and assertive values, noting that live region announcements are transient and should be used sparingly in favor of more persistent approaches where possible.
AI 摘要This article explains that ARIA live regions are unsuitable for rich text and notifications containing interactive elements, since screen readers announce their contents as unstructured plain text without conveying semantics and users cannot easily navigate to the announced content. The author recommends more robust alternatives, such as providing instructional cues (e.g., an accessible description via aria-describedby) for dynamically filtered or searchable content, using an assertive live region only for critical announcements like 'no results found,' and replacing interactive toast notifications with alert dialogs that move the user's focus. The article closes with guidance on reserving live regions for simple, non-interactive status messages where they are truly appropriate.
AI 摘要The article explains how to set up a screen reader testing environment for manual accessibility testing, covering built-in options like Narrator (Windows) and VoiceOver (macOS) as well as popular third-party screen readers such as JAWS and NVDA. It provides practical setup guidance, including installing and configuring NVDA (with features like Visual Highlight and Speech Viewer), mapping the Insert key on Mac keyboards using Karabiner Elements, enabling keyboard accessibility on macOS, and using AssistivLabs for browser-based virtual testing when no Windows machine is available. It also recommends testing with the most compatible browser-screen reader pairings (e.g., VoiceOver with Safari, JAWS with Chrome, NVDA with Firefox, TalkBack with Chrome), notes the importance of mobile screen reader testing, and links to official user guides and shortcut cheatsheets.
AI 摘要The author discovered that the CSS prefers-color-scheme media query reflects the user agent's (app's) color theme preference rather than the OS-level setting, after a dark-mode detection script reported dark mode ON inside Reeder's in-app browser while the phone's OS was set to light mode. Testing across devices confirmed that the app-level theme takes precedence over the OS-level preference. Consulting the CSS specification revealed this is intentional behavior, as user agent preferences are expected to override OS-wide settings.
AI 摘要The article argues for the addition of a native HTML element that maps to the ARIA search landmark role, similar to how corresponds to role="navigation" and to role="main". The author contends that because search is a heavily used feature on many websites, such an element would provide HTML parity with ARIA, fill a semantic gap, reduce reliance on ARIA, and improve navigation efficiency for assistive technology users. An update notes that the element was subsequently added to the HTML specification on March 24th, 2023.
AI 摘要The article explains that focus indicators—the visual highlights showing keyboard users where they are on a page—are essential for accessibility, serving the same purpose for keyboard users that the mouse cursor serves for pointer users, and hiding them violates WCAG Success Criterion 2.4.7. It covers the relevant accessibility requirements, including Non-Text Contrast (requiring a 3:1 contrast ratio) and the new WCAG 2.2 criteria such as Focus Appearance, which mandates that indicators be at least as large as a 2px-thick perimeter with sufficient contrast change between focused and unfocused states. The author introduces concepts like the 'focus indication area' and 'contrasting area' to help designers create custom focus indicators that are clearly visible and meet all these standards.
AI 摘要Apple Keynote lacks built-in code syntax highlighting, but the author shares two workarounds: copying code from VS Code, which preserves formatting when pasted (provided the editor.copyWithSyntaxHighlighting setting is enabled), and using Roman Nurik's Slides Code Highlighter web tool. The author hopes Apple will eventually add native syntax highlighting, but these two approaches offer quick and practical alternatives for developers creating presentation slides.
AI 摘要The article argues that web content must remain understandable even when CSS is stripped away, as happens in Reader modes and reading apps, making progressive enhancement essential to resilient design. The author offers practical tips: provide markup-only alternatives for ideas that depend on CSS to be understood, keep real content in HTML rather than CSS pseudo-elements, and hide non-core content such as ads and author bios using the HTML hidden attribute so it doesn't clutter the reading experience. Ultimately, keeping content in the markup layer ensures a decent experience for users regardless of how they choose to consume it.
AI 摘要The article explores how CSS Container Queries can be used for component-level art direction, allowing images to adapt their aspect ratio and cropping based on the size of their container rather than the viewport. Using object-fit and aspect-ratio, images can flexibly fit components, but true art direction (swapping entirely different images) requires the element, which currently only responds to viewport-based media queries. The author advocates for Container Queries support in HTML so semantic images inside components can respond to their container's size, noting that for now this is only possible with non-semantic background images in CSS.
AI 摘要The article explores how HTML elements can be creatively styled beyond plain lines, using the author's birds-on-a-wire SVG design as an example. While a simple background-image approach works, the author argues that inlining the SVG and applying role="separator" with ARIA makes horizontal rules more flexible, styleable with CSS custom properties, and accessible across environments like screen readers and Windows High Contrast Mode. This technique preserves the semantic role of a thematic break while allowing the illustration to adapt to different themes and contexts.
AI 摘要The article explains how to create accessible text labels for buttons and controls that work for both screen reader users navigating with tools like the VoiceOver Web Rotor and voice-control users who speak visible labels to interact with a page. It warns that inserting visually-hidden text (such as a product name) into the middle of a button's label breaks the visible name and violates WCAG Success Criterion 2.5.3 (Label in Name), and recommends appending extra text to the end of the label instead. It concludes that visible labels should be provided for all UI controls whenever possible, and that accessible names should match the visible text as closely as possible.
AI 摘要The author recounts their struggle installing Glyphhanger, a command-line tool that converts and subsets TTF font files into optimized WOFF and WOFF2 formats for the web, on macOS. After hitting numerous dependency-related errors, they document the working setup steps—installing glyphhanger via npm, Python 3 via Homebrew, and fontTools, Brotli, and Zopfli via pip3—so others can avoid the same pitfalls. They also note that Glyphhanger safely optimizes variable fonts, and an update shares a community-suggested fix for a lingering error caused by glyphhanger's shelljs dependency.
AI 摘要The article explains how to inclusively hide checkboxes and radio buttons when replacing them visually with SVG images, emphasizing that the native inputs must remain accessible and interactive. It reviews common CSS and HTML hiding techniques—such as display: none, visibility: hidden, the sr-only utility class, and off-canvas positioning—and shows why they fail touch screen reader users who explore pages by touch. The recommended approach is to absolutely position the checkbox on top of its SVG replacement within the label and make it transparent using opacity: 0, keeping it visually hidden but still discoverable and usable by all users.