2 * MediaWiki style sheet for addressing (normalizing) browser bugs and inconsistencies.
4 * Meant for normalizing elements and attribute selectors used by MediaWiki.
5 * General element styles and element-bound classes belong to 'elements.css'.
6 * If adding/changing rules, please consult https://github.com/necolas/normalize.css v7.0.0
7 * which this file is heavily inspired from, additionally orients on our
8 * Basic (Grade C) supported browsers.
9 * See https://www.mediawiki.org/wiki/Compatibility#Browser_support_matrix
13 // Support all browser: Remove the margin (opinionated).
17 // Sectioning and grouping elements
20 // Support IE 9-11: Add the correct display.
25 // Support Firefox: Add the correct box sizing.
26 box-sizing: content-box;
28 // Support Edge and IE: Show the overflow.
35 border-bottom: 1px dotted;
39 @supports ( text-decoration: underline dotted ) {
41 // Support Chrome 57- and Firefox 39-: Remove the bottom border.
43 // Support Chrome, Edge, IE, Opera, and Safari: Add the correct text decoration.
44 text-decoration: underline dotted;
53 // Support Blink, Gecko, Webkit: Correct the inheritance and scaling of font size
54 // in all browsers for monospace font. See T176636.
55 font-family: monospace, monospace;
60 // Prevent citations and subscripts from interfering with the line height.
67 // Support IE 8-10: Remove the border on images inside links.
72 // Figure elements tend to only appear inside wikitext rather than standaline,
73 // where existing margins already apply to the container element.
77 // Forms and form elements
84 // Support Firefox, Safari: Remove user-agent stylesheet `margin`.
93 // Support Firefox: Remove the inner border and padding.
94 border-style: none; // stylelint-disable-line declaration-property-value-disallowed-list
100 // Support IE: Correct the color inheritance from `fieldset` elements.
102 // Support all browsers: Remove the padding so developers are not caught out when they
103 // zero out `fieldset` elements in all browsers.