modern-normalize icon indicating copy to clipboard operation
modern-normalize copied to clipboard

Use of `all`, `:where()`, and `:not()` could make a better reset

Open brianjenkins94 opened this issue 4 years ago • 7 comments
trafficstars

See: https://github.com/elad2412/the-new-css-reset

brianjenkins94 avatar Jul 13 '21 12:07 brianjenkins94

This project is not resetting, it's normalizing.

sindresorhus avatar Jul 13 '21 12:07 sindresorhus

You're right, I used the wrong word. Still could potentially be of use.

brianjenkins94 avatar Jul 13 '21 13:07 brianjenkins94

Can you provide some specific examples of how/where it would be useful? I'm curious.

sindresorhus avatar Jul 13 '21 13:07 sindresorhus

:where isn't supported on old iOS: https://caniuse.com/mdn-css_selectors_where

Razunter avatar Feb 24 '23 11:02 Razunter

For zero-specifity https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity#the_where_exception See: https://github.com/csstools/normalize.css/blob/main/normalize.css https://github.com/u1ui/norm.css/blob/main/norm.css

bes-internal avatar Jun 05 '23 12:06 bes-internal

One option to think would be @layer where all the normalization happens on a specific layer reserved just for that.

Arkkimaagi avatar Sep 28 '23 12:09 Arkkimaagi