W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2018

Re: [csswg-drafts] [css-text] Allow letter-spacing to have unitless values like line-height

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Thu, 04 Jan 2018 20:36:28 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-355391812-1515098187-sysbot+gh@w3.org>
Note: unitless values *are* a new unit - they're just a lazier way of adding a new unit without actually minting a new suffix. I'm trying to avoid adding new ones in new designs, when possible - when plain numbers are actually lengths in disguise, it makes calc() dramatically more complicated.  (See the third note in <https://drafts.csswg.org/css-values/#calc-syntax> where we talk about how it's not actually allowed - you can't add together `line-height: 1` and `line-height: 20px` into a `line-height: calc(1 + 20px)` - we'd need to mint an actual unit for that to work.)

GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2165#issuecomment-355391812 using your GitHub account
Received on Thursday, 4 January 2018 20:36:34 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:22 UTC