Hello from what feels like a rainforest down in Louisiana. We've had what feels like weeks now of not just rain, but strong rain and storms, and the hurricane season has only officially just begun. Thankfully we've got a whole home generator but I'm not looking forward to this year's storm season. (One of many reasons my wife and I are moving as soon as the youngest finishes school.) Here are some links to help add a bit of sunshine to me, and hopefully your, day.
The HTML List Padding Problem
Here's a problem I didn't know actually existed, but as soon as I started reading, immediately realized it could be an issue. Lists (<ul>
and <li>
) include a bit of inherent padding when rendering the markers in front of each list item. For numeric lists (<ol>
), this padding ends up not being big enough for very long lists. In this post, Making room for long list markers with subgrid, Noah Liebman describes how to use CSS subgrid to solve it. Now, you may say that having a big list is a problem itself, but don't forget HTML lists have a start
attribute that can change the default starting number. You may use pagination to break up a large list but still want the numbers to be correct, and Noah's blog post could help out with potential layout issues.
ECMAScript 2024 Proposal - Promise.withResolvers()
Dr. Axel Rauschmayer is probably the most knowledgeable JavaScript expert on the planet, and even better, is incredibly willing to help others. (I've reached out to him many times over the years and he's always helped me.) In one of his latest posts, he digs into the proposal for Promise.withResolves(), which could provide more power to the already really useful Promise feature. I've read his post twice now, and I think I get it, but honestly will probably need to write up my own demo to wrap my head around it.
State of HTML 2023
Over the past few months, a survey was filled out by over twenty thousand developers focused on HTML. While there's been a State of JavaScript and State of CSS for a while now, this was the first developer survey focused on HTML. The State of HTML survey covers all aspects of HTML. While there's a lot to digest here, it could be a good way for technical leaders to get a barometer on how folks feel about and how much they are using various aspects of the web platform. I found the web components section very interesting.
And last but not least...
Another music treat for you, this one from Men I Trust, and I believe I've got Brian to thank again for this track.