Last active
October 3, 2025 03:07
-
-
Save csswizardry/442de89c46f7ca7389a4afbcd155a2dd to your computer and use it in GitHub Desktop.
Revisions
-
csswizardry revised this gist
Aug 29, 2025 . 1 changed file with 15 additions and 15 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,32 +6,32 @@ that would need a `margin` or `padding` removing in a reset stylesheet: | Element | Chrome | Chrome for Android | Edge | Firefox | Firefox for Android | Safari | Safari for iOS | |-------------|:------:|:------------------:|:----:|:-------:|:-------------------:|:------:|:--------------:| | `body` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `h1` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `h2` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `h3` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `h4` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `h5` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `h6` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `p` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `hr` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `blockquote`| ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `pre` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `figure` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `ul` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `ol` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `dl` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `dd` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `th` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `td` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `fieldset` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `legend` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `input` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `textarea` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `button` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `dialog` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `option` | ✔ | ✔ | ✔ | ✔ | ✔ | ✘ | ✘ | | `select` | ✘ | ✘ | ✘ | ✔ | ✔ | ✘ | ✔ | This means you’d need the following in your reset: -
csswizardry revised this gist
Aug 29, 2025 . 1 changed file with 15 additions and 15 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,32 +6,32 @@ that would need a `margin` or `padding` removing in a reset stylesheet: | Element | Chrome | Chrome for Android | Edge | Firefox | Firefox for Android | Safari | Safari for iOS | |-------------|:------:|:------------------:|:----:|:-------:|:-------------------:|:------:|:--------------:| | `blockquote`| ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `body` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `button` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `dd` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `dialog` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `dl` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `fieldset` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `figure` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `h1` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `h2` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `h3` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `h4` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `h5` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `h6` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `hr` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `input` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `legend` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `ol` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `option` | ✔ | ✔ | ✔ | ✔ | ✔ | ✘ | ✘ | | `p` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `pre` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `select` | ✘ | ✘ | ✘ | ✔ | ✔ | ✘ | ✔ | | `td` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `textarea` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `th` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `ul` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | This means you’d need the following in your reset: -
csswizardry revised this gist
Aug 29, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -30,7 +30,7 @@ that would need a `margin` or `padding` removing in a reset stylesheet: | `textarea` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `button` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `dialog` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `option` | ✔ | ✔ | ✔ | ✔ | ✔ | ✘ | ✘ | | `select` | ✘ | ✘ | ✘ | ✔ | ✔ | ✘ | ✔ | This means you’d need the following in your reset: -
csswizardry revised this gist
Aug 29, 2025 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -30,8 +30,8 @@ that would need a `margin` or `padding` removing in a reset stylesheet: | `textarea` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `button` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `dialog` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `option` | ✔ | ✔ | ✔ | ✔ | ✔ | ✘ | | | `select` | ✘ | ✘ | ✘ | ✔ | ✔ | ✘ | ✔ | This means you’d need the following in your reset: @@ -63,4 +63,4 @@ I do interesting little bits of research like this all the time. You should **N.B.** There’s nothing wrong with `* {}` for this purpose—I just wanted to be extra thorough. All tested on real devices. -
csswizardry revised this gist
Aug 28, 2025 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,8 @@ # `margin` or `padding` Candidates Every element in [current Baseline browsers](https://web-platform-dx.github.io/web-features/supported-browsers/?target=widelyAvailable) that would need a `margin` or `padding` removing in a reset stylesheet: | Element | Chrome | Chrome for Android | Edge | Firefox | Firefox for Android | Safari | Safari for iOS | |-------------|:------:|:------------------:|:----:|:-------:|:-------------------:|:------:|:--------------:| -
csswizardry revised this gist
Aug 28, 2025 . 1 changed file with 6 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -55,5 +55,10 @@ input, textarea, button, select, option { } ``` I do interesting little bits of research like this all the time. You should [follow me for more](https://x.com/csswizardry). **N.B.** There’s nothing wrong with `* {}` for this purpose—I just wanted to be extra thorough. All tested on real devices. -
csswizardry revised this gist
Aug 28, 2025 . 1 changed file with 29 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # `margin` or `padding` Candidates Every element in [current Baseline browsers](https://web-platform-dx.github.io/web-features/supported-browsers/?target=widelyAvailable) that would need a `margin` or `padding` removing in a reset stylesheet: | Element | Chrome | Chrome for Android | Edge | Firefox | Firefox for Android | Safari | Safari for iOS | |-------------|:------:|:------------------:|:----:|:-------:|:-------------------:|:------:|:--------------:| @@ -30,3 +30,30 @@ Every element in [current Baseline browsers](https://web-platform-dx.github.io/w | `dialog` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `option` | ✔ | ✔ | ✔ | ✔ | ✔ | | | | `select` | | | | ✔ | ✔ | | ✔ | This means you’d need the following in your reset: ```css /* Text Elements */ h1, h2, h3, h4, h5, h6, p, blockquote, pre, hr, /* Lists */ ul, ol, dl, dd, /* Tables */ th, td, /* Containers */ body, figure, dialog, /* Form Elements */ fieldset, legend, input, textarea, button, select, option { margin: 0; padding: 0; } ``` **N.B.** There’s nothing wrong with `* {}` for this purpose—I just wanted to be extra thorough. All tested on real devices. -
csswizardry created this gist
Aug 28, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,32 @@ # `margin` or `padding` Every element in [current Baseline browsers](https://web-platform-dx.github.io/web-features/supported-browsers/?target=widelyAvailable) that would need a `margin` or `padding` removing in a reset stylesheet. | Element | Chrome | Chrome for Android | Edge | Firefox | Firefox for Android | Safari | Safari for iOS | |-------------|:------:|:------------------:|:----:|:-------:|:-------------------:|:------:|:--------------:| | `body` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `h1` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `h2` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `h3` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `h4` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `h5` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `h6` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `p` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `hr` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `blockquote`| ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `pre` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `figure` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `ul` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `ol` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `dl` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `dd` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `th` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `td` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `fieldset` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `legend` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `input` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `textarea` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `button` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `dialog` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | `option` | ✔ | ✔ | ✔ | ✔ | ✔ | | | | `select` | | | | ✔ | ✔ | | ✔ |