惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Hugging Face - Blog
Hugging Face - Blog
F
Fortinet All Blogs
G
Google Developers Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
V2EX
Y
Y Combinator Blog
博客园_首页
Martin Fowler
Martin Fowler
博客园 - 司徒正美
MyScale Blog
MyScale Blog
宝玉的分享
宝玉的分享
B
Blog
有赞技术团队
有赞技术团队
A
About on SuperTechFans
量子位
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
Apple Machine Learning Research
Apple Machine Learning Research
M
MIT News - Artificial intelligence
阮一峰的网络日志
阮一峰的网络日志
Jina AI
Jina AI

remy sharp's b:log

Redesign '26 AI for alt text? Are We at War with AI Agent “Civilizations”? Before you buy an LTE Pixel Watch (for your teen) I Who Have Never Known Men 16 for Tia The Talented Mr Ripley (Ripley, #1) Dark mode toggles: two states are enough I'm not done using AI On AI Coding and Its Discontents Three Men in a Boat Not All Screen Reader Users Are Blind Progressive Enhancement inside of JavaScript A Firefox-only minimap Pokémon Emerald Human Software Rescued Pokémon Yellow when-do web component 'VPNs are lawful technical tools,' says EU Court in landmark copyright ruling Image to text The Air Raid Book Club The infinite scroll may become endangered if controversial Calif. law passes In defense of polyfills • Lea Verou This was the first commit via an LLM to git Wildcards In CSS AI Content Is Everywhere on Social Media, Especially LinkedIn Web Platform Wishlist on Vale.Rocks querySelector immediate children with :scope Fundamentally Why we moved our Bluesky data to Eurosky
text-decoration-thickness discrepancies
Remy Sharp · 2026-09-11 · via remy sharp's b:log

I'm in the process of (attempting) to redesign this blog, and in doing so, I'm using a few of the new bits (to me) of CSS to make things fancy.

In this instance, I'm using text-decoration-thickness on my titles, and wanted to document the quirks I noticed.

What I'm doing

On blog post headings are marked up as h1 > a.permalink(href). The effect is: the title is not visibly underlined, and when you hover, the underline eases in over 50ms to a thickness of 4px.

As this specific link is marked up as the permalink (the microformats die hard), it's a link to the page we're reading. As such, I make a exception and (even on this pre-redesign page) the link doesn't look like a link.

(I was going to end there, but want to acknowledge the a screen reader is still going to raise this as a link, and… I don't have a good work around for this yet - and yes, that's shitty of me - I'm trying to improve)

All other links have the underline visible, then on hover have the same animated effect to thicken out the underline.

What Firefox does

It does exactly what I expected. And actually until I switched to give a cursory test of Chrome, I didn't actually expect to see anything different.

What Safari does

Safari doesn't animate the transition from text-decoration-thickness: 0px to 4px - it just jumps into place.

What Chrome does

My daily browser is Firefox, but I have a tendency to (lazily) assume that things "just work" in Chrome. Not a great strategy, eh?

Chrome has no animation, but moreover, a text-decoration-thickness of zero height is… still there.

Ah well, I guess it's a progressive enhancement.