Axel Rauschmayer on Nostr: Dilemma in #CSS: • px is convenient because it’s a relatively small length per ...
Dilemma in #CSS:
• px is convenient because it’s a relatively small length per unit (compared to em and rem).
• But it doesn’t change when the user changes their default font size.
Maybe—new units?
• empx = 1/16 of an em
• rempx = 1/16 of a rem
Published at
2025-10-22 15:03:31 UTCEvent JSON
{
"id": "62ea1ff74c638cd7827351e51451cfa6d891f9b5fbb5a95a05b3296e94f02b02",
"pubkey": "7a7a0978cc46ef7fd548fb125e51c04de7d4ca639417a21b56aa95e3711c0b38",
"created_at": 1761145411,
"kind": 1,
"tags": [
[
"proxy",
"https://fosstodon.org/@rauschma/115418425710759967",
"web"
],
[
"t",
"css"
],
[
"proxy",
"https://fosstodon.org/users/rauschma/statuses/115418425710759967",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fosstodon.org/users/rauschma/statuses/115418425710759967",
"pink.momostr"
],
[
"-"
]
],
"content": "Dilemma in #CSS:\n• px is convenient because it’s a relatively small length per unit (compared to em and rem).\n• But it doesn’t change when the user changes their default font size.\n\nMaybe—new units?\n• empx = 1/16 of an em\n• rempx = 1/16 of a rem",
"sig": "b2ab0a7579b3b312763550b1fffcd980c3060de4f777e7a99a6a1cf31cabc88c65f3e2d81a1921f1c24dc42bfe9e921e5e3283ab2741de1c592d09d76eff684e"
}