Search
CSS accent-color
4.10.2021
For better or worse, form fields have been somewhat difficult to style with CSS. Form control display is dependent upon device, operating system, and browser, so you can imagine the difficulty in making styling easy. We have slowly been given some controls over form control display, as evidenced...
XDEFI CEO wants to disrupt MetaMask’s domination of browser wallets
30.9.2021
Emile Dubié, CEO of XDEFI, is building a new browser wallet with Web 3 capabilities. XDEFI currently has nine blockchain integrations
New World Players Face Massive Queues, Wait Times On Overloaded Servers
28.9.2021
Amazon’s new massively multiplayer online role-playing game New World opened its doors earlier today, reaching a peak of over 700,000 players. That said, not even Jeff Bezos’ piggy bank has kept the MMO’s grand debut from being plagued with the usual launch day woes, including ridiculous wait times...
iOS Browser Choice
28.9.2021
Just last week I got one of those really?! 🤨 faces when this fact came up in conversation amongst smart and engaged fellow web developers: there is no browser choice on iOS. It’s all Safari. You can download apps that …
The post iOS Browser Choice appeared first on CSS-Tricks....
Viral Steam Game Patched To Aid Cheating
9.9.2021
I’m still playing Cookie Clicker instead of writing about Cookie Clicker because I need a good screenshot. That’s what I’m telling myself. It’s a convincing argument—I’m going to use it if Patricia starts asking where this post is. What would really help would be some sort of auto-clicker cheat...
If I work really hard on my Open Graph images, people will share my blog posts.
2.9.2021
Zach did that thing where each of his blog posts has a special URL with the design of social image card that is screenshat by a headless browser (like Puppeteer) and used as a true meta Open Graph image, meaning …
The post If I work really hard on my Open Graph images, people will share...
Detecting Media Query Support in CSS and JavaScript
23.8.2021
You can’t just do @media (prefers-reduced-data: no-preference) alone because, as Kilian Valkhof says:
[…] that would be false if either there was no support (since the browser wouldn’t understand the media query) or if it was supported but the
…
The post...
Native JavaScript Routing?
23.8.2021
We can update the URL in JavaScript. We’ve got these APIs:
// Adds to browser history
history.pushState({}, "About Page", "/about");
// Doesn't
history.replaceState({}, "About Page", "/about");
JavaScript is also capable of replacing any content in the DOM....
Wanna see a whiter white?
11.8.2021
Heck of a CSS trick here from Dongsung Kim.
There are hidden HDR videos playing at the corners of this page. When a HDR-capable browser encounters one, it switches to HDR mode. For some reason, CSS backdrop-filter + brightness >100%
…
The post Wanna see a whiter white? appeared first...
View Source (on Mobile)
10.8.2021
Have you ever wished you could see the HTML source of a web page while on a mobile browser, which generally doesn’t offer that feature? If you have a desktop machine around, there are ways, but what I mean …
The post View Source (on Mobile) appeared first on CSS-Tricks. You can support...
View Source (on Mobile)
10.8.2021
Have you ever wished you could see the HTML source of a web page while on a mobile browser, which generally doesn’t offer that feature? If you have a desktop machine around, there are ways, but what I mean …
The post View Source (on Mobile) appeared first on CSS-Tricks. You can support...
SVG Gobbler
6.8.2021
Great little project from Ross Moody:
SVG Gobbler is a browser extension that finds the vector content on the page you’re viewing and gives you the option to download, optimize, copy, view the code, or export it as an image.
…
The post SVG Gobbler appeared first on CSS-Tricks....
CSS Modules (The Native Ones)
2.8.2021
They are actually called “CSS Module Scripts” and are a native browser feature, as opposed to the popular open-source project that essentially does scoped styles by creating unique class name identifiers in both HTML and CSS.
Native CSS Modules are …
The post CSS Modules (The...
Safari 15 Opinions
28.7.2021
It was interesting that when Safari 15 was dropping at this last WWDC, in my circles at least, I mostly heard enthusiasm. Like the colors-in-the-browser-controls stuff was a neat trick and fun to play with. And there were other …
The post Safari 15 Opinions appeared first on CSS-Tricks....
CSS Logical Properties and Values
27.7.2021
Now that cross-browser support is at a tipping point, it’s a good time to take a look at logical properties and values. If you’re creating a website in multiple languages, logical properties and values are incredibly useful. Even if you’re …
The post CSS Logical Properties...
Meta Theme Color and Trickery
13.7.2021
Starting with Version 15, Safari supports the theme-color <meta> tag both on macOS and iOS. That’s exciting news because now the first desktop browser supports this <meta> tag and it also supports the media attribute and the prefers-color-scheme media feature.…
The post Meta...
System *Things
29.6.2021
I think we’re all largely aware of named colors in CSS:
color: OldLace;
background: rebeccapurple;
I guess you’d just call those “named colors” in CSS.
Those aren’t the only kind of named colors there are though. Some of them …
The post System *Things appeared...
Working around the viewport-based fluid typography bug in Safari
28.6.2021
Sara digs into a bug I happened to have mentioned back in 2012 where fluid type didn’t resize when the browser window resized. Back then, it affected Chrome 20 and Safari 6, but the bug still persists today in Safari …
The post Working around the viewport-based fluid typography bug...
Perfect Tooltips With CSS Clipping and Masking
17.6.2021
Clipping and masking have been around for a while now in CSS and even have pretty decent browser support. I recently worked on a project that needed to use a clipping technique for tooltips showing above links in text.
Those …
The post Perfect Tooltips With CSS Clipping and Masking appeared...
How I Used the WAAPI to Build an Animation Library
16.6.2021
The Web Animations API lets us construct animations and control their playback with JavaScript. The API opens the browser’s animation engine to developers and was designed to underlie implementations of both CSS animations and transitions, leaving the door open to …
The post How I Used...