首页›Eric Meyer›文章

Accessible (I Think) Split-Cell Table Headers

Eric Meyer · 2026年5月28日

AI 摘要 AI 生成,可能有误

作者描述了一次构建无障碍分割对角线表头单元格的尝试,其灵感来自阿波罗16号(Apollo 16)文档,通过在表头单元格上使用 rowspan(以满足 WCAG 1.3.3)、CSS 定位以及渐变来绘制对角线。他分享了布局方面的注意事项,包括 Safari 中 thead 上的相对定位存在一个需要变通方法解决的 bug,并指出与无障碍专家进行的基本测试未发现重大问题。他最后请求辅助技术用户确认该解决方案对他们而言是否确实好用。

My colleague Chris Griffith, with whom I collaborated to put The Effects of Nuclear Weapons, Third Edition (1977) online, is also a spaceflight enthusiast (and an urban trails hiker: check out his new book!).  He recently asked me how I would mark up a table with a split diagonal header cell; specifically, this one from the Apollo 16 documentation:

The top left corner of the page in question.

My immediate thought was to throw two spans in the header cell and position or grid them within that cell, but the accessibility of that seemed… questionable.  It’s also what Wikipedia already does, and we here at meyerweb are nothing if not obsessed with finding new ways to do niche stuff.  So I tried something different.  But is its accessibility any better?

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Eric Meyer

My Interop 2027 Rankings

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.

In situ Syntax Highlighting in macOS Applications Like Keynote

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.

Eighteen

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.

Canvas-ing the Web

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.

Targeting by Reference in the Shadow DOM

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.