layout/svg/svg.css

branch
TOR_BUG_9701
changeset 8
97036ab72558
equal deleted inserted replaced
-1:000000000000 0:67cfdb802cc6
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7 @namespace url(http://www.w3.org/2000/svg);
8 @namespace xml url(http://www.w3.org/XML/1998/namespace);
9
10 style, script, symbol {
11 display: none;
12 }
13
14 switch {
15 -moz-binding: none !important;
16 }
17
18 svg:not(:root), symbol, image, marker, pattern, foreignObject {
19 overflow: hidden;
20 }
21
22 @media all and (-moz-is-glyph) {
23 :root {
24 fill: context-fill;
25 fill-opacity: context-fill-opacity;
26 stroke: context-stroke;
27 stroke-opacity: context-stroke-opacity;
28 stroke-width: context-value;
29 stroke-dasharray: context-value;
30 stroke-dashoffset: context-value;
31 }
32 }
33
34 foreignObject {
35 margin: 0 ! important;
36 padding: 0 ! important;
37 border-width: 0 ! important;
38 white-space: normal;
39 }
40
41 @media all and (-moz-is-resource-document) {
42 foreignObject *|* {
43 -moz-appearance: none !important;
44 }
45 }
46
47 *|*::-moz-svg-foreign-content {
48 display: block !important;
49 /* We need to be an absolute and fixed container */
50 transform: translate(0) !important;
51 text-indent: 0;
52 }
53
54 /* Set |transform-origin:0% 0%;| for all SVG elements except outer-<svg>,
55 noting that 'svg' as a child of 'foreignObject' counts as outer-<svg>.
56 */
57 *:not(svg),
58 *:not(foreignObject) > svg {
59 transform-origin:0 0;
60 }
61
62 *|*::-moz-svg-text {
63 unicode-bidi: inherit;
64 vector-effect: inherit;
65 }
66
67 *[xml|space=preserve] {
68 white-space: -moz-pre-discard-newlines;
69 }
70
71 *|*::-moz-svg-marker-anon-child {
72 clip-path: inherit;
73 filter: inherit;
74 mask: inherit;
75 opacity: inherit;
76 }

mercurial