[csswg-drafts] [css-values] add font-size relative pixel unit rpx (#7005)

NagayamaToshiaki has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-values] add font-size relative pixel unit rpx ==
I came up with an idea of a unit that basically behaves like `px` when user's font-size is as same as browser's default, but it inflates and shrinks when user changed the font-size. I'd like to name this unit `rpx`.

the actual unit size would be calculated like this:

```
1rpx = 1px * (user-set font-size) / (browser's default font-size)
```

It allows us pixel-accurate design when needed while being responsive when user prefers different font-size. It will successfully replaces the `html {font-size: 62.5%}` hack, which results in changing unit size in simular fashion, as described in [this SOF answer.](https://stackoverflow.com/questions/10323792/using-percent-for-font-size#answer-10337201)

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7005 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 2 February 2022 06:20:43 UTC