layout/style/html.css

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 @namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
michael@0 6 @namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
michael@0 7
michael@0 8 /* bidi */
michael@0 9
michael@0 10 [dir="rtl"] {
michael@0 11 direction: rtl;
michael@0 12 unicode-bidi: embed;
michael@0 13 }
michael@0 14 [dir="ltr"] {
michael@0 15 direction: ltr;
michael@0 16 unicode-bidi: embed;
michael@0 17 }
michael@0 18
michael@0 19 bdi:-moz-dir(ltr), [dir="auto"]:-moz-dir(ltr) { direction: ltr; }
michael@0 20 bdi:-moz-dir(rtl), [dir="auto"]:-moz-dir(rtl) { direction: rtl; }
michael@0 21
michael@0 22 /* To ensure http://www.w3.org/TR/REC-html40/struct/dirlang.html#style-bidi:
michael@0 23 *
michael@0 24 * "When a block element that does not have a dir attribute is transformed to
michael@0 25 * the style of an inline element by a style sheet, the resulting presentation
michael@0 26 * should be equivalent, in terms of bidirectional formatting, to the
michael@0 27 * formatting obtained by explicitly adding a dir attribute (assigned the
michael@0 28 * inherited value) to the transformed element."
michael@0 29 *
michael@0 30 * and the rules in http://dev.w3.org/html5/spec/rendering.html#rendering
michael@0 31 */
michael@0 32
michael@0 33 address, address[dir],
michael@0 34 article, article[dir],
michael@0 35 aside, aside[dir],
michael@0 36 blockquote, blockquote[dir],
michael@0 37 body, body[dir],
michael@0 38 caption, caption[dir],
michael@0 39 center, center[dir],
michael@0 40 col, col[dir],
michael@0 41 colgroup, colgroup[dir],
michael@0 42 dd, dd[dir],
michael@0 43 dir, dir[dir],
michael@0 44 div, div[dir],
michael@0 45 dl, dl[dir],
michael@0 46 dt, dt[dir],
michael@0 47 fieldset, fieldset[dir],
michael@0 48 figcaption, figcaption[dir],
michael@0 49 figure, figure[dir],
michael@0 50 footer, footer[dir],
michael@0 51 form, form[dir],
michael@0 52 h1, h1[dir],
michael@0 53 h2, h2[dir],
michael@0 54 h3, h3[dir],
michael@0 55 h4, h4[dir],
michael@0 56 h5, h5[dir],
michael@0 57 h6, h6[dir],
michael@0 58 header, header[dir],
michael@0 59 hgroup, hgroup[dir],
michael@0 60 hr, hr[dir],
michael@0 61 html, html[dir],
michael@0 62 legend, legend[dir],
michael@0 63 li, li[dir],
michael@0 64 listing, listing[dir],
michael@0 65 main, main[dir],
michael@0 66 marquee, marquee[dir],
michael@0 67 menu, menu[dir],
michael@0 68 nav, nav[dir],
michael@0 69 noframes, noframes[dir],
michael@0 70 ol, ol[dir],
michael@0 71 p, p[dir],
michael@0 72 plaintext, plaintext[dir],
michael@0 73 pre, pre[dir],
michael@0 74 section, section[dir],
michael@0 75 summary, summary[dir],
michael@0 76 table, table[dir],
michael@0 77 tbody, tbody[dir],
michael@0 78 td, td[dir],
michael@0 79 tfoot, tfoot[dir],
michael@0 80 th, th[dir],
michael@0 81 thead, thead[dir],
michael@0 82 tr, tr[dir],
michael@0 83 ul, ul[dir],
michael@0 84 xmp, xmp[dir] {
michael@0 85 unicode-bidi: -moz-isolate;
michael@0 86 }
michael@0 87
michael@0 88 bdi, bdi[dir], output, output[dir], [dir="auto"] {
michael@0 89 unicode-bidi: -moz-isolate;
michael@0 90 }
michael@0 91 bdo, bdo[dir] {
michael@0 92 unicode-bidi: bidi-override;
michael@0 93 }
michael@0 94 bdo[dir="auto"] {
michael@0 95 unicode-bidi: -moz-isolate-override;
michael@0 96 }
michael@0 97 textarea[dir="auto"], pre[dir="auto"] { unicode-bidi: -moz-plaintext; }
michael@0 98
michael@0 99 /* blocks */
michael@0 100
michael@0 101 article,
michael@0 102 aside,
michael@0 103 div,
michael@0 104 dt,
michael@0 105 figcaption,
michael@0 106 footer,
michael@0 107 form,
michael@0 108 header,
michael@0 109 hgroup,
michael@0 110 html,
michael@0 111 main,
michael@0 112 nav,
michael@0 113 section {
michael@0 114 display: block;
michael@0 115 }
michael@0 116
michael@0 117 body {
michael@0 118 display: block;
michael@0 119 margin: 8px;
michael@0 120 }
michael@0 121
michael@0 122 p, dl, multicol {
michael@0 123 display: block;
michael@0 124 margin: 1em 0;
michael@0 125 }
michael@0 126
michael@0 127 dd {
michael@0 128 display: block;
michael@0 129 -moz-margin-start: 40px;
michael@0 130 }
michael@0 131
michael@0 132 blockquote, figure {
michael@0 133 display: block;
michael@0 134 margin: 1em 40px;
michael@0 135 }
michael@0 136
michael@0 137 address {
michael@0 138 display: block;
michael@0 139 font-style: italic;
michael@0 140 }
michael@0 141
michael@0 142 center {
michael@0 143 display: block;
michael@0 144 text-align: -moz-center;
michael@0 145 }
michael@0 146
michael@0 147 blockquote[type=cite] {
michael@0 148 display: block;
michael@0 149 margin: 1em 0px;
michael@0 150 -moz-padding-start: 1em;
michael@0 151 -moz-border-start: solid;
michael@0 152 border-color: blue;
michael@0 153 border-width: thin;
michael@0 154 }
michael@0 155
michael@0 156 span[_moz_quote=true] {
michael@0 157 color: blue;
michael@0 158 }
michael@0 159
michael@0 160 pre[_moz_quote=true] {
michael@0 161 color: blue;
michael@0 162 }
michael@0 163
michael@0 164 h1 {
michael@0 165 display: block;
michael@0 166 font-size: 2em;
michael@0 167 font-weight: bold;
michael@0 168 margin: .67em 0;
michael@0 169 }
michael@0 170
michael@0 171 h2,
michael@0 172 :-moz-any(article, aside, nav, section)
michael@0 173 h1 {
michael@0 174 display: block;
michael@0 175 font-size: 1.5em;
michael@0 176 font-weight: bold;
michael@0 177 margin: .83em 0;
michael@0 178 }
michael@0 179
michael@0 180 h3,
michael@0 181 :-moz-any(article, aside, nav, section)
michael@0 182 :-moz-any(article, aside, nav, section)
michael@0 183 h1 {
michael@0 184 display: block;
michael@0 185 font-size: 1.17em;
michael@0 186 font-weight: bold;
michael@0 187 margin: 1em 0;
michael@0 188 }
michael@0 189
michael@0 190 h4,
michael@0 191 :-moz-any(article, aside, nav, section)
michael@0 192 :-moz-any(article, aside, nav, section)
michael@0 193 :-moz-any(article, aside, nav, section)
michael@0 194 h1 {
michael@0 195 display: block;
michael@0 196 font-size: 1.00em;
michael@0 197 font-weight: bold;
michael@0 198 margin: 1.33em 0;
michael@0 199 }
michael@0 200
michael@0 201 h5,
michael@0 202 :-moz-any(article, aside, nav, section)
michael@0 203 :-moz-any(article, aside, nav, section)
michael@0 204 :-moz-any(article, aside, nav, section)
michael@0 205 :-moz-any(article, aside, nav, section)
michael@0 206 h1 {
michael@0 207 display: block;
michael@0 208 font-size: 0.83em;
michael@0 209 font-weight: bold;
michael@0 210 margin: 1.67em 0;
michael@0 211 }
michael@0 212
michael@0 213 h6,
michael@0 214 :-moz-any(article, aside, nav, section)
michael@0 215 :-moz-any(article, aside, nav, section)
michael@0 216 :-moz-any(article, aside, nav, section)
michael@0 217 :-moz-any(article, aside, nav, section)
michael@0 218 :-moz-any(article, aside, nav, section)
michael@0 219 h1 {
michael@0 220 display: block;
michael@0 221 font-size: 0.67em;
michael@0 222 font-weight: bold;
michael@0 223 margin: 2.33em 0;
michael@0 224 }
michael@0 225
michael@0 226 listing {
michael@0 227 display: block;
michael@0 228 font-family: -moz-fixed;
michael@0 229 font-size: medium;
michael@0 230 white-space: pre;
michael@0 231 margin: 1em 0;
michael@0 232 }
michael@0 233
michael@0 234 xmp, pre, plaintext {
michael@0 235 display: block;
michael@0 236 font-family: -moz-fixed;
michael@0 237 white-space: pre;
michael@0 238 margin: 1em 0;
michael@0 239 }
michael@0 240
michael@0 241 /* tables */
michael@0 242
michael@0 243 table {
michael@0 244 display: table;
michael@0 245 border-spacing: 2px;
michael@0 246 border-collapse: separate;
michael@0 247 margin-top: 0;
michael@0 248 margin-bottom: 0;
michael@0 249 /* XXXldb do we want this if we're border-collapse:collapse ? */
michael@0 250 box-sizing: border-box;
michael@0 251 text-indent: 0;
michael@0 252 }
michael@0 253
michael@0 254 table[align="left"] {
michael@0 255 float: left;
michael@0 256 }
michael@0 257
michael@0 258 table[align="right"] {
michael@0 259 float: right;
michael@0 260 text-align: start;
michael@0 261 }
michael@0 262
michael@0 263
michael@0 264 /* border collapse rules */
michael@0 265
michael@0 266 /* Set hidden if we have 'frame' or 'rules' attribute.
michael@0 267 Set it on all sides when we do so there's more consistency
michael@0 268 in what authors should expect */
michael@0 269
michael@0 270 /* Put this first so 'border' and 'frame' rules can override it. */
michael@0 271 table[rules] {
michael@0 272 border-width: thin;
michael@0 273 border-style: hidden;
michael@0 274 }
michael@0 275
michael@0 276 /* 'border' before 'frame' so 'frame' overrides
michael@0 277 A border with a given value should, of course, pass that value
michael@0 278 as the border-width in pixels -> attr mapping */
michael@0 279
michael@0 280 /* :-moz-table-border-nonzero is like [border]:not([border="0"]) except it
michael@0 281 also checks for other zero-like values according to HTML attribute
michael@0 282 parsing rules */
michael@0 283 table:-moz-table-border-nonzero {
michael@0 284 border-width: thin;
michael@0 285 border-style: outset;
michael@0 286 }
michael@0 287
michael@0 288 table[frame] {
michael@0 289 border: thin hidden;
michael@0 290 }
michael@0 291
michael@0 292 /* specificity must beat table:-moz-table-border-nonzero rule above */
michael@0 293 table[frame="void"] { border-style: hidden; }
michael@0 294 table[frame="above"] { border-style: outset hidden hidden hidden; }
michael@0 295 table[frame="below"] { border-style: hidden hidden outset hidden; }
michael@0 296 table[frame="lhs"] { border-style: hidden hidden hidden outset; }
michael@0 297 table[frame="rhs"] { border-style: hidden outset hidden hidden; }
michael@0 298 table[frame="hsides"] { border-style: outset hidden; }
michael@0 299 table[frame="vsides"] { border-style: hidden outset; }
michael@0 300 table[frame="box"],
michael@0 301 table[frame="border"] { border-style: outset; }
michael@0 302
michael@0 303
michael@0 304 /* Internal Table Borders */
michael@0 305
michael@0 306 /* 'border' cell borders first */
michael@0 307
michael@0 308 table:-moz-table-border-nonzero > * > tr > td,
michael@0 309 table:-moz-table-border-nonzero > * > tr > th,
michael@0 310 table:-moz-table-border-nonzero > * > td,
michael@0 311 table:-moz-table-border-nonzero > * > th,
michael@0 312 table:-moz-table-border-nonzero > td,
michael@0 313 table:-moz-table-border-nonzero > th
michael@0 314 {
michael@0 315 border-width: thin;
michael@0 316 border-style: inset;
michael@0 317 }
michael@0 318
michael@0 319 /* collapse only if rules are really specified */
michael@0 320 table[rules]:not([rules="none"]):not([rules=""]) {
michael@0 321 border-collapse: collapse;
michael@0 322 }
michael@0 323
michael@0 324 /* only specified rules override 'border' settings
michael@0 325 (increased specificity to achieve this) */
michael@0 326 table[rules]:not([rules=""])> tr > td,
michael@0 327 table[rules]:not([rules=""])> * > tr > td,
michael@0 328 table[rules]:not([rules=""])> tr > th,
michael@0 329 table[rules]:not([rules=""])> * > tr > th,
michael@0 330 table[rules]:not([rules=""])> td,
michael@0 331 table[rules]:not([rules=""])> th
michael@0 332 {
michael@0 333 border-width: thin;
michael@0 334 border-style: none;
michael@0 335 }
michael@0 336
michael@0 337
michael@0 338 table[rules][rules="none"] > tr > td,
michael@0 339 table[rules][rules="none"] > * > tr > td,
michael@0 340 table[rules][rules="none"] > tr > th,
michael@0 341 table[rules][rules="none"] > * > tr > th,
michael@0 342 table[rules][rules="none"] > td,
michael@0 343 table[rules][rules="none"] > th
michael@0 344 {
michael@0 345 border-width: thin;
michael@0 346 border-style: none;
michael@0 347 }
michael@0 348
michael@0 349 table[rules][rules="all"] > tr > td,
michael@0 350 table[rules][rules="all"] > * > tr > td,
michael@0 351 table[rules][rules="all"] > tr > th,
michael@0 352 table[rules][rules="all"] > * > tr > th,
michael@0 353 table[rules][rules="all"] > td,
michael@0 354 table[rules][rules="all"] > th
michael@0 355 {
michael@0 356 border-width: thin;
michael@0 357 border-style: solid;
michael@0 358 }
michael@0 359
michael@0 360 table[rules][rules="rows"] > tr,
michael@0 361 table[rules][rules="rows"] > * > tr {
michael@0 362 border-top-width: thin;
michael@0 363 border-bottom-width: thin;
michael@0 364 border-top-style: solid;
michael@0 365 border-bottom-style: solid;
michael@0 366 }
michael@0 367
michael@0 368
michael@0 369 table[rules][rules="cols"] > tr > td,
michael@0 370 table[rules][rules="cols"] > * > tr > td,
michael@0 371 table[rules][rules="cols"] > tr > th,
michael@0 372 table[rules][rules="cols"] > * > tr > th {
michael@0 373 border-left-width: thin;
michael@0 374 border-right-width: thin;
michael@0 375 border-left-style: solid;
michael@0 376 border-right-style: solid;
michael@0 377 }
michael@0 378
michael@0 379 table[rules][rules="groups"] > colgroup {
michael@0 380 border-left-width: thin;
michael@0 381 border-right-width: thin;
michael@0 382 border-left-style: solid;
michael@0 383 border-right-style: solid;
michael@0 384 }
michael@0 385 table[rules][rules="groups"] > tfoot,
michael@0 386 table[rules][rules="groups"] > thead,
michael@0 387 table[rules][rules="groups"] > tbody {
michael@0 388 border-top-width: thin;
michael@0 389 border-bottom-width: thin;
michael@0 390 border-top-style: solid;
michael@0 391 border-bottom-style: solid;
michael@0 392 }
michael@0 393
michael@0 394
michael@0 395 /* caption inherits from table not table-outer */
michael@0 396 caption {
michael@0 397 display: table-caption;
michael@0 398 text-align: center;
michael@0 399 }
michael@0 400
michael@0 401 table[align="center"] > caption {
michael@0 402 margin-left: auto;
michael@0 403 margin-right: auto;
michael@0 404 }
michael@0 405
michael@0 406 table[align="center"] > caption[align="left"] {
michael@0 407 margin-right: 0;
michael@0 408 }
michael@0 409
michael@0 410 table[align="center"] > caption[align="right"] {
michael@0 411 margin-left: 0;
michael@0 412 }
michael@0 413
michael@0 414 tr {
michael@0 415 display: table-row;
michael@0 416 vertical-align: inherit;
michael@0 417 }
michael@0 418
michael@0 419 col {
michael@0 420 display: table-column;
michael@0 421 }
michael@0 422
michael@0 423 colgroup {
michael@0 424 display: table-column-group;
michael@0 425 }
michael@0 426
michael@0 427 tbody {
michael@0 428 display: table-row-group;
michael@0 429 vertical-align: middle;
michael@0 430 }
michael@0 431
michael@0 432 thead {
michael@0 433 display: table-header-group;
michael@0 434 vertical-align: middle;
michael@0 435 }
michael@0 436
michael@0 437 tfoot {
michael@0 438 display: table-footer-group;
michael@0 439 vertical-align: middle;
michael@0 440 }
michael@0 441
michael@0 442 /* for XHTML tables without tbody */
michael@0 443 table > tr {
michael@0 444 vertical-align: middle;
michael@0 445 }
michael@0 446
michael@0 447 td {
michael@0 448 display: table-cell;
michael@0 449 vertical-align: inherit;
michael@0 450 text-align: inherit;
michael@0 451 padding: 1px;
michael@0 452 }
michael@0 453
michael@0 454 th {
michael@0 455 display: table-cell;
michael@0 456 vertical-align: inherit;
michael@0 457 font-weight: bold;
michael@0 458 padding: 1px;
michael@0 459 }
michael@0 460
michael@0 461 tr > form:-moz-is-html, tbody > form:-moz-is-html,
michael@0 462 thead > form:-moz-is-html, tfoot > form:-moz-is-html,
michael@0 463 table > form:-moz-is-html {
michael@0 464 /* Important: don't show these forms in HTML */
michael@0 465 display: none !important;
michael@0 466 }
michael@0 467
michael@0 468 table[bordercolor] > tbody,
michael@0 469 table[bordercolor] > thead,
michael@0 470 table[bordercolor] > tfoot,
michael@0 471 table[bordercolor] > col,
michael@0 472 table[bordercolor] > colgroup,
michael@0 473 table[bordercolor] > tr,
michael@0 474 table[bordercolor] > * > tr,
michael@0 475 table[bordercolor] > tr > td,
michael@0 476 table[bordercolor] > * > tr > td,
michael@0 477 table[bordercolor] > tr > th,
michael@0 478 table[bordercolor] > * > tr > th {
michael@0 479 border-color: inherit;
michael@0 480 }
michael@0 481
michael@0 482 /* inlines */
michael@0 483
michael@0 484 q:before {
michael@0 485 content: open-quote;
michael@0 486 }
michael@0 487
michael@0 488 q:after {
michael@0 489 content: close-quote;
michael@0 490 }
michael@0 491
michael@0 492 b, strong {
michael@0 493 font-weight: bolder;
michael@0 494 }
michael@0 495
michael@0 496 i, cite, em, var, dfn {
michael@0 497 font-style: italic;
michael@0 498 }
michael@0 499
michael@0 500 tt, code, kbd, samp {
michael@0 501 font-family: -moz-fixed;
michael@0 502 }
michael@0 503
michael@0 504 u, ins {
michael@0 505 text-decoration: underline;
michael@0 506 }
michael@0 507
michael@0 508 s, strike, del {
michael@0 509 text-decoration: line-through;
michael@0 510 }
michael@0 511
michael@0 512 big {
michael@0 513 font-size: larger;
michael@0 514 }
michael@0 515
michael@0 516 small {
michael@0 517 font-size: smaller;
michael@0 518 }
michael@0 519
michael@0 520 sub {
michael@0 521 vertical-align: sub;
michael@0 522 font-size: smaller;
michael@0 523 line-height: normal;
michael@0 524 }
michael@0 525
michael@0 526 sup {
michael@0 527 vertical-align: super;
michael@0 528 font-size: smaller;
michael@0 529 line-height: normal;
michael@0 530 }
michael@0 531
michael@0 532 nobr {
michael@0 533 white-space: nowrap;
michael@0 534 }
michael@0 535
michael@0 536 mark {
michael@0 537 background: yellow;
michael@0 538 color: black;
michael@0 539 }
michael@0 540
michael@0 541 /* titles */
michael@0 542 abbr[title], acronym[title] {
michael@0 543 border-bottom: dotted 1px;
michael@0 544 }
michael@0 545
michael@0 546 /* lists */
michael@0 547
michael@0 548 ul, menu, dir {
michael@0 549 display: block;
michael@0 550 list-style-type: disc;
michael@0 551 margin: 1em 0;
michael@0 552 -moz-padding-start: 40px;
michael@0 553 }
michael@0 554
michael@0 555 menu[type="context"] {
michael@0 556 display: none !important;
michael@0 557 }
michael@0 558
michael@0 559 ol {
michael@0 560 display: block;
michael@0 561 list-style-type: decimal;
michael@0 562 margin: 1em 0;
michael@0 563 -moz-padding-start: 40px;
michael@0 564 }
michael@0 565
michael@0 566 li {
michael@0 567 display: list-item;
michael@0 568 }
michael@0 569
michael@0 570 /* nested lists have no top/bottom margins */
michael@0 571 :-moz-any(ul, ol, dir, menu, dl) ul,
michael@0 572 :-moz-any(ul, ol, dir, menu, dl) ol,
michael@0 573 :-moz-any(ul, ol, dir, menu, dl) dir,
michael@0 574 :-moz-any(ul, ol, dir, menu, dl) menu,
michael@0 575 :-moz-any(ul, ol, dir, menu, dl) dl {
michael@0 576 margin-top: 0;
michael@0 577 margin-bottom: 0;
michael@0 578 }
michael@0 579
michael@0 580 /* 2 deep unordered lists use a circle */
michael@0 581 :-moz-any(ol, ul, menu, dir) ul,
michael@0 582 :-moz-any(ol, ul, menu, dir) menu,
michael@0 583 :-moz-any(ol, ul, menu, dir) dir {
michael@0 584 list-style-type: circle;
michael@0 585 }
michael@0 586
michael@0 587 /* 3 deep (or more) unordered lists use a square */
michael@0 588 :-moz-any(ol, ul, menu, dir) :-moz-any(ol, ul, menu, dir) ul,
michael@0 589 :-moz-any(ol, ul, menu, dir) :-moz-any(ol, ul, menu, dir) menu,
michael@0 590 :-moz-any(ol, ul, menu, dir) :-moz-any(ol, ul, menu, dir) dir {
michael@0 591 list-style-type: square;
michael@0 592 }
michael@0 593
michael@0 594
michael@0 595 /* leafs */
michael@0 596
michael@0 597 /* <hr> noshade and color attributes are handled completely by
michael@0 598 * the nsHTMLHRElement attribute mapping code
michael@0 599 */
michael@0 600 hr {
michael@0 601 display: block;
michael@0 602 height: 2px;
michael@0 603 border: 1px inset;
michael@0 604 margin: 0.5em auto 0.5em auto;
michael@0 605 color: gray;
michael@0 606 -moz-float-edge: margin-box;
michael@0 607 box-sizing: border-box;
michael@0 608 }
michael@0 609
michael@0 610 hr[size="1"] {
michael@0 611 border-style: solid none none none;
michael@0 612 }
michael@0 613
michael@0 614 img:-moz-broken::before, input:-moz-broken::before,
michael@0 615 img:-moz-user-disabled::before, input:-moz-user-disabled::before,
michael@0 616 img:-moz-loading::before, input:-moz-loading::before,
michael@0 617 applet:-moz-empty-except-children-with-localname(param):-moz-broken::before,
michael@0 618 applet:-moz-empty-except-children-with-localname(param):-moz-user-disabled::before {
michael@0 619 content: -moz-alt-content !important;
michael@0 620 unicode-bidi: -moz-isolate;
michael@0 621 }
michael@0 622
michael@0 623 :-moz-any(object,applet):-moz-any(:-moz-broken,:-moz-user-disabled) > *|* {
michael@0 624 /*
michael@0 625 Inherit in the object's alignment so that if we aren't aligned explicitly
michael@0 626 we'll end up in the right place vertically. See bug 36997. Note that this
michael@0 627 is not !important because we _might_ be aligned explicitly.
michael@0 628 */
michael@0 629 vertical-align: inherit;
michael@0 630 }
michael@0 631
michael@0 632 img:-moz-suppressed, input:-moz-suppressed, object:-moz-suppressed,
michael@0 633 embed:-moz-suppressed, applet:-moz-suppressed {
michael@0 634 /*
michael@0 635 Set visibility too in case the page changes display. Note that we _may_
michael@0 636 want to just set visibility and not display, in general, if we find that
michael@0 637 display:none breaks too many layouts. And if we decide we really do want
michael@0 638 people to be able to right-click blocked images, etc, we need to set
michael@0 639 neither one, and hack the painting code.... :(
michael@0 640 */
michael@0 641 display: none !important;
michael@0 642 visibility: hidden !important;
michael@0 643 }
michael@0 644
michael@0 645 img[usemap], object[usemap] {
michael@0 646 color: blue;
michael@0 647 }
michael@0 648
michael@0 649 frameset {
michael@0 650 display: block ! important;
michael@0 651 overflow: -moz-hidden-unscrollable;
michael@0 652 position: static ! important;
michael@0 653 float: none ! important;
michael@0 654 border: none ! important;
michael@0 655 }
michael@0 656
michael@0 657 link {
michael@0 658 display: none;
michael@0 659 }
michael@0 660
michael@0 661 frame {
michael@0 662 border-radius: 0 ! important;
michael@0 663 }
michael@0 664
michael@0 665 iframe {
michael@0 666 border: 2px inset;
michael@0 667 }
michael@0 668
michael@0 669 noframes {
michael@0 670 display: none;
michael@0 671 }
michael@0 672
michael@0 673 spacer {
michael@0 674 position: static ! important;
michael@0 675 float: none ! important;
michael@0 676 }
michael@0 677
michael@0 678 canvas {
michael@0 679 -moz-user-select: none;
michael@0 680 }
michael@0 681
michael@0 682 /* focusable content: anything w/ tabindex >=0 is focusable, but we
michael@0 683 skip drawing a focus outline on a few things that handle it
michael@0 684 themselves. */
michael@0 685 :-moz-focusring:not(input):not(button):not(select):not(textarea):not(iframe):not(frame):not(body):not(html) {
michael@0 686 /* Don't specify the outline-color, we should always use initial value. */
michael@0 687 outline: 1px dotted;
michael@0 688 }
michael@0 689
michael@0 690 /* hidden elements */
michael@0 691 base, basefont, datalist, head, meta, script, style, title,
michael@0 692 noembed, param, template {
michael@0 693 display: none;
michael@0 694 }
michael@0 695
michael@0 696 area {
michael@0 697 /* Don't give it frames other than its imageframe */
michael@0 698 display: none ! important;
michael@0 699 }
michael@0 700
michael@0 701 iframe:-moz-full-screen {
michael@0 702 /* iframes in full-screen mode don't show a border. */
michael@0 703 border: none;
michael@0 704 }
michael@0 705
michael@0 706 /* media elements */
michael@0 707 video > xul|videocontrols, audio > xul|videocontrols {
michael@0 708 display: -moz-box;
michael@0 709 -moz-box-orient: vertical;
michael@0 710 -moz-binding: url("chrome://global/content/bindings/videocontrols.xml#videoControls");
michael@0 711 }
michael@0 712
michael@0 713 video:not([controls]) > xul|videocontrols,
michael@0 714 audio:not([controls]) > xul|videocontrols {
michael@0 715 visibility: hidden;
michael@0 716 -moz-binding: none;
michael@0 717 }
michael@0 718
michael@0 719 audio:not([controls]) {
michael@0 720 display: none;
michael@0 721 }
michael@0 722
michael@0 723 *|*::-moz-html-canvas-content {
michael@0 724 display: block !important;
michael@0 725 /* we want to be an absolute and fixed container */
michael@0 726 -moz-transform: translate(0) !important;
michael@0 727 }
michael@0 728
michael@0 729 video > .caption-box {
michael@0 730 position: relative;
michael@0 731 overflow: hidden;
michael@0 732 }
michael@0 733
michael@0 734 /* emulation of non-standard HTML <marquee> tag */
michael@0 735 marquee {
michael@0 736 width: -moz-available;
michael@0 737 display: inline-block;
michael@0 738 vertical-align: text-bottom;
michael@0 739 text-align: start;
michael@0 740 -moz-binding: url('chrome://xbl-marquee/content/xbl-marquee.xml#marquee-horizontal');
michael@0 741 }
michael@0 742
michael@0 743 marquee[direction="up"], marquee[direction="down"] {
michael@0 744 -moz-binding: url('chrome://xbl-marquee/content/xbl-marquee.xml#marquee-vertical');
michael@0 745 height: 200px;
michael@0 746 }
michael@0 747
michael@0 748 /* PRINT ONLY rules follow */
michael@0 749 @media print {
michael@0 750
michael@0 751 marquee { -moz-binding: none; }
michael@0 752
michael@0 753 }

mercurial