- From: 1jj via GitHub <sysbot+gh@w3.org>
- Date: Wed, 13 Sep 2023 14:09:05 +0000
- To: public-css-archive@w3.org
> @romainmenke wrote in [#9293](https://github.com/w3c/csswg-drafts/issues/9293#issuecomment-1708156736) > ... > `padding: 0.78125rem 3.125rem;` > ... > There are a lot of `rem` lengths in this sample, many of which are obviously the results of converting pixel values with a ratio of 16 `px` per `rem`. All of them can be expressed by `px` values with two digits after the decimal point, or less. Assuming this is indeed a frequent way to use root-ems, there could be value in introducing a new unit which is a subdivision of `rem` corresponding 1:1 or 100:1 to default pixels, e.g.: > > * 16rp = `1rem`, `1rp` ≈ `1px` > > * `1600rx` = `1rem`, `1rx` ≈ `0.01px` No please! I do this sort of thing quite often (to a lesser extent than in this example), but I don't want a new length unit fot that. You can help yourself elsewhere if you care about the readability of your code: :root { font-size: 0.625em } /* 10px */ /* or calc(1em/1.6) if you prefer */ body { font-size: 1.6rem } /* 16px */ .foo { padding: 1.25rem 5rem } /* 12.5px 50px */ } (even this is overkill for me personally) -- GitHub Notification of comment by 1jj Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9345#issuecomment-1717710149 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 13 September 2023 14:09:08 UTC