Raindrop.io Bookmarks 02/25/2022
著
- A Complete Guide to CSS Cascade Layers | CSS-Tricks - CSS-Tricks
"This is your complete guide to CSS cascade layers, a CSS feature that allows us to define explicit contained layers of specificity, so that we have full control over which styles take priority in a project without relying on specificity hacks or !important."
- Support for Marking Radio Buttons Required, Invalid -- Adrian Roselli
"Part of the challenge is that the required attribute is not valid on a <fieldset> (which maps to the group role). This is a rare case where ARIA is the only technically valid approach, specifically the radiogroup role with aria-required."
- Google page experience update for desktop now rolling out
"Google has begun rolling out the page experience update for desktop web pages and desktop search, a Google spokesperson has confirmed with Search Engine Land. This update will slowly roll out over the next several weeks and be completed by the end of March 2022."
- Minimizing Google Fonts by Only Loading it for Certain Characters -- Amit Merchant -- A blog on PHP, JavaScript, and more
"you can append an additional query parameter text to the font request URL. This allows Google to return a font file that's optimized for your request. In some cases, this can reduce the size of the font file by up to 90%."
- The Harsh Reality for JS Developers: If You Don't Study The Fundamentals You Will Be Just Another "Coder" - DEV Community
"your value as a developer is not in your knowledge. As technology changes, the way we implement things will change. Libraries will change, frameworks will change, even languages will change. If you focus on those things, you will be trapped in the "framework hamster wheel"."
- Preventing smooth scrolling with JavaScript | Kilian Valkhof
"With behavior: 'instant' we can achieve what we want: disable smooth scrolling for a specific scroll, even if scroll-behavior on the scrolling element has been set to smooth."
- WCAG 2.2 Update
"Overall, I like the fact that the WCAG 2.2 introduces new guidelines to enhance the focus of on-screen elements to support better visual perception and keyboard operability for low vision users."