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
);
15 * This is only to be overridden by the rule right below.
17 * NOTE(emilio): NodeCouldBeRendered in SVGUseElement.cpp relies on this.
20 display: none
!important
;
24 * From https://svgwg.org/svg2-draft/struct.html#SymbolNotes:
26 * > The generated instance of a 'symbol' that is the direct referenced element
27 * > of a 'use' element must always have a computed value of inline for the
28 * > display property. In other words, it must be rendered whenever the host
29 * > 'use' element is rendered.
31 * NOTE(emilio): other browsers instead just replace the `<symbol>` element by
32 * an `<svg>` element while cloning, but they don't implement the SVG2
33 * selector-matching rules that would make that observable via selectors.
35 symbol:-moz-use-shadow-tree-root
{
36 display: inline
!important
;
39 svg:not
(:root
), symbol
, image
, marker
, pattern
, foreignObject
{
43 @media all and
(-moz-is-glyph
) {
46 fill-opacity: context-fill-opacity
;
47 stroke: context-stroke
;
48 stroke-opacity: context-stroke-opacity
;
49 stroke-width: context-value
;
50 stroke-dasharray: context-value
;
51 stroke-dashoffset: context-value
;
56 appearance: none
! important
;
57 margin: 0 ! important
;
58 padding: 0 ! important
;
59 border-width: 0 ! important
;
63 @media all and
(-moz-is-resource-document
) {
65 appearance: none
!important
;
69 *|
*::-moz-svg-foreign-content
{
70 display: block
!important
;
71 /* We need to be an absolute and fixed container */
72 transform: translate
(0) !important
;
76 /* Set |transform-origin:0 0;| for all SVG elements except outer-<svg>,
77 noting that 'svg' as a child of 'foreignObject' counts as outer-<svg>.
80 *:not
(foreignObject
) > svg
{
85 unicode-bidi: inherit
;
86 vector-effect: inherit
;
89 *[xml|space
=preserve
] {
90 white-space: -moz-pre-space
;
93 *|
*::-moz-svg-marker-anon-child
{
100 /* Make SVG shapes unselectable to avoid triggering AccessibleCaret on tap.
101 <mesh> will be supported in bug 1238882. */
102 circle
, ellipse
, line
, mesh
, path
, polygon
, polyline
, rect
{
107 /* We don't want SVG link to be underlined */
108 text-decoration: none
;