Raindrop.io Bookmarks 03/06/2023
著
- On Container Queries, Responsive Images, and JPEG-XL - Cloud Four
"we know that the person authoring a component that uses a container query isn't likely to be the same person using the component in the page. Only the person putting the component in a page can possibly know the viewport size."
- Getting Started with Style Queries - Chrome Developers
"It's generally a best practice to give your containers names to make it clear what you are querying and unlock the ability to access those containers more easily."
- Writing Javascript without a build system
"For me, a complicated Javascript build system just doesn't seem worth it for small 500-line projects - it means giving up being able to easily update the project in the future in exchange for some pretty marginal benefits."
- Balanced text wrapping is coming to CSS -- Amit Merchant -- A blog on PHP, JavaScript, and more
"More specifically, when the text-wrap property is set to balance, the browser will try to wrap the text in a way that the last line of an element is as long as the first line."
- Everything You Need to Know About the Gap After the List Marker | CSS-Tricks - CSS-Tricks
"Until ::marker adds support for more properties, web developers will often have no choice but to hide the marker and emulate it with a ::before pseudo-element."
- If you're going to do a job, do it properly - tempertemper
"Designing and building without considering accessibility is a job part-done and, by that reasoning, there are way too many half made websites and apps out there."