Matt Smith (@AllThingsSmitty) header
Matt Smith (@AllThingsSmitty) profile picture

Helping build a better web. #CSS #JavaScript #FrontEnd #WebDev

Portland, ME
Joined January 2011
Photo by Matt Smith (@AllThingsSmitty)Photo by Matt Smith (@AllThingsSmitty)Photo by Matt Smith (@AllThingsSmitty)Photo by Matt Smith (@AllThingsSmitty)Photo by Matt Smith (@AllThingsSmitty)Photo by Matt Smith (@AllThingsSmitty)Photo by Matt Smith (@AllThingsSmitty)Photo by Matt Smith (@AllThingsSmitty)Photo by Matt Smith (@AllThingsSmitty)Photo by Matt Smith (@AllThingsSmitty)
Let’s take a look at the 2nd :has() demo. We can make a grid for our content. Allow most cards to automatically fill a 1x1 area. And then use :has() to tell any card that has an image to instead take up a 2x2 area. article:has(img) { grid-column: span 2; grid-row: span 2; }
12
82
19
703
Matt Smith retweeted
CSS is becoming 🔥 I had to write so much JavaScript for snappy scrollbars and now it's just two lines of code...
47
658
43
4,240
CSS scroll-snap is a classic CSS property; small, innocent looking API with huge potential. @argyleink showed us a whole bag of snappy tricks at #cssday Full talk: youtu.be/34zcWFLCDIc Slides: oh-snap.netlify.app/
6
74
8
403
Matt Smith retweeted
👀 You may have heard of container queries, but have you heard of ✨ style queries?✨ 🎨 Style queries (also a part of the contain-level-3 spec) allow you to query for styles, not just sizes ✍🏼 I looked at some use cases & wrote up some early thoughts: una.im/style-queries/
6
67
8
282
my toxic trait is replacing flaky JS solutions with reliable CSS ones
12
6
3
332
#a11y reminder: These are not valid: <div aria-label="hello"> <span aria-label="hi"> div and span are generic containers that can only be labelled when they are assigned a meaningful ARIA role. aria-label is prohibited on these elements. See: rawgit.com/w3c/aria/master/#…
6
65
2
330
Blogged: "Why I don't miss React: a story about using the platform". Some notes on my experience since leaving a React focused role to work on DevTools and how surprisingly pleasant it's been. jackfranklin.co.uk/blog/work…
11
59
10
294
teach a label element to give itself a nice layout upgrade when it's wrapping a checkbox we :has()'nt seen nothing yet with :has()
10
85
7
736
CSS co-designer here. !important was added for one reason only: laws in the US that require certain text to be in a given font-size. !important stops the cascade from changing it. Anything else is probably misuse, and a sign you may not understand the cascade properly.
102
554
210
2,897
Modern CSS can make a lot of impossible things possible, but it also simplifies some things as well. One use case that I have on pretty much every project these days is setting up a container/wrapper width with min() and margin-inline.
32
355
27
2,442
Matt Smith retweeted
CSS Cascade layers are coming to Chromium 99 (currently in Canary) & Firefox 97 (currently in Nightly) So what are they & how do you use them? 👀 I made a quick video to show you: youtu.be/ilrPpSQJb3U
21
125
30
646
1
3
14
Matt Smith retweeted
If you missed my talk yesterday, check out the article! web.dev/new-responsive/
2
34
2
167
Matt Smith retweeted
🔥 CSS Features to start learning, as I expect them to ship in all browsers in 2022: 1. Container Queries 2. Cascade Layers 3. Color Functions 4. Viewport Units 5. :has() 6. Overscroll Behaviour 7. Subgrid 8. Accent Color 9. Media Query Ranges
12
294
33
1,435
Input focus combined with validation 👀 lab.hakim.se/focussss/
63
466
54
5,010
🔖 A Complete Guide To Accessible Front-End Components. – :focus styles – autocomplete – content sliders – checkboxes – data charts – dark mode – date pickers – navigation – modals – radio buttons – skip links – SVGs – tabs – tables – tooltips smashingmagazine.com/2021/03…
8
402
47
1,407
FRIENDS!✨ I'm excited to announce I'm working on an #a11y video course!🥳 🔜 Practical Accessibility: a get-right-down-to-it course for designers & developers who want to start creating more accessible digital products today 💌 Sign Up for updates 👉practical-accessibility.toda…
209
800
166
4,433
Matt Smith retweeted
Building a Settings Component css-tricks.com/building-a-se…
2
46
219
Matt Smith retweeted
Serious developers need serious keyboards. I'm so proud to be the first user of The Key.
The reviews are in. The Key is flawless. #GreatArtistsCopy #TheKey
131
1,235
138
9,663
CSS Auditing Tools — just a few super-duper-useful tools we’ve found useful during refactoring of SmashingMag’s CSS. smashingmagazine.com/2021/03…
2
31
1
128