Föderation EN Di 01.04.2025 16:47:17 Not a joke: CSSWG has resolved to start working on fit-to-width text in css-fonts-5! https://github.com/w3c/csswg-drafts/issues/2528#issuecomment-2769621512 |
Föderation EN Di 01.04.2025 16:53:45 @kizu Congrats on being named a co-editor! |
Föderation EN Di 01.04.2025 17:12:14 @kizu huge congrats! you've done so much amazing research, you were key in enabling this, thank you! |
Föderation EN Di 01.04.2025 17:12:31 @kizu yesssss an email popped up with this! Very pleased! |
Föderation EN Di 01.04.2025 17:41:10 @kizu Awesome 🙌 🙏 |
Föderation EN Di 01.04.2025 18:11:58 @kizu There will definitely be some horrible designs coming out of this. |
Föderation EN Di 01.04.2025 19:01:23 @leeloo For now, by default, the minimum font-size will be just defined `font-size`. An author, of course, could shoot themselves in a foot by defining it as 5pt, but by default the minimum font-size for longer text strings should be good enough. Shorter translated strings for ideographic characters is an interesting case. By default, yes, it can potentially bump up the block dimensions significantly if the translated string will be very short. Thanks for bringing the translation point! |
Föderation EN Di 01.04.2025 18:46:48 @kizu Congratulations! |
Föderation EN Di 01.04.2025 20:26:11 @kizu @davatron5000 we’re free |
Föderation EN Di 01.04.2025 20:37:27 @zachleat @kizu @davatron5000 CSS is PowerPoint-complete! 🙌😁 |
Föderation EN Di 01.04.2025 21:41:23 |
Föderation EN Di 01.04.2025 21:42:40 @davatron5000 @zachleat One issue: in the comments of the issue it was brought up that the feature will violate w3.org/TR/WCAG22/#resize-text — and I don't think there is any world where this issue can be implemented in a way it would not, with the way the SC is written right now. I am not sure if we can do anything about it aside from somehow changing the SC in the future. If you have any thoughts about this, I'll be happy to hear them :) |
Föderation EN Di 01.04.2025 21:47:24 @kizu @davatron5000 wild ideas welcome? something that mixes nicely with text-wrap: balance? |
Föderation EN Di 01.04.2025 21:51:09 @zachleat @davatron5000 Wild ideas _are_ welcome, but… can you elaborate? :D |
Föderation EN Di 01.04.2025 21:54:10 @kizu @davatron5000 oh, I just mean an algorithm that prefers word-wrapping when you hit extreme font-size swings (and maybe even hyphenation in extreme cases with long words?) |
Föderation EN Di 01.04.2025 20:30:32 @kizu I was a little confused about putting this in CSS Fonts instead of in CSS Text, but I guess the idea is that it will work in practice as a font-size adjustment? Is there also going to be the possibility of spacing adjustments (like in SVG) and width/stretch adjustments (especially for variable fonts with a width axis)? The proposal in that issue seems to be more about a clamp-like function on the font-size property, so I guess not. |
Föderation EN Di 01.04.2025 21:26:50 @AmeliaBR My original proposal was only about adjusting the font-size (as a starter), but both in the issue and in the meeting it was brought up that we could want to adjust other things as well. Font-size is probably the simplest, letter-spacing being also simple to distribute, but for some other variable axis and adjustments it could be more complicated and will require more research over what the algorithm for them could look like. |
Föderation EN Di 01.04.2025 20:51:56 @kizu woah! Congrats! |
Föderation EN Di 01.04.2025 21:28:35 @matuzo Thanks! One issue: in the comments of the issue it was brought up that the feature will violate https://www.w3.org/TR/WCAG22/#resize-text — and I don't think there is any world where this issue can be implemented in a way it would not, with the way the SC is written right now. I am not sure if we can do anything about it aside from somehow changing the SC in the future. If you have any thoughts about this, I'll be happy to hear them :) |
Föderation EN Di 01.04.2025 20:54:25 @kizu great! Simultaneously closely watching the accessibility related discussion in there though. Hoping that this is taken seriously. |
Föderation EN Di 01.04.2025 21:32:31 @nachtfunke I am taking it seriously, but I don't see how this can be unblocked aside from changing the SC :\ It feels like a pointless technicality that benefits no one and does not bring any value for any real users. Like, all the other alternatives (using viewport units, existing fit-to-text implementations with JS, images) are worse in every regard. |