Search
onInput Event
3.8.2021
Coding HTML forms has been painful my entire career. Form controls look different between operating systems and browsers, coding client side and server side validation is a nightmare, and inevitably you forget something somewhere along the line. Some behaviors don’t act the way you’d...
The Web’s Worst Default
7.7.2021
There are a lot of great defaults when it comes to browsers and the web. Think about all the accessibility features that are baked into HTML so that you don’t have to do weird stuff, like this example from Manuel…
The post The Web’s Worst Default appeared first on CSS-Tricks. You can support...
Using Performant Next-Gen Images in CSS with image-set
23.6.2021
The CSS image-set() function has been supported in Chromium-based browsers since 2012 and in Safari since version 6. Support recently landed in Firefox 88. Let’s dive in and see what we can and can’t do today with image-set().…
The post Using Performant Next-Gen Images in CSS with image-set...
Wrangling Control Over PDFs with the Adobe PDF Embed API
24.5.2021
By our last estimate, there are now more PDFs in the world than atoms in the universe (not verified by outside sources) so chances are, from time to time, you’re going to run into a PDF document or two. Browsers …
The post Wrangling Control Over PDFs with the Adobe PDF Embed...
Text That Sometimes Turns to Emojis
22.4.2021
There are some Unicode characters that some browsers just decide they are going to turn into emojis for you. I couldn’t tell you why exactly, but here’s what I see:
Chrome on the left. Safari in the simulator on top…
The post Text That Sometimes Turns to Emojis appeared first...
Gaze Upon My Browser Extensions and Despair
14.4.2021
They’re not what any of us would call “intimate,” but you can really tell a lot about a person from a quick glance at the browser extensions they use. Is your boyfriend’s browser decorated with favicons from Evernote, Trello, and literally nothing else? He’s either a type-A perfectionist or zen...
Let’s Create an Image Pop-Out Effect With SVG Clip Path
2.4.2021
Few weeks ago, I stumbled upon this cool pop-out effect by Mikael Ainalem. It showcases the clip-path: path() in CSS, which just got proper support in most modern browsers. I wanted to dig into it myself to get …
The post Let’s Create an Image Pop-Out Effect With SVG Clip Path appeared first...
:where() has a cool specificity trick, too.
30.3.2021
There is a lot of hype on the :is() pseudo-selector lately, probably because now that Safari 14 has it, it’s supported across all the major browsers. You’ve got Miriam tweeting about it, Kevin Powell doing a video, Šime …
The post :where() has a cool specificity trick, too....
This Might Be the Only YouTube Browser Extension You'll Ever Need
29.3.2021
YouTube is a real mixed bag. It’s home to so much of our favorite stuff on the internet, but the experience of using website itself isn’t great—filled with distracting recommendations, poor personalization, and ads, ads, ads—unless you take advantage of desktop browser extensions that can make...
Use Logpoints!
22.3.2021
There’s sometimes a tribal attitude about how web developers should be debugging their code and solving problems. There’s the console.log loyalists, then there’s the debugger/breakpoint maximalists. I worked on the Firefox DevTools debugger for years and I can tell you...
Web Frameworks: Why You Don’t Always Need Them
10.3.2021
Richard MacManus explaining Daniel Kehoe’s approach to building websites:
There are three key web technologies underpinning Kehoe’s approach:
ES6 Modules: JavaScript ES6 can support import modules, which are also supported by browsers.
Module CDNs: JavaScript modules can now
…
The...
Cloudflare Teams With Unstoppable Domains to Bring .Crypto Addresses to Web Browsers
16.2.2021
The new integration means web users can directly access decentralized websites form any browser
Weekly Platform News: WebKit autofill, Using Cursor Pointer, Delaying Autoplay Videos
12.2.2021
In this week’s roundup, WebKit’s prefixed autofill becomes a standard, the pointer cursor is for more than just links, and browsers are jumping on board to delay videos set to autoplay until they’re in view… plus more! Let’s jump right …
The post Weekly Platform...
iframe feedback
11.2.2021
What if an <iframe had within it another <iframe of the exact same source? Inception, as they say. Baptise Crespy does this all-important research in the name of art and science.
Turns out browsers are smart enough to not …
The post iframe feedback appeared first on CSS-Tricks.
You...
Some Performance Blog Posts I’ve Bookmarked and Read Lately
3.2.2021
Back/forward cache — I always assumed browsers just do fancy stuff with the back/forward buttons and us developers had very little control. Philip Walton tells us it’s critical that we understand “what makes pages eligible (and ineligible) for bfcache to
…
The post Some...
Life with ESM
19.1.2021
ESM, meaning ES Modules, meaning JavaScript Modules. Like, import and friends.
Browsers support it these days. There is plenty of nuance, but as long as you’ve dropped IE, the door is fairly open.
Before ESM, the situation for JavaScript …
The post Life with ESM appeared first...
Open a Browser Tab with DevTools Open by Default
28.12.2020
Using command line flags is a great way to subtly improve productivity. Whether saving yourself keystrokes or enabling specific features, it’s very much worth knowing the application flags available to you. To launch a new tab with DevTools in Chrome, you can use...
I learned to love the Same-Origin Policy
17.12.2020
I spent a good chunk of my work life this year trying (in collaboration with the amazing Noam Rosenthal) to standardize a new web platform feature: a way to modify the intrinsic size and resolution of images. And hey! We did it! But boy, was it ever a learning experience.
This wasn’t my first...
Give Users Control: The Media Session API
14.12.2020
Here’s a scenario. You start a banging Kendrick Lamar track in one of your many open browser tabs. You’re loving it, but someone walks into your space and you need to pause it. Which tab is it? Browsers try to help with that a little bit. You can probably mute the entire system audio. But wouldn’t...
Popular Browsers Like Google Fail to Catch Copycat Crypto Sites, Scams Make the Top Results
13.12.2020
As the digital asset economy grows popular and a number of crypto companies become well known, copycat scammers appear in greater numbers. There are a number of websites that are clones of the official web page from companies that provide mining device sales, wallets, full nodes, paper wallet...