W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2016

Re: [csswg-drafts] No way to set the underline width/thickness

From: Christoph Päper via GitHub <sysbot+gh@w3.org>
Date: Fri, 09 Dec 2016 06:07:12 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-265941151-1481263630-sysbot+gh@w3.org>
I prefer established `width`over `thickness` and also, as in [my 
comments on 
#459](https://github.com/w3c/csswg-drafts/issues/459#issuecomment-260609781),
 new length units.

~~~css
@font-face {
  font-family: Example; src: url(example.woff);
  stroke-width: 0.05em /* base-stroke */ 0.05ex /* hair-stroke */; /* 
`auto` would trust metadata */
}
.example {
  font: 16px Example; font-size-adjust: 0.6 /* 1ex = 9.6px */;
  text-decoration-width: 1bs; /* = 0.8px or actual stroke width or 
default 1em/16 = 1px */
  font-weight: 120%; /* = 1.2 × 1bs / (1em/16) – different definitions
 possible */
}
~~~

-- 
GitHub Notification of comment by Crissov
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/239#issuecomment-265941151 
using your GitHub account
Received on Friday, 9 December 2016 06:07:19 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:27 UTC