Today's question: Which parts of CSS are so important that even a short book aimed at JavaScripters and other programmers should explain them? Example: I'm going to treat selectors, but not gradients. The first is fundamental, the second is not. What's your fundamental list?
-
-
Replying to @ppk
I'd actually switch this and explain only single-level selectors (no hierarchy), but focus on the important layout modes (grid, flex) then treat the rest as an "as needed" entry point with a focus on a11y
1 reply 0 retweets 6 likes
Replying to @slightlylate @ppk
Selectors are hugely distracting because they suggest that they're a solution to a large DOM...which they aren't. I'd only introduce descendant selectors *after* Shadow DOM so that folks grok that if your DOM gets big, you should encapsulate to reduce addressable scope
11:25 AM - 8 Apr 2019
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.