elad2412 / the-new-css-reset

The New Simple and Lighter CSS Reset
https://elad2412.github.io/the-new-css-reset/
MIT License
2.26k stars 229 forks source link

Questions regarding the main selector reset #20

Closed barak007 closed 2 years ago

barak007 commented 2 years ago

Hello I have two questions about this new cool reset. specifically this line: https://github.com/elad2412/the-new-css-reset/blob/a46b4e46170f24825b11c1acc9b91b98234e7845/css/reset.css#L7

  1. Can you please explain why there is a chain of :not instead of using single one?
    :not(iframe, canvas, img, svg, video, svg *, symbol *)
  2. Why there is a * at the beginning of the selector?

Thanks in advance.

elad2412 commented 2 years ago
  1. make semantic separations for specific elements to inner elements.
  2. The "*" is for the readability of selecting all elements.
barak007 commented 2 years ago

10x just wanted to make sure there isn't something I miss here.