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

To be clear, `line-height: <percentage>` computes to a `<length>` in all browsers:

```html
<!doctype html>
<style>
  div {
    line-height: 100%;
    font-size: 16px;
  }
  span {
    font-size: 32px;
  }
</style>
<div><span></span></div>
<pre>
<script>
  document.write(getComputedStyle(document.querySelector("span")).lineHeight);
</script>
</pre>
```

Shows `16px`, not `32px`.

-- 
GitHub Notification of comment by emilio
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2165#issuecomment-571729947 using your GitHub account

Received on Tuesday, 7 January 2020 19:16:27 UTC