gecko-dev/layout/style/quirk.css

73 lines
1.9 KiB
CSS

/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
/* test rule: remove before shipping
.moz-quirktest { text-decoration: underline; color: lime; }
*/
/* Quirk: input images have a blue border (b=28010)*/
input[type=image] {
border: 2px solid blue;
}
/* Quirk: DL under a OL has no margins (b=33300) */
ol dl {
margin: 0 0 0 0;
}
/* Quirk: UL under a DL has no margins (b=32989) */
dl ul {
margin: 0 0 0 0;
color: red;
}
/* make orphaned li's have inside bullet */
li {
list-style-position: inside;
}
/* restore outside position for lists inside li's */
li ul, li ol, li dir, li menu {
list-style-position: outside;
}
/* undo previous two rules for properly nested lists */
ul li, dir li, menu li, ol li,
ul ul, ul dir, ul menu, ul ol,
dir ul, dir dir, dir menu, dir ol,
menu ul, menu dir, menu menu, menu ol,
ol ul, ol dir, ol menu, ol ol {
list-style-position: inherit;
}
/* Ensure that we get proper padding if the very first node
beneath an <li> is another <ul>. This is an ugly way to
fix the problem, because it extends the <li> up into
what would otherwise appear to be the <ul>'s space. */
li > ul:first-node {
padding-top: 1em;
}
li > ol:first-node {
padding-top: 1em;
}