ceubri @lexoyo ce serait cool d'ajouter cette unité : cqi The container query length units are: cqw: 1% of a query container's width cqh: 1% of a query container's height cqi: 1% of a query container's inline size cqb: 1% of a query container's block size cqmin: The smaller value of either cqi or cqb cqmax: The larger value of either cqi or cqb https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Containment/Container_queries#container_query_length_units
lexoyo Super idée ! ca marche avec 93% des browsers (pas énorme mais ok) the compatibility table: https://caniuse.com/css-container-queries je te fais ca
lexoyo tu as vu qu'il faut déclarer ca sur un des parents? .container { container-type: inline-size; }
lexoyo c'est fait et j'ai aussi ajouté dvh et dvw car ça résout un vrai problème courant sur mobile c'est sur canary.silex.me si tu peux tester si tu veux quand tu veux