Instead of the attr thing, I use style and a custom variable. It works ok as workaround. But great to finally solve this the right way.
@jenstornell8 сағат бұрын
Text box trim should have been default aleady in 1995. Not adding space depending on line height.
@bjornroesbeke8 сағат бұрын
This explanation was clearer than the ones i found at Udemy. I will probably mistakenly switch those two terms around, but at least now i understood how it works!
@khodok96368 сағат бұрын
Do you think we should use text-box-trim in CSS resets? It's definitely a common problem that can be countered if needed but you usually don't want.
@pasizdobrekuce9 сағат бұрын
What if border radius and padding are same value?
@yogibarista28189 сағат бұрын
FINALLY... the att() spec starting to get some support after years of the features being a sea of red.
@mebamme10 сағат бұрын
Honestly, my most unexpected takeaway from this is that "leading" is pronounced "ledding". (as in the metal)
@sajon_10 сағат бұрын
I am just a couple minutes in, but I was just couple days ago was looking into why stuck is not a pseudo class yet and I read some discussions on why it was not possible or something like that, how is it possible now? Anyway, hopefully these things come to more browsers!
@snake344410 сағат бұрын
That text thing is so nice! Don't know if it's just me, but when its about text I sometimes find myself doing so much for just one section to look good. It always feels like text is lagging behind other elements that can be easily and consistently styled with css.
@RomanBorowinski10 сағат бұрын
attr() FINALLY ! ! ! !
@ukyo619511 сағат бұрын
We need more css properties, not.
@Atractiondj11 сағат бұрын
Wait when i can use this in 2030, because safari and mozilla...
@nomadshiba11 сағат бұрын
amazing
@bobross240412 сағат бұрын
i bet in safari this will somehow look differently from other browsers, making this unusable
@SpektralJo12 сағат бұрын
Text box trim is so important. Finally it is possible to consistently center text verticaly
@shaynepreston605512 сағат бұрын
The advanced attr is really exciting but I’m hoping the typing capabilities helps prevent XSS vulnerabilities. Data attributes work basically like inline styles which can allow malicious users to put arbitrary values. Think setting a url in a data attribute. Should always sanitize your content inputs anyways, but just a callout!
@raviel49812 сағат бұрын
Cool.
@PaulMcCannWebBuilder12 сағат бұрын
I wish there was a 'pimento' HTML color name just for this demo.
@haythamkenway156112 сағат бұрын
Hey Kevin. how is going. it has been 2 years since I got a job and didn't have time to get in touch with your videos. it's amazing to see you again. your css tutorials was the reason I understand css better. keep going and awesome video as usual.
@ittixen13 сағат бұрын
Finally! One use I was repeatedly frustrated by, was being unable to use attr() for a url() value. Seeing this game-changer about to arrive at last is so exciting. I just hope Firefox doesn't lag too far behind with supporting this.
You did such a great job. I am very happy and learning a lot from your videos! Thank you very much, Mr.Kevin Powell.
@0xAndy13 сағат бұрын
I don't know, Kevin. I'm just not too excited about these Chrome-only features. Until there's consensus across browsers and we can rely on these features everywhere, the nutritional value of work like this really plummets. That being said, it's cool to see what's out there and to daydream about using features like this at my 9-5. Thanks for the video.
@bijan-f13 сағат бұрын
That's a fair take, but Chromium browsers are 70%+ of the market, so in reality it's still useful and you are progressively enhancing the website.
@ukyo619511 сағат бұрын
@@bijan-fbullshit
@Timelog8810 сағат бұрын
@@bijan-f People used that argument for IE6 as well. I think we can all agree that it was a really good thing that changed. Chromium should just support the same standards as other engines, let them diversity in other features than rendering.
@jaiprakashkumar710713 сағат бұрын
One useful tip i found when working with in cmd prompt was that if you want to open a file location in command prompt you just go yo that location and in the heirarchy at the top click the cursor and select all and remove it and type cmd instead and it automatically opens the location in cmd prompt
@ozgurg013 сағат бұрын
Finally we can detect stuck state without JS. 🎉
@dominotrix14 сағат бұрын
So i can do <div data-stock="4"></div> and then create a circle that shows that number via css "content". The question is, can I add conditionals, so if the number is less than 10 the background-color of the circle can be orange and if the data-stock is 0 then the color could be red. If not, then we would end up using <div data-stock="4" data-color="orange"> where "orange" would be calculated and echoed via backend code, so we could do background-color: attr(data-color); .
@ukyo619510 сағат бұрын
Do it in JS. Like all the other stuff around this use case.
@Sanjo9014 сағат бұрын
Nice new stuff, hope to use on prod in 2 years
@YuraymarStewart-r4s14 сағат бұрын
Nice! Can you exclude child elements from mixing?
@mrwhatsreal843014 сағат бұрын
Out of context, but your subscription of 24.99$ per month, gives same perks as the 49.99$, this is....not so great, i mean just a shoutout, i believe people who pay double should something more
@KevinPowell14 сағат бұрын
Any suggestions? :)
@RaulMercado13 сағат бұрын
What subscription are you talking about? I buy his courses individually, no subscription.
@screamtwice14 сағат бұрын
This is all very cool, but can iOS Safari please fix position: sticky; so it doesn't Jitter from the scrolling hardware acceleration, it annoys me to no end, and we end up having to use position: fixed; with JS to apply and unapply, so crappy. lol
@KevinPowell14 сағат бұрын
File bug reports (or comment on existing ones). They see, and fix things, based on those. Sometimes quickly, and other times it takes longer, but that's where the engineers who work on the browsers track problems :)
@screamtwice13 сағат бұрын
@@KevinPowell absolutely, been chasing this one for a whole year now, and it's a known bug on their end, just hope it's progressing to a solution! The company I work for, most of their traffic is through iOS Safari, so they don't want me to use sticky because of this bug, sad, cause I love sticky so much! Thanks Kevin for your videos, they are always so good and informative!
@JimKernix14 сағат бұрын
How do you follow release notes and which release notes should you follow? I make a point of looking at the new stuff when I open VS Code but I'd love to know what else to follow.
@KevinPowell14 сағат бұрын
Chrome, Safari, and Firefox. developer.chrome.com/release-notes developer.apple.com/documentation/safari-release-notes www.mozilla.org/en-US/firefox/releases/
@alesholman80116 сағат бұрын
Oh ye the 15248th way to center something xd
@joserabn715616 сағат бұрын
Freaking love it! Thanks bro!
@nozomi_tailwind17 сағат бұрын
its a long time since i use float for my element, and thanks for the reminder that this property exist
@SunightMusic19 сағат бұрын
I think illl use it often. Thanks
@iBabs_4_Codes21 сағат бұрын
Gonna try this in tailwind
@Milo_1010_21 сағат бұрын
I just subscribed to your channel, this video helped me a lot to understand better how I can optimize my images with srcSet and size attributes. Thank you and please continue these videos, you made it very simple and interesting !
@codewithsehran21 сағат бұрын
you just made the Bangladesh flag before knowing ❤
@TheHamidshahzad22 сағат бұрын
the best in the topic 😘 stay blessed
@TheMediinaa23 сағат бұрын
The useful thing I noticed besides centralizing things was the unit of vw used for border-radius 😊 Am I the only one who still struggles with units?
@jahirrana8879Күн бұрын
Do you know that you have made a flag in Bangladesh?
@sereneflatunКүн бұрын
Thank you
@uhkeyy4144Күн бұрын
after looking through hella articles and yt videos this was the final one that helped me understand parallax lol
@chrisjacobs5844Күн бұрын
I have been looking at your snippet posts for a while now, always something useful. Always someting that ensures I bookmark it to go over it again. Keep up the videos their a treasure even for seasoned coders
@back2IslamytКүн бұрын
I almost forgot about float existence. I used to use it a lot when I was a begginer
@Ijsthee9Күн бұрын
Where is the explanation for the scroll spy TOC?
@j.r.r.tolkien8724Күн бұрын
Of course they had to make them 2 different words. They're "items" when they need to be justified but they're called "content" when they need to be aligned. Makes sense.
@DavidLopez-gs1fbКүн бұрын
Several habits you can improve, Kevin. 1. It's a myth that a CDN is better. Not necessarily. Many times it slows pages down, and what's worse, puts a new point of failure to your site. 2. A better advice is to use ONE folder of resources for ALL your projects in your website. Instead of copy-pasting the very same assets in a subfolder of each project, DON'T! Use a "common assets" folder.