AI 摘要The author shares their personal rankings for Interop 2027 proposals using Jake Archibald's community ranking tool, placing JavaScript Temporal first, followed by improving CSS sibling-count()/sibling-index() interop, unprefixed CSS box-decoration-break, HTML headingoffset/headingreset attributes, and CSS line-clamp plus margin-trim. In total they ranked twenty proposals and explain their reasoning for each, while emphasizing these personal rankings do not predict how they will vote as Igalia's representative to Interop. They encourage readers to rank and share their own favorite proposals.
AI 摘要The author shares a macOS workflow for syntax-highlighting code blocks in place within Keynote (and other apps), built from the highlight command-line tool, a custom shell script, and an Automator Quick Action that adds an entry to the Services submenu of the right-click menu. The setup preserves the original font face and size, though line spacing is reset to 1.0 due to a limitation in highlight, and support for other languages can be added by duplicating the workflow and changing the syntax variable. Tested on macOS Sequoia, the approach has caveats such as failing on text with mixed fonts or sizes and performing no validation that the selected text matches the configured language.
AI 摘要The author reflects on what would have been his daughter Rebecca's eighteenth birthday, twelve years after her death, recalling her funeral and imagining the adulthood she never reached, including a high school graduation she likely would have had. He considers this transition from her 'phantom childhood' to 'phantom adulthood' as a possible turning point for the family, who have traditionally visited her grave together each year and are beginning to discuss loosening that ritual. This year, the family visited on the day itself, where a cellophane spinner cast glowing purple shapes—including a butterfly—across her name, a sight the Rebecca they knew would have loved.
AI 摘要The author describes an attempt to build an accessible split-diagonal table header cell, inspired by Apollo 16 documentation, using rowspan on header cells (to satisfy WCAG 1.3.3), CSS positioning, and a gradient to draw the diagonal. He shares layout caveats, including a Safari bug with relative positioning on thead that required a workaround, and notes basic testing with accessibility experts found no major issues. He ultimately asks assistive technology users to confirm whether the solution actually works well for them.
AI 摘要The author describes using Chrome's new flag-gated HTML-in-canvas API to add a one-click 'Download banner image' button to a browser-based tool built at Igalia for generating social media banners and thumbnails. They recount overcoming technical snags, including avoiding infinite recursion when inserting a custom element into a canvas (solved with Element.moveBefore() and connectedMoveCallback()) and dynamically resizing the canvas to fit its content. They conclude that while HTML-in-canvas excels for static screenshot-style use cases like theirs, the inherent mismatch between fluid DOM layout and fixed canvas dimensions will likely limit its broader adoption on the web.
AI 摘要The article discusses the Reference Target proposal, which addresses how the Shadow DOM breaks references such as label 'for' attributes, popoverTarget, commandFor, and ARIA attributes by creating a separate node tree. The proposed shadowRootReferenceTarget attribute lets a component redirect external references to a specific element inside its shadow tree, with prototype implementations available in Chrome and Safari (and a Gecko version under review). The author encourages developers to test the feature in these browsers and provide feedback on the proposal's issue tracker.
AI 摘要The author improves on their previous 'asidenotes' technique—converting inline parenthetical asides into margin sidenotes—by defining a custom HTML element, , and using JavaScript to automatically insert a marker, strip the enclosing parentheses, and append sentence-ending punctuation. The script only runs when the browser supports CSS anchor positioning (checked with CSS.supports) and the viewport is at least 65em wide (checked with matchMedia), otherwise the text stays as plain inline parenthetical content. Since the approach already works in the post itself, the author is inclined to adopt it site-wide on meyerweb.
AI 摘要The author describes an experiment in converting inline parenthetical asides into sidenotes (dubbed "asidenotes") using only HTML and CSS anchor positioning in supporting browsers. Although a working solution was achieved with spans, counters, and absolute positioning, the approach required cluttered markup to hide the parentheses and couldn't cleanly handle text transformations like capitalization and terminal punctuation. The author ultimately rejects the technique as too cumbersome and hints that a JavaScript-based approach using custom elements will be covered in a follow-up post.
AI 摘要The author rewrote a bookmarklet that auto-loads all comments on lengthy GitHub issues after GitHub changed its markup in a way that broke the original version, which relied on finding buttons whose text read "Load more." The new version, at just 258 characters, repeatedly waits, finds elements whose class starts with LoadMore-module__buttonChildrenWrapper, and dispatches bubbling click events until no such elements remain. The author notes they wish GitHub offered this capability natively and invites readers to use the bookmarklet and report if it breaks again.
AI 摘要A WHATWG GitHub issue opened by Google's Mason Freed asking whether XSLT should be removed from browsers sparked an uproar, with many accusing Google of unilaterally deciding to kill the technology. The author clarifies that the idea originated from a Mozilla employee during a WHATWG meeting, has tentative support from multiple browser vendors concerned about memory-unsafe code and security flaws, and is merely the first step in a slow, multi-step evaluation process whose outcome is not predetermined. Even if XSLT is removed from browsers, it could still be used server-side or via JS/WASM polyfills, so XSLT itself is not at risk.
AI 摘要The author continues experimenting with CSS's infinity keyword in calc() functions, this time applying it to text properties (text-indent, word-spacing, letter-spacing), z-index values, and animation durations, and comparing computed results across Safari, Chrome, and Firefox. The tests reveal wildly inconsistent computed lengths between browsers, while z-index uniformly caps at 2147483647—so calc(infinity + 1) equals infinity, and even a finite value can tie or beat it—and dividing a finite number by infinity consistently yields 0 across all three browsers. Setting an animation-duration of calc(infinity * 1s) produces astronomically long durations (e.g., ten nonillion years in Firefox) and renders Safari pages unresponsive, leading the author to conclude that browsers treat any arithmetic on infinity as simply returning infinity.
AI 摘要The author experimented with feeding browsers infinite pixel values via CSS calc(infinity * 1px) to see how each engine clamps them for element dimensions, font sizes, and line heights. Safari and Chrome clamped to values near 2^25−1 (~33.5 million pixels), while Firefox produced baffling results, such as ignoring infinite heights, reporting mismatched computed versus layout values, and using a 32-bit float computed font size while rendering text at an entirely different size. The author invites readers to explain the underlying reasons for these browser inconsistencies.
AI 摘要The article discusses the long-running CSS masonry layout debate between flexbox and grid approaches, which Google and Apple advanced with competing proposals. It then introduces a new WebKit proposal called Item Flow, which extracts flow and packing behaviors into new item-* properties (like item-wrap, item-flow, and item-pack) that work across both flex and grid contexts, enabling things like balanced row packing and Pinterest-style waterfall layouts. The author finds this direction promising, suggesting it could eventually lead to a 'Grand Unified Layout Platform' (GULP) where layouts blend flex and grid behaviors without needing to choose between them.
AI 摘要The author announces that meyerweb is participating in CSS Naked Day 2025 by removing the site's stylesheets, though embedded CSS on certain pages (like the Toolbox page) will remain, and cached files may take time to clear. This gives visitors a retro, 1990-style HTML experience, with the normal design returning tomorrow or whenever the author remembers to restore it.
AI 摘要In this post, Eric Meyer revisits his 2023 CSS wish list, noting which wishes came true (subgrid, nested selectors, color-mix(), and wider :has() adoption) and which are close to arriving (view transitions and anchor positioning). He then rolls forward his unfulfilled wishes and adds new ones for 2025, including hanging punctuation, margin and line box trimming, stroked text, expanded attr() support, CSS Exclusions, masonry layout, grid track and gap styles, custom media queries, and unprefixing all remaining vendor-prefixed properties. He closes by inviting readers to share their own CSS wish lists.