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
{
15 -moz-binding: none
!important
;
18 svg:not
(:root
), symbol
, image
, marker
, pattern
, foreignObject
{
22 @media all and
(-moz-is-glyph
) {
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
;
35 margin: 0 ! important
;
36 padding: 0 ! important
;
37 border-width: 0 ! important
;
41 @media all and
(-moz-is-resource-document
) {
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
;
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>.
58 *:not
(foreignObject
) > svg
{
63 unicode-bidi: inherit
;
64 vector-effect: inherit
;
67 *[xml|space
=preserve
] {
68 white-space: -moz-pre-space
;
71 *|
*::-moz-svg-marker-anon-child
{
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.
89 *|
*:-moz-any-link:-moz-focusring
{
90 /* Don't specify the outline-color, we should always use initial value. */
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
;