-
Notifications
You must be signed in to change notification settings - Fork 730
Description
I discovered this week that there was still a bit of confusion about the name of the new CSS property for adjusting the width/thickness of an underline. (Mozilla had implemented the older name & just updated to the new one..) Because I was poking around, trying to figure this out, a new name occurred to me.
For background: Currently, see draft spec, the name for this new property is text-decoration-thickness
. It was originally called text-decoration-width
. The name was changed last October. Best I can tell, along the way, some folks argued "width" better matched some of the other CSS properties, like border-width
. While some argued width
is confusing, because it's not going to adjust the length in the inline-direction. (I agree with this, width sounds like adjusting the length of the underline, not the thickness). Some folks also argued that the word "thickness" is not great for an international audience, the 'th' might be especially hard for non-English speakers. I don't think that any other names were debated (from a cursory skim of the issues).
Yesterday, I was chatting with a journalist/editor in NYC about CSS and recent CSSWG debates, and he said in his world of newspaper typesetting, that dimension is called weight. They talk about the weight of an underline. Which struck me as perhaps a really good solution.
text-decoration-weight
This better matches existing CSS — font-weight
also adjusts the thickness of typographic lines (the one inside the characters themselves). It's not a word that's as hard for an international audience. And it will not be confusing for Authors.
Thoughts?
It's annoying to have to change existing implementations (shipped in Safari, on it's way in Firefox). But perhaps this is worth it?