Bug 458861. Validate TrueType headers before activating downloaded font. r=roc, sr...
[wine-gecko.git] / layout / style / ua.css
blob0925fdfce9509c500cfc7a7215eb17f3c94f3798
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);
39 @import url(resource://gre/res/quirk.css);
41 @namespace parsererror url(http://www.mozilla.org/newlayout/xml/parsererror.xml);
43 /* magic -- some of these rules are important to keep pages from overriding
44 them
47 /* Tables */
49 *|*::-moz-table {
50 display: table !important;
51 -moz-box-sizing: border-box; /* XXX do we really want this? */
54 *|*::-moz-inline-table {
55 display: inline-table !important;
56 -moz-box-sizing: border-box; /* XXX do we really want this? */
59 *|*::-moz-table-outer {
60 display: inherit !important; /* table or inline-table */
61 margin: 0 ! important;
62 padding: 0 ! important;
63 border: none ! important;
64 float: inherit;
65 clear: inherit;
66 position: inherit;
67 top: inherit;
68 right: inherit;
69 bottom: inherit;
70 left: inherit;
71 z-index: inherit;
72 page-break-before: inherit;
73 page-break-after: inherit;
74 vertical-align: inherit; /* needed for inline-table */
75 line-height: inherit; /* needed for vertical-align on inline-table */
78 *|*::-moz-table-row {
79 display: table-row !important;
82 /* The ::-moz-table-column pseudo-element is for extra columns at the end
83 of a table. */
84 *|*::-moz-table-column {
85 display: table-column !important;
88 *|*::-moz-table-column-group {
89 display: table-column-group !important;
92 *|*::-moz-table-row-group {
93 display: table-row-group !important;
96 *|*::-moz-table-cell {
97 display: table-cell !important;
98 white-space: inherit;
101 /* Lists */
103 *|*::-moz-list-bullet, *|*::-moz-list-number {
104 display: inline;
105 vertical-align: baseline;
106 -moz-margin-end: 8px;
109 /* Links */
111 *|*:-moz-any-link {
112 cursor: pointer;
115 *|*:-moz-any-link:focus {
116 /* Don't specify the outline-color, we should always use initial value. */
117 outline: 1px dotted;
120 /* Miscellaneous */
122 *|*::-moz-anonymous-block, *|*::-moz-cell-content {
123 display: block !important;
124 position: static !important;
127 *|*::-moz-anonymous-block, *|*::-moz-anonymous-positioned-block {
128 /* we currently inherit from the inline that is split */
129 outline: inherit;
130 outline-offset: inherit;
131 clip-path: inherit;
132 filter: inherit;
133 mask: inherit;
136 *|*::-moz-xul-anonymous-block {
137 display: block ! important;
138 position: static ! important;
139 float: none ! important;
142 *|*::-moz-scrolled-content, *|*::-moz-scrolled-canvas,
143 *|*::-moz-scrolled-page-sequence {
144 /* e.g., text inputs, select boxes */
145 padding: inherit;
146 /* The display doesn't affect the kind of frame constructed here. This just
147 affects auto-width sizing of the block we create. */
148 display: block;
149 -moz-box-orient: inherit;
150 /* make unicode-bidi inherit, otherwise it has no effect on text inputs and
151 blocks with overflow: scroll; */
152 unicode-bidi: inherit;
153 -moz-column-count: inherit;
154 -moz-column-width: inherit;
155 -moz-column-gap: inherit;
156 /* Do not change these. nsCSSFrameConstructor depends on them to create a good
157 frame tree. */
158 position: static !important;
159 float: none !important;
162 *|*::-moz-viewport, *|*::-moz-viewport-scroll, *|*::-moz-canvas, *|*::-moz-scrolled-canvas {
163 display: block !important;
164 background-color: inherit;
167 *|*::-moz-viewport-scroll {
168 overflow: auto;
171 *|*::-moz-column-content {
172 /* the column boxes inside a column-flowed block */
173 /* make unicode-bidi inherit, otherwise it has no effect on column boxes */
174 unicode-bidi: inherit;
175 /* inherit the outer frame's display, otherwise we turn into an inline */
176 display: inherit !important;
177 /* Carry through our parent's height so that %-height children get
178 their heights set */
179 height: 100%;
182 *|*::-moz-page, *|*::-moz-page-sequence, *|*::-moz-scrolled-page-sequence {
183 display: block !important;
184 background: transparent;
187 *|*::-moz-pagecontent {
188 display: block !important;
191 *|*::-moz-pagebreak {
192 display: block !important;
195 *|*::-moz-anonymous-positioned-block {
196 display: block !important;
197 position: relative;
198 top: inherit;
199 left: inherit;
200 bottom: inherit;
201 right: inherit;
202 z-index: inherit;
203 clip: inherit;
204 opacity: inherit;
207 /* Printing */
209 @media print {
212 cursor: default !important;
215 *|*::-moz-viewport, *|*::-moz-viewport-scroll, *|*::-moz-canvas,
216 *|*::-moz-scrolled-canvas {
217 background-color: #737373 !important;
222 /* XML parse error reporting */
224 parsererror|parsererror {
225 display: block;
226 font-family: sans-serif;
227 font-weight: bold;
228 white-space: pre;
229 margin: 1em;
230 padding: 1em;
231 border-width: thin;
232 border-style: inset;
233 border-color: red;
234 font-size: 14pt;
235 background-color: lightyellow;
238 parsererror|sourcetext {
239 display: block;
240 white-space: pre;
241 font-family: -moz-fixed;
242 margin-top: 2em;
243 margin-bottom: 1em;
244 color: red;
245 font-weight: bold;
246 font-size: 12pt;