Bumping manifests a=b2g-bump
[gecko.git] / layout / svg / svg.css
blobcad64f40c48f4210d10365fb0a29fecbd9aa26a3
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 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/. */
7 @namespace url(http://www.w3.org/2000/svg);
8 @namespace xml url(http://www.w3.org/XML/1998/namespace);
10 style, script, symbol {
11 display: none;
14 switch {
15 -moz-binding: none !important;
18 svg:not(:root), symbol, image, marker, pattern, foreignObject {
19 overflow: hidden;
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;
34 foreignObject {
35 margin: 0 ! important;
36 padding: 0 ! important;
37 border-width: 0 ! important;
38 white-space: normal;
41 @media all and (-moz-is-resource-document) {
42 foreignObject *|* {
43 -moz-appearance: none !important;
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;
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>.
57 *:not(svg),
58 *:not(foreignObject) > svg {
59 transform-origin:0 0;
62 *|*::-moz-svg-text {
63 unicode-bidi: inherit;
64 vector-effect: inherit;
67 *[xml|space=preserve] {
68 white-space: -moz-pre-space;
71 *|*::-moz-svg-marker-anon-child {
72 clip-path: inherit;
73 filter: inherit;
74 mask: inherit;
75 opacity: inherit;
78 /* nsDocumentViewer::CreateStyleSet doesn't load ua.css.
79 * A few styles are common to html and SVG though
80 * so we copy the rules below from that file.
83 /* Links */
85 *|*:-moz-any-link {
86 cursor: pointer;
89 *|*:-moz-any-link:-moz-focusring {
90 /* Don't specify the outline-color, we should always use initial value. */
91 outline: 1px dotted;
95 * SVG-as-an-image needs this rule
97 *|*::-moz-viewport, *|*::-moz-viewport-scroll, *|*::-moz-canvas, *|*::-moz-scrolled-canvas {
98 display: block !important;
99 background-color: inherit;