Raindrop.io Bookmarks 08/01/2022
著
- Adactio: Journal--Control
"The web is filled with uncertainties--browsers, devices, networks. You can't possibly account for all of the possible variations. On the web, you have to relinquish some control."
- Two levels of customising
| hidde.blog "Browsers and assistive technologies have certain expectations about what HTML is and does. If we divert from those expectations, we risk causing real problems for end users, which could include controls becoming unusable."
- Style scoping versus shadow DOM: which is fastest? | Read the Tea Leaves
"My new benchmark largely confirmed my previous research, and shadow DOM comes out as the most consistently performant option. Class-based style scoping slightly beats shadow DOM in some scenarios, but in others it's much less performant. Firefox, thanks to its multi-threaded style engine, is much faster than Chrome or Safari."
- Reducing The Need For Pseudo-Elements -- Smashing Magazine
"we can now leave pseudo-elements behind in some scenarios, thanks to newer CSS properties."
- On Using Custom Properties - Bram.us
"Because the contents of Custom Properties are not parsed until they are used (using var()), you can store anything in them. That means you could abuse them to create faux Single-line Comments in CSS"
- Subcomponents. Relinquish control, offer parts, and... | by Nathan Curtis | EightShapes | Jul, 2022 | Medium
"This article explores the conundrum of configuration to bridge to what some avoid as a viable alternative: offer composable subcomponents, too. It details how to divide components into reusable chunks and flexible containers, dispersing an API across parts as you go."