So it turns out you can use writing-mode in Chrome & Firefox to lay out a <select> horizontally 🙃
https://codepen.io/leaverou/pen/PoMzXXx
You can even apply field-sizing: content; to get rid of the empty space!
7 posts total
So it turns out you can use writing-mode in Chrome & Firefox to lay out a <select> horizontally 🙃 https://codepen.io/leaverou/pen/PoMzXXx You can even apply field-sizing: content; to get rid of the empty space! Folks… I have some *exciting* news to share. 🚀 Today I’m starting a new position as Product Lead at @font.awesome! I wrote a bit more on my blog here: https://lea.verou.me/blog/2024/awesome/
Show previous comments
@leaverou @font.awesome comgrats Lea, great news! looking forward to read more about the journey @leaverou Congratulations on your PhD and the position!🥳 Excited to see what comes out of the amazing team at @font.awesome 🤩 BTW I guessed correctly 😅
Show previous comments
@leaverou Yeah but is it, uh, wrong? 😂 I find there is an odd wisdom to it: Make things that survive your absence. 🔥 New blog post! I recently posted about driving the CSS WG resolution to add if() to CSS last week. In this mammoth article, I rounded up the state of the art right now wrt inline conditionals. One thing is for sure: after 4000 words of this, no-one could remain unconvinced that we *desperately* need that if()! PSA: The CSS WG just resolved to officially pursue work on native custom functions and mixins 🎉 @leaverou WTF? I thought the whole reason for oklch/oklab, besides access to a wider gamut, was perceptual uniformity? Just yesterday a told a group of 40 people in a workshop about how great that is compared to HSL and not this? @leaverou Question as a user: I have Lightroom Classic set to export as Display P3 on the (untested!) assumption that raw could exceed sRGB. Most content in my photos is within the sRGB gamut. With clipping, it seems to me that viewing my photos on an sRGB display is almost always fine (except some 8-bits per channel precision is wasted). With gamut mapping, wouldn’t all my photos get their gamut squished on an sRGB display just because they declare Display P3 (without fully using it)? |
@leaverou If only styling the select was easier this could be useful, för example for making a toggle switch or a pure css tab-bar
@leaverou Works on FireFox, but not Chrome?
@leaverou how does it work pls