Follow-on fix for bug 457825. Use sheet principal for agent and user sheets. r=dbaron...
[wine-gecko.git] / layout / style / ua.css
blob90b1635bc03afac750f626b3db42e6aeba3c6639
1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/
9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 * for the specific language governing rights and limitations under the
12 * License.
14 * The Original Code is mozilla.org code.
16 * The Initial Developer of the Original Code is
17 * Netscape Communications Corporation.
18 * Portions created by the Initial Developer are Copyright (C) 1998
19 * the Initial Developer. All Rights Reserved.
21 * Contributor(s):
23 * Alternatively, the contents of this file may be used under the terms of
24 * either of the GNU General Public License Version 2 or later (the "GPL"),
25 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
26 * in which case the provisions of the GPL or the LGPL are applicable instead
27 * of those above. If you wish to allow use of your version of this file only
28 * under the terms of either the GPL or the LGPL, and not to allow others to
29 * use your version of this file under the terms of the MPL, indicate your
30 * decision by deleting the provisions above and replace them with the notice
31 * and other provisions required by the GPL or the LGPL. If you do not delete
32 * the provisions above, a recipient may use your version of this file under
33 * the terms of any one of the MPL, the GPL or the LGPL.
35 * ***** END LICENSE BLOCK ***** */
37 @import url(resource://gre/res/html.css);
38 @import url(chrome://global/content/xul.css);
40 @namespace parsererror url(http://www.mozilla.org/newlayout/xml/parsererror.xml);
42 /* magic -- some of these rules are important to keep pages from overriding
43 them
46 /* Tables */
48 *|*::-moz-table {
49 display: table !important;
50 -moz-box-sizing: border-box; /* XXX do we really want this? */
53 *|*::-moz-inline-table {
54 display: inline-table !important;
55 -moz-box-sizing: border-box; /* XXX do we really want this? */
58 *|*::-moz-table-outer {
59 display: inherit !important; /* table or inline-table */
60 margin: 0 ! important;
61 padding: 0 ! important;
62 border: none ! important;
63 float: inherit;
64 clear: inherit;
65 position: inherit;
66 top: inherit;
67 right: inherit;
68 bottom: inherit;
69 left: inherit;
70 z-index: inherit;
71 page-break-before: inherit;
72 page-break-after: inherit;
73 vertical-align: inherit; /* needed for inline-table */
74 line-height: inherit; /* needed for vertical-align on inline-table */
77 *|*::-moz-table-row {
78 display: table-row !important;
81 /* The ::-moz-table-column pseudo-element is for extra columns at the end
82 of a table. */
83 *|*::-moz-table-column {
84 display: table-column !important;
87 *|*::-moz-table-column-group {
88 display: table-column-group !important;
91 *|*::-moz-table-row-group {
92 display: table-row-group !important;
95 *|*::-moz-table-cell {
96 display: table-cell !important;
97 white-space: inherit;
100 /* Lists */
102 *|*::-moz-list-bullet, *|*::-moz-list-number {
103 display: inline;
104 vertical-align: baseline;
105 -moz-margin-end: 8px;
108 /* Links */
110 *|*:-moz-any-link {
111 cursor: pointer;
114 *|*:-moz-any-link:focus {
115 /* Don't specify the outline-color, we should always use initial value. */
116 outline: 1px dotted;
119 /* Miscellaneous */
121 *|*::-moz-anonymous-block, *|*::-moz-cell-content {
122 display: block !important;
123 position: static !important;
126 *|*::-moz-anonymous-block, *|*::-moz-anonymous-positioned-block {
127 /* we currently inherit from the inline that is split */
128 outline: inherit;
129 outline-offset: inherit;
130 clip-path: inherit;
131 filter: inherit;
132 mask: inherit;
135 *|*::-moz-xul-anonymous-block {
136 display: block ! important;
137 position: static ! important;
138 float: none ! important;
141 *|*::-moz-scrolled-content, *|*::-moz-scrolled-canvas,
142 *|*::-moz-scrolled-page-sequence {
143 /* e.g., text inputs, select boxes */
144 padding: inherit;
145 /* The display doesn't affect the kind of frame constructed here. This just
146 affects auto-width sizing of the block we create. */
147 display: block;
148 -moz-box-orient: inherit;
149 /* make unicode-bidi inherit, otherwise it has no effect on text inputs and
150 blocks with overflow: scroll; */
151 unicode-bidi: inherit;
152 -moz-column-count: inherit;
153 -moz-column-width: inherit;
154 -moz-column-gap: inherit;
155 /* Do not change these. nsCSSFrameConstructor depends on them to create a good
156 frame tree. */
157 position: static !important;
158 float: none !important;
161 *|*::-moz-viewport, *|*::-moz-viewport-scroll, *|*::-moz-canvas, *|*::-moz-scrolled-canvas {
162 display: block !important;
163 background-color: inherit;
166 *|*::-moz-viewport-scroll {
167 overflow: auto;
170 *|*::-moz-column-content {
171 /* the column boxes inside a column-flowed block */
172 /* make unicode-bidi inherit, otherwise it has no effect on column boxes */
173 unicode-bidi: inherit;
174 /* inherit the outer frame's display, otherwise we turn into an inline */
175 display: inherit !important;
176 /* Carry through our parent's height so that %-height children get
177 their heights set */
178 height: 100%;
181 *|*::-moz-page, *|*::-moz-page-sequence, *|*::-moz-scrolled-page-sequence {
182 display: block !important;
183 background: transparent;
186 *|*::-moz-pagecontent {
187 display: block !important;
190 *|*::-moz-pagebreak {
191 display: block !important;
194 *|*::-moz-anonymous-positioned-block {
195 display: block !important;
196 position: relative;
197 top: inherit;
198 left: inherit;
199 bottom: inherit;
200 right: inherit;
201 z-index: inherit;
202 clip: inherit;
203 opacity: inherit;
206 /* Printing */
208 @media print {
211 cursor: default !important;
214 *|*::-moz-viewport, *|*::-moz-viewport-scroll, *|*::-moz-canvas,
215 *|*::-moz-scrolled-canvas {
216 background-color: #737373 !important;
221 /* XML parse error reporting */
223 parsererror|parsererror {
224 display: block;
225 font-family: sans-serif;
226 font-weight: bold;
227 white-space: pre;
228 margin: 1em;
229 padding: 1em;
230 border-width: thin;
231 border-style: inset;
232 border-color: red;
233 font-size: 14pt;
234 background-color: lightyellow;
237 parsererror|sourcetext {
238 display: block;
239 white-space: pre;
240 font-family: -moz-fixed;
241 margin-top: 2em;
242 margin-bottom: 1em;
243 color: red;
244 font-weight: bold;
245 font-size: 12pt;