This statement makes absolutely no sense?brunoais wrote:For some elements, yes, it makes a lot of sense to do that. But not on all elements... I still wonder if it's just a designer's pickyness or if it is ligit.hanakin wrote:
- a base font size and color on the HTML element
Code: Select all
html {
background: inherit;
color: inherit;
font: 16px sans-serif;
}
makes absolute sense but you are wrong to want anything that game changing to be set on the wildcard. That is extremely slow to render and causes more code changes then necessary in the end. Also who said anything about paddings? paddings are not treated the same as margins as we would be using box-sizing which means paddings are internalized and do not affect layout.brunoais wrote:That makes sense. Still, it's just a single "*{margin:0;padding:0}", though.hanakin wrote:
- removes default margins from elements since it makes more sense and is safer to explicitly set all margins for everything that requires them via wrapping elements.
Code: Select all
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
p,
pre {
margin: 0;
}
Again what are you talking about it is element by elementbrunoais wrote:I wouldn't do that to all. I'd just make it element-by-element.hanakin wrote:
- removes a few annoyances with browsers like default outlines on fieldsets and focused items
Code: Select all
button {
background: transparent;
border: 0;
padding: 0;
}
fieldset {
border: 0;
margin: 0;
padding: 0;
}
iframe {
border: 0;
}
ol,
ul {
margin: 0;
list-style: none;
padding: 0;
}
/**
* Suppress the focus outline on links that cannot be accessed via keyboard.
* This prevents an unwanted focus outline from appearing around elements that
* might still respond to pointer events.
*/
[tabindex="-1"]:focus {
outline: none !important;
}
it is a focused element by element approach to neutrality in browsers based on commonality it design