This week, Robbie and Adam talk with Kevin Powell about the quirks and complexities of CSS, from Tailwind and Flexbox to AI’s failure to write decent styles. While sipping some Crown Royal Black, they dig into weird web history, emerging CSS specs, toast milestones, and the beauty of clean code.
In this episode:
(00:00) - Intro
(02:51) - Whiskey rating & review: Crown Royal Black
(07:54) - Hot Take: Is CSS a programming language?
(09:54) - Hot Take: Was CSS-in-JS a mistake?
(10:53) - Hot Take: Grid vs Flexbox
(12:31) - Hot Take: Tailwind vs vanilla CSS?
(16:05) - Kevin's favorite place to write CSS
(17:45) - What CSS feature scares Kevin the most?
(19:20) - Kevin's first CSS pre-processor
(22:40) - CSS features that are taking too long to ship
Enjoying the podcast and want us to make more? Help support us by picking up some of our fresh merch at https://whiskey.fund.
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Welcome to Syntax! Welcome to a brand new episode of the Front End Happy Hour podcast. Welcome to this week's JS party. Live from ShipShape Studios, this is Whiskey Web and Whatnot, with your hosts, Robbie the Wagner and me, Charles William Carpenter III. That's right, Charles. We drink whiskey and talk about web development. I mean, it's all in the name. It's not that deep. This is Whiskey Web and Whatnot.
Do not adjust your set. What's up, everybody? Robbie the Wagner here, wanting to invite you to come hang out with us as we record some live podcasts at All Things Open. It's October 12th to 14th in Raleigh, North Carolina. I know that's coming up, so hopefully you can still make it there. We'd love to see you there. It's a cool conference, has thousands of attendees, over 150 amazing speakers like Shruti Kapoor, Jason Langsdorf, Angie Jones, Taylor Dessen and Bree Hall, just to name a few. Tons of huge sponsors, a bunch of big companies you've probably heard of,
all giving away cool swag. Everyone gave away Lego sets last year. Lots of cool stuff you can get and you can network if you need a job or just want to hang out. It's a cool city, has a lot of good barbecue, a bow and beer place, and I got fried okra for breakfast once even. Like, food's good, vibe is good. Definitely recommend you check it out. If you'd like to come join us, go to whiskey.fm slash contact and contact us and we'll give you some free tickets we got 10 free tickets you can also hit us up on social media or wherever and um yeah we hope to see you there hey what's up everybody
welcome to whiskey web and whatnot with your hosts robbie the wagner and adam thomas argyle the nerd yeah we found one yeah that's kind of like charles is uh but you know it's a little more nerdy i'm Not a third, but well done. On the show today, we have Kevin Powell, Twitcher, tuber, teacher, hacker, speaker, writer, instructor, and influencer. Most known for his YouTube channel, host of the General Musings podcast, instructor on Front End Masters, a front-end friend making his corner of the internet
just a little bit more awesome and helping people fall in love with CSS. Kevin Powell, everyone. Welcome to the Whiskey Web and Whatnot Show. Wow, thank you so much. I'm blown away a little bit by that. Yeah, thank you. i feel have a stack of compliments it's really fun to go get yeah i feel like every time i have a guest on now i need to step up my game because i definitely that that was awesome i like doing it it's from css day you were there i think when i first started doing these yeah they're just so fun yeah it's much more fun than i would just be like hey it's you
what do you do tell the people and make it short because i would like this whiskey now yeah speaking of which let's jump into it i've got crown royal black in a little baggie as it always is a little baggie these are all over my dad's house because his favorite is crown royal and he has like every flavor and just keeps all the bags and i'm like what are you going to use those for i don't know but yeah so this is 90 proof it's not age stated and they don't really
tell you what it's made of other than it's high rye canadian whiskey and it's supposedly matured in like darker charred barrels for longer or something which makes it darker which is why they call it black i guess and i should have taken this plastic off wait i can just twist it can i it just twists yeah they really don't put much information on the bottom right but they did have to say something they're like because you're like all right why is it why is it the black version and they were like we made it a little spicier it's darker because we put it in the thing it's
just so vague the sentence is just so succinct it's pretty funny okay lch value can someone tell me oh yeah oh it's definitely got it's got a higher chroma but also less lightness you can tell because it's uh down there towards the darker hue or it's just kind of like darker in nature ooh opacity is even less it's it's like it's crown black maybe it is a little darker oh the smell is sweet apples i was eating blackberries earlier maybe that's on my fingers
too it smells like definitely bright fruit yeah of some kind oh bright fruit not a dark fruit not a dark cherry but a light cherry i'm not not really cherry i'm just saying like uh like citrusy, appley. I don't know. Not like a blackberry pie per se. Ooh, there's some of the blendedness. The initial punch was sweet, but it finished really spicy. Ooh. Yeah. Wow. This is much different than normal crown Royal actually has some whiskey flavor, which the crown Royal typically doesn't.
It's just super sweet. It's, it's yummy, but it's like, it doesn't really taste like whiskey. Interesting. This is not bad. This is enhanced. This is better. What am I going to do with this bag? I can't let my kids have it because I just trauma from when I was in high school and all the different paraphernalia people had in their crown bags. It's like all that was good for. I just remember they would stink so bad and be like, hey, what's in that bag? Dang, bro. Jeez, my goodness. That is a gnarly bag. Too naive and more than to know what's going on. I'm sure it did. I just didn't know.
Oh, I forgot to toast. Oh, I wrote a toast. Okay. So before we take our first sip, everyone, we toast at the precipice of a momentous occasion for our dear friend, Kevin. His channel, a testament to his wit and wisdom, is on the verge of a 1 million subscribers and 100 million video view. May your creative spirit continue to burn bright, Kevin, and may your journey to 1 million subscribers be but the first of many such triumphs. we also toast me as i embark on a new journey at shopify i toast for one a milestone reached
and another a path newly forged cheers my friends you're here that's fun that was really cool that is fun once again in case now should we also forget a bunch of other things in the notes and like skip to something else real quick or no now's now's when we rate it right so that we can get past the rating to get into i was gonna actually forget the rating oh yeah okay so on this podcast very stringent rating system
zero to eight tentacles zero being the worst eight being the best four or five or somewhere in there being middle of the road yeah if you hate it wouldn't even clean your toilet with it zero if you would want to not drink anything else forever it's an eight what do you think adam this is in the this is a good sixes maybe a high six maybe like a six and three quarters maybe even a seven like it's very drinkable it has a good burn so we're at a good 45 it's got a good whiskey flavor like you're saying but the initial hit is kind of sweet it's quite nice so oh i need to say
a specific number i'm gonna let's do seven i think this is good i would bring i would whip this out for friends and be like it's a crown black night y'all nice kevin what do you think yeah i was pleasantly surprised by it. I'm not a huge fan of the regular one. Like you said, it's too sweet for me. This one has a little bit more to it, but it's really drinkable. So yeah, I was thinking six. Adam might be swaying me up to a seven. Six and a half? Can I go with half grades or do you need? You can. Yeah, I'd say like a six and a half for sure. Yeah, I really enjoyed it.
I think it's very drinkable. Yeah, it's a good one. Nice. Yeah, I'm a little conflicted. I feel like in terms of crown royal i would give it a seven in terms of all whiskey i think six may be more appropriate so i'm gonna say six nice that's a good comparison yeah i was comparing it to previous ones it's good to put it in the grand scheme yeah yeah all right should we do a few hot takes real quick yeah hot take him give it to all right is css a programming language oh geez yeah i mean i have
to say yes, because I think like, my community would abandon me if I didn't. But at the same time, like it's not a hill I would die on. Call it what you want to call it. And I enjoy it. I'm going to keep writing it whether you want to get keep on that or not. If that's the hill you want to die on, then go for it. I have other things I'll stress about more. But for me, I think it is and I think there's more and more arguments every day with all the new things and all the new features that we have with it these days, that it's hard to sort of say it's not in a lot of ways. yeah for sure i usually ask people if html is a programming language and i usually get
no but then i follow up with is css one and they're like wait a minute maybe because it does have a lot of math and like ken wheeler's like hey that is definitely a programming language i've seen what the kids do with that these days like yeah i tend to agree i think you can do a lot it's got a ken endorsement i love it yeah it's one of those things too now where like at one point you could say like i feel like most of the people that are like no it's not it's just a the clarity of language and I'm like all you're doing is the really simple stuff with it where like yeah you're setting a background color like that's not very fancy like of course but I just
think with everything you can do these days and like there's all the CSS only stuff that's out there but even then like even if you just go to doing like background blue like you did something pretty cool like I've had students like that was my favorite thing when I was teaching in the classroom first day of like CSS and they'd change the color of the text or a background color and they're so excited and they're like i did that on the computer with code and i'm like yeah that's and i like that you know yeah you're programming go for it like this is awesome it's the gateway drug and everything else you know for people that don't come from the computer science backgrounds
i think yeah for sure good answer good answer all right adam you want to do one you want me to keep going yeah oh there's a couple fun ones in here i mean these let's do the hot takes yeah so was css and js a mistake i think so but it wasn't something i've dealt with like i wouldn't go into it as like that's the approach i would take to doing it and most of my experience with it was when i was doing some consulting work and it'd be like these complete disasters that were people were like asking me to come in and fix where it was just like they'd leaned into it so hard that they're
just like it was just every single component would just have like redeclared everything because it was like oh here's my figma files telling me i need these things on it so i'm going to clear the font family and the font size and the color and all this and you're just like it's a tool that can be used and can be effective but it can also lead to lots of misuse and i guess it served a bit of a purpose for a while but i don't i don't know it wasn't it's not my cup of tea let's say that kind of sounds like you're saying it was a mistake and now it's dead that's what i heard yeah
yeah he's just too nice of a guy he won't say that i love it all right you can only pick one kevin grid or flexbox which one it should be an easy answer for grid in a way because i use it so much more than flexbox but there's a few things with flexbox that i wouldn't want to lose and i'm like i can hack the other stuff i do to try and get like to get close enough to the grid things I do so I think if it was like for everybody out there and I was deciding that like everybody could only use one I'd probably choose grid because I think you can just simplify enough things and like
just deal with the result otherwise I think if it's people that really know what they're doing you're probably fine if you just have flexbox which it feels bad because I'm like the biggest stand for grid and get very mad at people that are like oh you don't need that for you just use flexbox but yeah i think i could manage better without grid which feels kind of weird to say i think yeah i think i feel the same way we had flex for so long i feel like that like we got used to working without grid and so while i do enjoy using it when it has a you know clear use
case i i do reach for flex sometimes like i don't know i don't think you're ever going to get rid of it yeah i think you know we need it still they both do some stuff really well i find again i use grid more than i use flex on like a regular base or like if i was to count the declarations i'm sure you know css stats whatever i would have a lot more grid declarations and flexbox on a regular project but just there's like you can muck around with flexbox and do something you can do it with grid too though i don't know i think uh now i'm not sure i'm talking myself around the other way you can do anything with anything if you try hard enough yeah just use javascript you don't
have to pick either. Tailwind or Vanilla CSS? But for me, that's an easy one. Vanilla CSS all day long. Yeah. Okay. Yeah. I wasn't going to say was Tailwind a mistake. I wanted to rephrase it to the same thing that we always ask. My token response for people asking me about Tailwind is that I get why people like it, but it's not for me. Again, I see what it's solving and why people like it. The big issue I have is a lot of people that I'm helping are beginners and they start doing all this stuff with Tailwind that don't really know it.
Trying to debug beginner CSS can be hard enough when they don't really know what they're doing. And then when it's all just this wall of classes, I'm just like, oh my God, it can be a good tool for people who know what they're doing with CSS already. I get people like that it has like, you know, you're not worried about is it 12 pixels or 13 or 14, you just have your token sort of in a way that are done. So like, yeah, I can see how that can be useful. But yeah, it's not my cup of tea. yeah I hadn't really considered the beginner like I've always been thinking about you know us as developers what do we choose but then it's like if you're learning that could be very confusing
I agree with that because yeah I think when I had a decent CSS foundation and then I jump into Tailwind it actually increased my CSS knowledge because their docs are very good at teaching you CSS actually which is kind of funny yeah I think it would be very confusing if you're like oh you just throw classes on stuff to style it and you have no idea what the css is behind the scenes that would be hard to grok yeah definitely and it's and i think like now it's they're starting to move more towards css in some ways but i'm curious how they're going to handle some of the
newer features that are coming as well because there's some stuff that i'm like oh you can't really do that with a class i don't know what you know i'll be curious to see because there's smart people working on it so i'm sure they'll come up with something yeah i'm sure they'll make it work it's funny they both vanilla and tailwind have a copy paste issue if you're a beginner yeah you know like i like the way that looks i want that over here so you go copy paste it but with tailwind there's one added kind of difficulty in the debugging which is you gotta so you find the element right now the element instead of listing all those styles together one little block for
you to easily go read you need to know that you can twirl open the class the cls is what it's got It doesn't even say the word class or give you a hint that this is what the class. So you got to open up the class. And then once that's open, let's hope you don't have a whole bunch of classes on there. Because if you do, then you're just looking at a big flat list and you got to know what empty and all these different things mean. So now you're in there toggling. Is this how most people debug Tailwind? Is they go undo a bunch of classes and then slowly add them back in? Or do you try to guess at the subtractive debugging strategy?
Like what's the way to, if you're new, how do you uncover what happened? It depends, as in all things. But it's actually tricky because if your setup is tree shaking out the unused classes and you want to try another class like in your dev tools, it's like, nope. So yeah, it all depends on your setup. It's not always straightforward. happens with my custom properties too when i use the plugin i wrote for the post css jit props which will only put in the css properties that you used it's the same deal you're like oh i don't like
that blue let me go try on blue number four instead of blue number three and it's like we don't know what blue four is and i'm like what oh yeah i have to go back i gotta do the full round trip just to add a blue color to my style sheet that sucks yeah complaining about these really nice tools we have is uh funny i want to know where's your favorite place to write css do you want type ahead do you want pop-ups and things to assist you do you want to see values or do you just want like a text editor you want to be in code pen you got an ide where is kevin
powell in his happy place just smashing css out just like i'm all over the place i do go if i'm thinking of something codepen to be the first place i go to i don't like autocomplete stuff in general though every now and then you're happy it's there when you're like you're forgetting a value name and you're like you want that list to like size is it uh yeah there's all these weird ones now yeah yeah i have like five different profiles and in vs code because i have like my recording one and then a clean recording one for shorts and then another recording one for other
things i'm doing you know is formatting on or off and it's just such a mess for me and in terms of like is autocomplete on and off and is there the pop-ups that are coming here and there and then like so i'm just yeah i don't know i'm a bit of a mess but i'm a bit of a purist i think for me i like having it as clean as possible with like if i do need a little bit of help i'd appreciate it sometimes from like a little list i can choose from but i have the advantage of living in that all the time so i generally know what i want and even i do get asked in my videos a lot why i don't
even use emmet with css which i don't and i'm like i use it for html because that's long to write and i'm just like i did the same thing i never bothered and like you know i guess and i'm like it's not that long to write like there's not that many most declarations aren't that long so yeah and i found i've tried a few like of the more like ai autocomplete stuff that's trying to read your mind and i just get frustrated with it so i i don't i just go old school nice uh what's the scariest css feature like if i came up to you and you didn't see me and i was behind you and i
just whispered something over your shoulder like a css property what would send goosebumps just down your back that's a good question it'd be like any of the new stuff that's kind of weird that i don't know because people always expect me to know everything with it and then like anytime i'll be doing a live stream and i'm like okay i'm going to try something like a new thing i haven't really done before and if it's like usually it's not that hard but like let's get into view transitions and I'm just like, Oh my god, like, this is I opened a can of worms on this one. This isn't what I was expecting when I first go into it.
But then, yeah, I'm trying to think you transitions still sort of scare me a little bit in that I always feel like I'm missing something or I was doing something the other day. And then I found out about I don't remember what it's the gated ones, I think are guarded, guarded view transitions. So you can have like, if you're running one, it won't run all of them on your page, which is the default. And then I'm like, okay, that solves the problem that I came up with a really hacky solution for i'm glad that's there but it's just like there's always another layer and i find you know it's good to learn it's fun with that but it's intimidating sometimes too and you're just like i'm trying to learn this and it just seems like a never-ending
hole i can't imagine people that are not able to spend hours building silly demos yeah view transitions is a hole that you can fall into that is for sure it starts out so easy you're like oh i gave you a name and then i changed the dom and you morphed i am awesome and then making the like a filter and they just like oh i use my filter and the pieces just slide around i didn't have that was it wow yeah which was your first css pre-processor uh sass yeah i use sass a lot i i
never sass or scss oh oh so i definitely was the sass to start with like oh this is cool it's clean it's awesome and i think the only reason i stopped was because i was recording videos i actually at the time I was teaching in the classroom too and the amount of times I'd be doing demos like in front of my class and just forget a semicolon or not put like a curly brace and then I was like okay I'm not sure this is working for me just because I'm building like the wrong muscle memory and then the same I would do videos using it at one point I was like if I'm recording a video
it makes more sense to use scss just because it's more accessible for people who don't know it and I was like okay I'm gonna go down that route instead and then I sort of just got used to it and never went back but i still i have a fun spot for the clean syntax of sass for sure did it not have curly braces sass did not oh gross no curlies no semicolons but it did have colons and then you had stylus which had none of that junk it had no curlies no colons no semicolons so i have to hit
the space bar and like format stuff like there's no auto you can hit tab yeah you could tab in or space it was a well i just wasn't like i can't just type a gross string and go out of format yeah like yeah like you can in scss yeah yeah i was just saying i definitely lean on that more nowadays or i just sort of pound the keys and then format okay there that looks nicer yeah yeah i never space anything out did typescript learn from sass you know like stay close to the language that's how you gain adoption look at all the other failed ones that tried to superset and
CoffeeScript was more like Sass and now you have TypeScript which is more like Sass oh wait that's confusing to anyone that doesn't know what I'm talking about but it's kind of interesting a little comparison I think CoffeeScript really influenced all the modern JavaScript stuff they took like a lot of the nice things and then none of the crap that no one wanted and just put it right in JavaScript so thank you CoffeeScript I still miss the two arrow functions where you had the the thick arrow and the thin arrow i thought that was cool and es6 only took one they took the thin
arrow what was what was the the other one one was just a anonymous function and then the other one bound this to your function okay yeah so we have that but we don't have one that doesn't bind this yes we can't arrow function just a so we have to type function before we do the the thin arrow i I know, it's garbage. I'm going to pop one because this was because I was listening to your podcast with you and Sarah Suedan, which was a great episode, by the way. Also, Sarah, so cool. She's amazing.
Sarah, you're so cool. I doubt you're listening to the Whiskey Bro Show, but you know what? You're super cool. And I totally respect everything you do. Okay, so y'all were talking about some CSS features seem to ship really fast. And Sarah's like, I try to keep a thumb on the beat. So do you. And then you're all like, it's here. we don't know how long it was in an experimental flag you know like i can't keep a track of every flag and think about the dates and all that stuff and so you're all like sometimes things ship faster than maybe you were ready for so my question to you is which css features do you wish would just
hurry the hell up because they're taking way too long well i guess they're sort of here with like the state querying with like the stuck and the stuff you and you were involved in there that's super useful and i could use that and i haven't dove too deep into it but definitely that's one where i've been like yeah we need that another one is and i don't remember the name of it i don't even know how css specific related is but i just before coming on i saw a post on blue sky from yuna about it it's like the the tooltip thing now where you can like i don't know what it's called
you can like connect oh the tether yes that's it yeah that looks pretty cool i'm trying to think what else i don't know there's so many different than anchor it's the dingle on the anchor well it's the dingle on the kite so explain in better words please it's it's anchor's always been really confusing because you're like when you tell someone it's an anchor feature but then you're like oh it takes two pieces to for this feature to work something
is anchoring to somewhere else, the word anchor starts to get overloaded really fast. And so what did we call it? It was the, we tried to create good verbiage. It was the, so there's the anchor, which is like the thing that doesn't move. And then the thing that does want to attach to it, the positioned element. So you have an anchor that stays stationary and a positioned element that somehow moves and attaches itself to that item. So that positioned element commonly would like to have a little dingle that points to the thing it's anchored to so that it's
not just free floating yeah like the little down arrow thing and so before the tether dingle was in css that was actually impossible you didn't know which one of your try options because a an anchored element can move around based on screen real estate so maybe it would be under or over based on what's there or on the left side of the right side and you didn't know which one it was so you couldn't put your dingle in the right spot i'm really looking forward to having a dingle pseudo class now it's gonna be a good dingleberry joke somewhere in there yeah it's
like oh there you go just need to use the tether make it a berry there's your okay that's good that's a good demo we could call it an arrow that's what uh most tooltips would call it you could or the swoopy you know you get the little swoopy because it's a speech bubble swoopy yeah So it doesn't tell you, I haven't actually used the anchor positioning stuff at all. I just know it exists. It doesn't tell you which one it's on when it's there. Like if it flips, it doesn't tell you that I have flipped. Ooh, that sucks. Yeah. It's a magic. So you declared, Hey, pick top or bottom.
And then it goes, I picked one. And you're like, yeah, how do I query or know which one it is? And they're like, I don't know. Cool. This episode is sponsored by floating Dom or floating UI or whatever it is. The one that does the tool tips and tells you which side it's on. Seriously. And floating UI even unfortunately has some superpowers that anchor positioning can't do. So if you're looking for like a straight trade, it's not equivalent, which is frustrating. Cool. I'm glad I didn't try that experiment then. So we use it in Shepard and we have to know what side it's on.
So wait, Kevin, I haven't seen it. And last I saw tether was a pseudo element, but how does it know which corner? Did they come up with a state query for, so it was going to be a container query, just like a scroll container query that can scroll state. is it anchor state asking for which side it's attached i wish i could tell you i this is one of those ones where i'm like that's cool i'm gonna keep my eye on it but i didn't dive into how it's working yet yeah yeah i'm trying to think of the other things that are like that but all the margin trim text box trim stuff i've been waiting for that for like seven years i think
probably i remember like a super early blog post on medium a long time ago on one of those that now i'm like it's finally happening yeah yeah this is exactly yeah and i'm like it's finally happening Yeah, which is going to be awesome. It definitely one of those things is going to be used a lot that people don't realize that it's just going to become one of those features that they're throwing in all the time to still cut those extra margins off that they don't need. This just in, Whiskey.fund is now open for all your merch needs. That's right, Robbie. We're hearing reports of hats, sweaters and T-shirts, as well as a link to join our Discord server.
What's a Discord server? Just read the prompter, man. Hit subscribe, leave us a review on your favorite podcast app, and tell your friends about our broadcast. It really does help us reach more people and keeps the show growing. All right, back to your regularly scheduled programming. Robbie, do you know what he's talking about? Or should we get a classic Kevin Powell explanation, amazing CSS explanation on here? You can explain it if you want. I don't know. I understood kind of from when you went like this.
but uh yeah so there's two different ones there's text box trim which i have a harder time explaining but i think i've i've actually used that one then there's margin trim i think is the one that more people are going to use well no i'm opposite no maybe not yeah but okay margin trim is if you have okay so you do a card and the first element has a margin top and the last element has a margin bottom because you know text always has margins on it by default and then it's either collapsing margins or anyway anytime that would happen it would just trim that margin off the top of the
first element in the bottom of the last element by default so you don't have to have special cases yeah and you can specify what axis too so you can say like only on the block axis or only on the inline axis and so like if you have elements i think the inline axis is less common just because you use gap for so many things these days but there probably are some cool situations where it would come in handy text box trim is the one where i'm sure everybody's done it where they have a button and they have it's like the uppercase text and they put padding on the top and bottom of
their button and it's different on the top and the bottom this like visual spacing is different and that's because typography has extra space on the top and bottom of like how the characters are painted because they need accent room for the accents and room for descender characters and so you'll actually be able to say like no instead of having all this extra space on the top you're going to trim to the top of the cap letters and on the bottom you're going to trim to the baseline so you just remove all that extra space from the typography so the padding on your button will actually be what you've declared instead of this weird extra space around the sides oh nice
yeah i remember having to do bespoke padding numbers on all sides of buttons before so that that will be nice to have yep that's noise i i hate that thing because that always would would pop up you'd sit down with the designer and they'd be like the button's not in this the text not in the center and you're like what you go look at it you're like oh yeah dang it you're right you see them way in you're like oh you're right it is one pixel off and then someone yeah someone goes okay okay we'll just put line height one yes yes and it like and then they have a word
that says grab or whatever or tasty and then the y at the bottom of the y is cut off and they're like why is the bottom of y cut off and it's like you're in a whack-a-mole game with css now buddy another one just before we go that i'm excited for it but i'm also like i think it's going to change how css is written is the attr function being able to take like not only be used as content on pseudo elements so it's where you can actually like pull in any value from a data attribute and use it any way you want in your css so i think that tell me it's not a programming
language now. And honestly, that one is what you would call typecasting in a scripting language. That's the only way that this could work because it was otherwise could be an attack vector. You could be adopting some data attribute that actually makes a request for a background image that then exposes something about this user. So instead it's type required. And like, I want this data attribute as a string, as a number. And if it fails that typecast, then the value doesn't show up in the right way and you know you have some issues but still i thought that was a really
clever guard because otherwise this could have been a wildly robust attack vector system would be stripping data attributes off of areolent on the page and posting them as parameters on the query string of an image or something it's just nuts yeah if there's a way to attack stuff people will find it yeah like the nfts and pdfs and different things that just execute code when you open it it's like cool or npm install that just starts executing code oh man yeah yeah the
npm stuff today was pretty rough you guys see all that i missed it yeah although i didn't follow all of it but i know that it's like a it's almost like an aftershock from the first earthquake right yeah tell me more there were several tweets that i saw and i don't know the full extent but it was like the one that affected me was the like tiny color was like one of them that was compromised i guess so swatch is gonna need uh some fixes for that i guess color js it's a superior js library for color anyway i used a tiny color for a while also hey you're you're a uh owner of the repo if you
would like to open that hey let's let's pair on that next yeah but anyway so yeah it was like that one and like some like 40 packages or something and then they're like oh by the way also everything crowd strike has ever published and like a bunch of ember stuff because they do a lot of ember work too and i was like oh this matters like i should probably uh look into that so yeah i think everyone was kind of floundering today trying to make sure everybody was good yikes are you familiar with css's one of its first hacks that you could do the billion laughs attack are you familiar with this no do you know this one kevin i don't think so this particular attack
originated with xml css enabled it when we got css custom properties so imagine you get a custom property and the value of it is lol and then custom property 2 is the value of lol and lol or lol and lol anyway by the time you can you can create a stack of 10 css variables that by the time you get to the 10th one it's referencing all the previous ones and they expand so big so quickly it busts the memory of a browser and will crash a page so it's called the billion laughs attack
because you're just like, look at me, 10 lines of CSS crashing a browser. Pretty funny. So they had to put guards in there where you can only nest custom properties a certain level deep to prevent the billion laughs attack. Yeah, never interesting. Who's laughing now? It's a stupid joke. Oh, God. Yeah, so we've talked about a lot of weird things, new things, CSS things. Why can't AI write CSS, though? That's a good question.
I think the biggest problem it has is that CSS is sort of the opposite of what it's good at. Like you need a little like encapsulated JavaScript thing that that's all it does. Like it can do that whatever amount of lines of code that is. Whereas like with CSS, sort of going back to what I was saying earlier with the problems with the CSS and JS, where like people that are coming from JavaScript backups are trying to encapsulate things because they're not comfortable with the global scope of CSS and the way everything works with everything else. So like, yeah, you can get AI to write you some CSS for that component.
But even now that I've seen of it, where it should be aware of the entire code base, it just seems to like ignore half of it just because it doesn't want to look at it. I've seen it look at something, start using custom properties for some parts of it, and then just completely ignore it for other ones. It has the problem of over declaring like crazy, which is a problem that a lot of beginners like to do, where it's just like, it's just throwing with 100% on things. and these other things that it wouldn't look like it would cause an issue, but it actually does cause a problem in that scenario that it's used it in.
And then I guess it just doesn't have like the visual testing or any, like it's throwing that code in there, assuming this is what's right. And with like a JavaScript, you can test the JavaScript pretty easily to see if it runs and actually does something. Whereas the CSS doesn't really fail and it doesn't know that it doesn't fail because there's no error coming to tell it that there's a problem with that. and so it just this must be fine but yeah i think there's a lot of layers to ai struggling with css compared to other languages that it still also struggles with you know it's getting okay at some stuff but it's it's far from perfect everywhere i think yeah i mean ai struggles a lot i think
it was an awesome answer i'm just like oh i thought you were like rock on i was like that was an amazing answer i was like just just creep my fingers up here just like we sign of the horns yeah i was like i have nothing to say that was amazing yeah yeah i think part of the problem is that it depends on where you're using the css too like the javascript code can be used and it's kind of going to execute the same regardless but like it really matters what scope you're in with the css if you're going to break everything else or not or like i don't think it's i mean it can't think we've talked about this before it doesn't think it just like pulls some
answer to like a query and goes blah so like it doesn't understand anything about how that should work yeah and i've always been curious not i don't think it's so much these days but like i remember at one point when it people were first getting very excited about it i think i made some content around like just the problems it was causing but like at one point it said something that was really just i wish i could remember what it was but it was just like writing a reset or something and explaining why it was the right thing to do and the source it gave was this like random github repo
that had like 20 lines of css in it and i was just like it's gotten better i think at vetting information and where it's from but like those early days are really bad yeah good for that one repo though i guess yeah it's like open props sneaks in there pretty good too i'm like hey it does pretty good with open props it must have trained itself for free on a bunch of stuff it's like chris coyer is like i know it read all the css tricks you know like hey toss me a buck or two you know like but hey we couldn't control he made his css tricks money he did he did here's
a little bit of a whatnot question for you kevin do you wake and bake do i wake and bake yeah do you uh wake up and make bread oh because i know you bake bread i do but i don't wake and uh Well, sometimes. It's been a while. But if I'm doing sourdough, it would be early in the morning or when I get up and get the kids to school and then it goes in the oven. But I haven't made any in a while now. I'm a little bit worried about the state of my starter, to be honest. Oh, that's the yeast you carry over between bakes? Yeah. Does it go bad if you leave it for a while or something?
i think i can get it back to life i've had it in the fridge you can sort of like prep it to go dormant i guess and then you get it out and start feeding it but it's been a little while now so we'll see if i can revive it it's not that hard to start like a pet yeah yeah it's a bit of a pain in the butt if you're not like actively baking constantly yeah how do people figure that out like seriously there's so many things that are just i mean i'm sure the first one was an accident but then like how do you perfect that science i don't i don't know even like finding
it as an accident like anything to deal with fermentation i'm just like the steps in fermentation that are going on and then you decide to try and consume it just seems really bizarre to me yeah curdling anything with time you're like oh you let that just be in the sun or out until it grew stuff and then you got really hungry i don't know i'm assuming like one of the original ones was wine like somebody put a bunch of grapes in a barrel and left it for too long and people are like oh juice and drank it and they're like wait i feel good and they're like all right we could do
this with more stuff why is grandpa dancing he's danced in 20 years yeah yeah so yeah i mean there were probably also a lot of people that ate stuff they shouldn't have and uh didn't make it so that is true what about brewing beer are you doing that have you ever made whiskey i don't know tell us a little bit about some of the drinks you make kombucha too so you're you're willing to watch things bubble and fester and and then drink it later yeah that's nice as i said i wouldn't i wouldn't have touched any of it if i never knew that was the process but now that i know that
it's safe and i can get something good out of it i'm curious about like fermentation in general i think it's fun so i haven't distilled anything where i used to live technically you weren't allowed where i'm living now you can so maybe one day i don't know but beer is sort of my my main focus and it takes enough time right now i haven't been able to for a while because we have a major water shortage and it's rained like once in the past four months or something yeah so we're we're underwater advisories and stuff and it takes a fair bit of water so i'm holding off for the time
being but i try to i generally try to brew once a month usually well what do you do with all that because when i was brewing beer it was way more beer than i ever wanted to drink and then you had to wait so long that by the time i i don't know it was so maybe you're bottling into little bottles in okay are you doing half cakes oh well five gallons five gallons okay so it's like a pony is that a pony yeah something like that yeah so five gallons yeah i probably drink more than i should so it's probably good that we're having we have the whole story advisory so yeah i mean i'm
i try to share with other people too i try not to like hold it for myself give it away yeah come on Here's a growler. Yeah, yeah. Go home. I used to bottle when I first started, and then I stopped for a while just because bottling sort of sucks. I wasn't a fan. It does suck. And having the caps around, like, just you start to find caps in places you don't want, and you're just like, eh, that stinks. Yeah, and washing the bottles and everything. So kegging definitely simplifies the process a lot, so that makes life easier. I need to do cooler hobbies, I think. What, you power wash, man?
That's so popular. Power washing is a great hobby. Yeah. I guess so. It doesn't take as much dedication to the craft as brewing beer, though. I know. Sports, too. You got more friends than me because you watch sports. You know, like we're over here making beer and drinking it by ourselves maybe or whatever, but you're like cheering on with friends. Yeah, sometimes. I do like to watch some football. Oh, yeah. What team do you follow? Well, I'm talking American football just in case we weren't on the same page. So I like college football the most. I went to Virginia Tech, so I'd like to see them do well, but they're 0-3 so far.
so doing terrible yeah professional teams i've been following the eagles a little bit just because i like saquon barkley i think he's just an insane machine at everything football so he's fun to watch yeah i'm not not that serious about it i just will watch whoever's on and it's fun to watch that's how i like to do sports too i'll show up to any sport and i'll enjoy it with you because i like watching people kick butt i'm like dude if you're good at something i'm rooting for you if you suck at it i'm gonna tell you that's the only funny okay so like i'm quite supportive when I go watch sports at someone's house. But if someone's sucking, and I don't care.
I don't have any affiliation. So I'm like, if they're sucking, I'm like, that was some high school garbage. You should quit. I can't believe you're a professional. That's the same mistake I've watched my friend Gary do five times because he sucked. So I don't know how you're getting paid. My friends are like, dude. And I'm like, hey, if he's bad, he's bad. Oh, yeah. I think we picked the wrong careers, too, because Virginia Tech is firing their football coach for being bad and giving him six million dollars so he'll leave i'm like i would love
like guys i could i could coach some football like you might have to fire me soon the coaching salaries like it's it's different from the players just because like i don't know i'm always confused on like how much influence they have and obviously they do because there's coaches that clearly are good but then it's those times where they hire them for these obscene salaries and then fire them two years later but they're still under like a seven-year contract and you're just like, there's way too much money in sports. It's insane. There's a lot of money in sports. Yep. A lot of money in everything except for the things that are paying me.
So speaking of which, though, if you were not in tech, what other career would you choose? I've taken the most roundabout way to even get to where I am now. So I don't have a good answer for that. just because I was in science that I dropped out of to go into film. I have a degree in film. Then I had nothing to do with that. So I went, I got a BA in urban planning. Would have needed a master's if I really wanted a job in that. And I didn't really feel like I wanted to do that. So then I got a vocational degree in design, which led me to getting back into web.
That was a hobby of mine, but then got me hired as a teacher that then eventually led to the YouTube channel so i've been all over the place even if i had a plan i don't think i would actually be doing the thing that i say i would be doing okay well what about if you could just get a random skill like something that has nothing to do with any of those things if you don't have anything in mind that's fine but like if there's something that just sounds really cool that you're like if i could just do that like what would it be i mean for me the the one thing i've always
wanted to be was a race car driver since i was a little kid oh nice i do like sim racing stuff now and like yeah driving a car like if i could if i won like 100 million and i could retire and i know i'd live comfortably because it's a rich man sport but i'd be like into like the touring cars or something like that just like the old man racing that they have going on yeah nice yeah i don't think i have the stamina for racing because you gotta do like so much driving and like such fast speeds and like i think it sounds fun for like going straight on a track for like you know 10
seconds or whatever i'd do that but if you were asking me when i was like 12 i would have said formula one now i'm like there's no way that i would even step in one of those oh hello a while jason has appeared i have to translate because i've headphones on oh we have so many more questions for you i'm like which one's next oh here wait what's your favorite css typo for me it's the like there's a couple i used to post them on mastodon and hayden is really good at picking up on them but like one that i remember typing and feeling so embarrassed it was even like going
to be in my typing history was colon fist dash child function and it's like it's supposed to be first child first child i was like i don't want to no do you have any typos that you're just like i'm gonna edit that out because that's embarrassing yeah the most embarrassing one for me is a display absolute display yeah i do that nice all the time i know i do it and i still do it and i still can't find the problem i'm just like why is this not working the other one that i do a lot is if i'm
just building like a demo that just has like a bunch of empty divs so i want to put a background color on them but i just write color and that's really annoying because nothing shows there's no error in the dev tools there's nothing it's like the color's there why is it not working and then i'm like oh that's the text color right yeah that's been i've been doing that for a decade and I will continue doing it for sure. Yeah, I do feel like that is kind of backwards. Like it should have been color is the color of the box and then you say text color for the text color. Text color does make more sense.
Are there tailwind typo blunders? Like if you're tailwinding by hand? And here's a follow-up question. How often do you tailwind from scratch by hand? You're like, I'm going to write every class in this class list by hand. And then what are your blunders? Do you make any silly mistakes where you type but instead of something I don't know yeah I don't I don't know uh off the top of my head a like silly mistake but yeah I do hand roll tailwind stuff for sure like if I'm building something I'll write it all from scratch I'm just like you know one class on look at what it looks like add another class another class like it's very iterative and then I'll also do like just duplicate
it all you don't even need your javascript loop that like loops through the items just put that string of 20 classes on like eight items in a row and then you can clean it up later Yeah, I mean, I think it's all about what makes you the fastest to get the thing you want on the page. And then you can always abstract it out to be smaller and better and faster later. I just had a wild idea. What if there was a race between vanilla and Tailwind? You had to build the same piece of UI and you watched two people race it out. So the goal was to completion the fastest.
Would a Tailwind typer, because they're typing way less characters and they're working directly in the markup, not between two files. would they spank a vanilla css developer what do you think i think in a sufficiently easy prompt yes like if you're gonna throw in a bunch of new css stuff that's maybe not supported or like you don't know what the syntax and tailwind would be because they have to do like gymnastics to make it work that stuff you'd probably be faster just you know if you're a expert in css
you can just put it all in there but yeah if it's like here's these like 10 nested boxes and they need to have these padding and they're these colors and like you know something simple i think tailwind could win but it's also about typing speed there's a lot of variables or is there some ai assist like oh i'm always doing this so here's like blah there's a bunch of classes like i don't know i mean you better hope there's not a ul li because you're gonna have to type all that across all those li's whereas kevin's over there going direct descendant li boom boom boom and he's like done you know yeah i mean yes but you can so let's not forget though well i guess what's
the rules like can you use css files or like anything normal css at all because you can define your own like tailwind classes and do some css stuff there and then just throw those classes on like they're just classes it is just css it's a crazy argument in the first place but what do you think kevin do you think you could beat a tail winder yeah i think i think it's like you said it would depend a lot on like the scale i think writing just the css is beneficial if there is like as soon as it's like i have one selector that can do a whole bunch of stuff and i
don't have to apply it to 10 different items then the css starts like gaining an advantage but if it was just like one box and you had 10 classes that had to go on it tailwind's gonna win you know assuming same typing speed but now i i have a content idea for a video thank you adam i have to find someone who is really good at some tailwind and see what we can do yeah i mean i'm good at tailwind but not at not at typing though that's where i would feel i'm so slow at typing man like i although the type ahead features in that's one thing tailwind has that's true a lot of auto
complete the type of a lot of the auto completes very tight and so yeah you really only need the first character or two before you start to get options and then you're just picking it from a menu but still i do think that that that video would it's that spicy question that everyone's wondering their head what would happen if you got the best tailwind person first the best css person and they went head to head on a couple of tasks yeah i mean i would nominate adam wathen as the creator of tailwind as the tailwind person i think he would probably do it first powell that'd be There you go. Amazing.
Wow. Yeah. Yeah. I'd just be worried that I get spanked on that. But anyway, I'd get spanked. I'm, I'm actually pretty slow. People are like, okay, come over here and help me do this thing. You're probably going to nail it. First time. I'm like, Nope, but I'll, I'm, I'm patient. Yeah. We're getting pretty close to time here. Before we end, what things would you like to plug? If you go to my YouTube channel, you'd get anything you'd want to find if you're trying to learn any css stuff so it's just kevin
powell on youtube you'll find me kevin powell with like css if for some reason my stuff doesn't come up if you are interested in newsletters and you don't mind having more inbox clutter i think my newsletter is pretty good i enjoy writing it and people seem to like it so you can find that at my website kevinpowell.co and that's where basically everything i'll say i'm up to is there too and i'm on blue sky if you're on social media and looking for somebody to follow you have courses on Frontend Master also. I'll just go ahead and plug those for you. Those look like a lot of work.
They seem really great. I have a course there. I have other courses. So on my site, kevinpowell.co, there's links to any course stuff if you're looking for like curated paths on CSS stuff because you want to sort of dive more into the weeds instead of just learning about a feature at a time like you would on YouTube. Yeah, I have some content that can help out there too. All right. Well, thanks everyone for listening. If you liked it, please subscribe. Leave us some ratings and reviews. We appreciate it And we will catch you next time. Bum, bum, bum, bum, bum, bum.
You've been watching Whiskey Web and Whatnot, recorded in front of a live studio audience. What the fuck are you talking about, Chuck? Enjoyed the show? Subscribe. You know people don't pay attention to these, right? Head to whiskey.fun for merch and to join our Discord server. I'm serious. It's like 2% of people who actually click these links. and don't forget to leave us a five star review and tell your friends about the show all right dude i'm out of here still got it
This week, Robbie and Adam sip Jephtha Creed six-year wheated bourbon and tackle OpenAI’s controversial pricing, AI agents as digital Tamagotchis, and whether frameworks still matter when LLMs write the code. They...
This week, Robbie and Adam sip on Courage & Conviction American Single Malt and dive into the AI arms race, deterministic models versus word vomit machines, and whether Jev is the future of intelligent software or just...
This week, Robbie and Adam sip on Oak and Eden Bourbon with Amburana Spiral and dive into building software that actually works, AI code reviews that roast your PRs, and whether engineering is dead or just hiding behind...
This week, Robbie and Adam sip on Chicken Cock Small Batch Kentucky Bourbon and dive into building mobile apps with Claude, CSS infinity, MySpace's comeback, and whether 2026 is just 2006 but way more expensive. They...
This week, Robbie and Adam catch up over Redemption Rye to talk token budgets, worktrees, and whether the harness era is already over. They dig into the abrupt shutdown of GitHub Copilot at work, Bob as the internal AI...