Matt Smith

8K posts

Matt Smith banner
Matt Smith

Matt Smith

@AllThingsSmitty

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

Portland, ME 가입일 Ocak 2011
64 팔로잉2.2K 팔로워
Matt Smith 리트윗함
Jen Simmons
Jen Simmons@jensimmons·
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; }
Jen Simmons tweet media
English
12
84
708
0
Matt Smith 리트윗함
Minko Gechev
Minko Gechev@mgechev·
CSS is becoming 🔥 I had to write so much JavaScript for snappy scrollbars and now it's just two lines of code...
English
48
676
4.3K
0
Matt Smith 리트윗함
Una 🇺🇦
Una 🇺🇦@Una·
👀 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/
English
6
68
288
0
Matt Smith
Matt Smith@AllThingsSmitty·
Taking a peek a someone’s #CSS and now I think I’ve been activated as the Winter Solider. 😳 #WebDev
Matt Smith tweet media
English
0
0
4
0
Matt Smith 리트윗함
Rachel Leggett
Rachel Leggett@rleggos·
my toxic trait is replacing flaky JS solutions with reliable CSS ones
Rachel Leggett tweet media
English
12
7
341
0
Matt Smith 리트윗함
Sara Soueidan
Sara Soueidan@SaraSoueidan·
#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: #generic" target="_blank" rel="nofollow noopener">rawgit.com/w3c/aria/maste…
English
6
66
334
0
Matt Smith 리트윗함
Jack Franklin
Jack Franklin@Jack_Franklin·
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/working-w…
English
11
59
297
0
Matt Smith 리트윗함
Adam Argyle
Adam Argyle@argyleink·
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()
Adam Argyle tweet media
English
10
86
743
0
Matt Smith 리트윗함
Steven Pemberton @stevenpemberton@mastodon.social
Steven Pemberton @[email protected]@stevenpemberton·
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.
English
104
570
2.9K
0
Matt Smith 리트윗함
Kevin Powell
Kevin Powell@KevinJPowell·
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.
Kevin Powell tweet media
English
32
362
2.5K
0
Matt Smith 리트윗함
Una 🇺🇦
Una 🇺🇦@Una·
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
YouTube video
YouTube
Una 🇺🇦 tweet media
English
23
130
656
0
Matt Smith
Matt Smith@AllThingsSmitty·
Something that I’ve been curious about: If you use a pot to boil water and that’s all you use it for, do you wash the pot when you’re done? 🤔 Okay, fight.
English
1
0
0
0
Matt Smith 리트윗함
Bramus
Bramus@bramus·
🔥 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
English
12
301
1.5K
0
Matt Smith
Matt Smith@AllThingsSmitty·
When you think about it, all of the reasons Corey Hart lists for wearing sunglasses at night seem pretty legit.
English
0
0
3
0
Bramus
Bramus@bramus·
@michaelketzer @JoshWComeau 💡 Best is to wrap that in a @​supports(-webkit-touch-callout: none) feature query so that it only targets Safari on iOS. Reason: in some cases it can mess up things in Chromium.
English
1
0
15
0
Matt Smith
Matt Smith@AllThingsSmitty·
her: “eat a bag of dicks” 🙄
English
0
0
3
0