shannonmoeller / reset-css

An unmodified* copy of Eric Meyer's CSS reset. PostCSS, webpack, Sass, and Less friendly.

Home Page:http://npm.im/reset-css

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSS Logical Properties

jlarmstrongiv opened this issue · comments

CSS Logical Properties, such as margin-block-start, are not overridden.

Quick fix:

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin-block-start: 0;
	margin-block-end: 0;
	padding-block-start: 0;
	padding-block-end: 0;
	border-inline-start: 0;
	border-inline-end: 0;
}

The existing resets of border: 0;, margin: 0;, and padding: 0; appear sufficient to override these new properties. Do you have an example of a case where this is not sufficient?

Test case: https://codepen.io/shannonmoeller/pen/qBEvREV?editors=1100

Closing due to inactivity. Feel free to reopen.