!important and CSS Custom Properties
The `!important` part doesn’t become part of the value, the whole declaration is treated as !important;
The `!important` part doesn’t become part of the value, the whole declaration is treated as !important;
Bramus wrote this almost a year ago, but I’d still call it a relatively new feature of JavaScript and one very worth knowing about. With Node.prototype.moveBefore you can move elements around a DOM tree, without resetting the element’s state. You don’t need it to maintain event listeners, but, as Bramus notes, it’ll keep an iframe loaded, animations […]
There was a quick surge of people re-creating liquid glass in the browser shortly after Apple’s debut of the aesthetic. Now that it’s settled in a bit, there have been some slower more detailed studies.
In JavaScript, you can detect a view transition happening, set a type, and have CSS do unique things based on that type.
Matt Smith with wonderfully straightforward writing on why default parameters for functions are a good idea. I like the tip where you can still do it with an object-style param.
There are no browser implementations of mixins yet, nor a fleshed out spec. So perhaps now is the best time to try to understand and opine.
Nikita Prokopov in I am sorry, but everyone is getting syntax highlighting wrong: … if everything is highlighted, nothing stands out. Your eye adapts and considers it a new norm: everything is bright and shiny, and instead of getting separated, it all blends together. I think there are some strong points made here. But 😬 […]
Banger page from the Chrome DevRel team showcasing the incredible year CSS had.
It maintains space for where a scrollbar would be, whether there actually is one or not. But do you always want that?
I think it’s cool our industry has these high quality documentaries documenting the stories behind some of the transformative tech in what we do. The Vite one just came out about a month ago. What would you pick if you could pick the next one? I wouldn’t mind hearing about early-days AWS or Docker. Maybe […]
Frontend Masters donates to open source projects through thanks.dev and Open Collective, as well as donates to non-profits like The Last Mile, Annie Canons, and Vets Who Code.