Matt Smith

@AllThingsSmitty

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

64 Following2.2K Followers8K Posts
  1. Matt Smith@AllThingsSmitty
    Matt Smith
    RT @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; }
    0820
  2. Matt Smith@AllThingsSmitty
    Matt Smith
    RT @mgechev: CSS is becoming 🔥 I had to write so much JavaScript for snappy scrollbars and now it's just two lines of code...
    06640
  3. Matt Smith@AllThingsSmitty
    Matt Smith
    RT @CSSDayConf: 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: Slides:
    0750
  4. Matt Smith@AllThingsSmitty
    Matt Smith
    RT @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:
    0670
  5. Matt Smith@AllThingsSmitty
    Taking a peek a someone’s #CSS and now I think I’ve been activated as the Winter Solider. 😳 #WebDev
    Download
    004
  6. Matt Smith@AllThingsSmitty
    Matt Smith
    RT @rleggos: my toxic trait is replacing flaky JS solutions with reliable CSS ones
    Download
    060
  7. Matt Smith@AllThingsSmitty
    Matt Smith
    RT @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:
    0650
  8. Matt Smith@AllThingsSmitty
    Matt Smith
    RT @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.
    0590
  9. Matt Smith@AllThingsSmitty
    Matt Smith
    RT @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()
    0850
  10. Matt Smith@AllThingsSmitty
    Matt Smith
    RT @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.
    05540
  11. Matt Smith@AllThingsSmitty
    Matt Smith
    RT @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.
    03550
  12. Matt Smith@AllThingsSmitty
    Matt Smith
    RT @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:
    01250
  13. 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.
    100
  14. Matt Smith@AllThingsSmitty
    Matt Smith
    RT @Una: If you missed my talk yesterday, check out the article!
    0340
  15. Matt Smith@AllThingsSmitty
    Matt Smith
    RT @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
    02930
  16. Matt Smith@AllThingsSmitty
    When you think about it, all of the reasons Corey Hart lists for wearing sunglasses at night seem pretty legit.
    003
  17. Matt Smith@AllThingsSmitty
    Matt Smith
    RT @smashingmag: 🔖 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
    04030
  18. Show more posts