Why Preflight doesn't reset all margins #13298
andrecasal
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
So cool! I was looking for this it seems you was the only person who cared about this and tested it very well (the script you wrote was very cool to me ) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was wondering why the preflight styles don't just do:
instead of
So I've built an HTML page with all the html tags and ran a script to target any elements that still have some kind of margin:
I've found that only the
<dialog>
element hasmargin: auto
(tested on Chrome, Safari, Edge, and Firefox), horizontally centering the dialog, which is what you'd expect for a dialog.So that's why Preflight doesn't just do
Now you know 😉
Beta Was this translation helpful? Give feedback.
All reactions