no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / layout / svg / svg.css
blobd3ef977409b8c5f733461192fe98aa4d797b3297
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 {
11 display: none;
14 svg:not(:root), symbol, image, marker, pattern, foreignObject {
15 overflow: hidden;
18 @media all and (-moz-is-glyph) {
19 :root {
20 fill: context-fill;
21 fill-opacity: context-fill-opacity;
22 stroke: context-stroke;
23 stroke-opacity: context-stroke-opacity;
24 stroke-width: context-value;
25 stroke-dasharray: context-value;
26 stroke-dashoffset: context-value;
30 foreignObject {
31 appearance: none ! important;
32 margin: 0 ! important;
33 padding: 0 ! important;
34 border-width: 0 ! important;
35 white-space: normal;
38 @media all and (-moz-is-resource-document) {
39 foreignObject *|* {
40 appearance: none !important;
44 *|*::-moz-svg-foreign-content {
45 display: block !important;
46 /* We need to be an absolute and fixed container */
47 transform: translate(0) !important;
48 text-indent: 0;
51 /* Set |transform-origin:0 0;| for all SVG elements except outer-<svg>,
52 noting that 'svg' as a child of 'foreignObject' counts as outer-<svg>.
54 *:not(svg),
55 *:not(foreignObject) > svg {
56 transform-origin:0 0;
59 *|*::-moz-svg-text {
60 unicode-bidi: inherit;
61 vector-effect: inherit;
64 *[xml|space=preserve] {
65 white-space: -moz-pre-space;
68 *|*::-moz-svg-marker-anon-child {
69 clip-path: inherit;
70 filter: inherit;
71 mask: inherit;
72 opacity: inherit;
75 /* Make SVG shapes unselectable to avoid triggering AccessibleCaret on tap.
76 <mesh> will be supported in bug 1238882. */
77 circle, ellipse, line, mesh, path, polygon, polyline, rect {
78 user-select: none;
81 a:any-link {
82 /* We don't want SVG link to be underlined */
83 text-decoration: none;