Minimal Takes on Faking Container Queries

It’s sounding more and more likely that we’re actually going to get real container queries. Google is prototyping a syntax idea from David Baron and refined by Miriam Suzanne. Apparently, there has already been some prototyping done for a switch() syntax which is like container queries on values. Even now, there is stuff like the Raven technique which can do container query-esque values. This stuff will shake out over time. If you need solutions today, most of them involve JavaScript … Read article “Minimal Takes on Faking Container Queries”

The post Minimal Takes on Faking Container Queries appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://css-tricks.com/minimal-takes-on-faking-container-queries/

Creată 4y | 2 dec. 2020, 23:20:50


Autentifică-te pentru a adăuga comentarii

Alte posturi din acest grup

A CSS Wishlist for 2025

2024 has been one of the greatest years for CSS: cross-document view transitions,

23 dec. 2024, 15:10:04 | CSS tricks
The Little Triangle in the Tooltip

Today, I want to focus on what I'll call the little triangle in the tooltip. It receives minimal attention but it amazes you by how many ways there are to make them. Let's start with the simplest a

20 dec. 2024, 17:30:19 | CSS tricks
How to Create Multi-Step Forms With Vanilla JavaScript and CSS

When was the last time you developed a multi-step form? There’s so much to think about and so many moving pieces that need to be managed. But doing it by hand can be a good exercise and a great way

18 dec. 2024, 16:50:11 | CSS tricks
What ELSE is on your CSS wishlist?

What else do we want or need CSS to do? Chris kept a CSS wishlist, going back as far as 2013 and following back up on it in 2019. We all have things we'd like to see CSS do and we always will no ma

17 dec. 2024, 20:10:04 | CSS tricks
Fluid Superscripts and Subscripts

How much attention do you pay to the alignments of your subscripts and superscripts? Lorenz Wöehr has you covered with a recipe for fluid scaling.


11 dec. 2024, 20:30:05 | CSS tricks
Smashing Meets Product Design

I had the pleasure of hosting a recent Smashing Magazine workshop on product design, subbing for Vitaly Friedman who usual

10 dec. 2024, 16:30:21 | CSS tricks
CSSWG Minutes Telecon (2024-12-04): Just Use Grid vs. Display: Masonry

The CSSWG met to try and finally squash a debate that has been going on for five years: whether Masonry should be a part of Grid or a separate system. We've got coverage of both presentations for y

10 dec. 2024, 16:30:19 | CSS tricks