michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: @namespace url(http://www.w3.org/2000/svg); michael@0: @namespace xml url(http://www.w3.org/XML/1998/namespace); michael@0: michael@0: style, script, symbol { michael@0: display: none; michael@0: } michael@0: michael@0: switch { michael@0: -moz-binding: none !important; michael@0: } michael@0: michael@0: svg:not(:root), symbol, image, marker, pattern, foreignObject { michael@0: overflow: hidden; michael@0: } michael@0: michael@0: @media all and (-moz-is-glyph) { michael@0: :root { michael@0: fill: context-fill; michael@0: fill-opacity: context-fill-opacity; michael@0: stroke: context-stroke; michael@0: stroke-opacity: context-stroke-opacity; michael@0: stroke-width: context-value; michael@0: stroke-dasharray: context-value; michael@0: stroke-dashoffset: context-value; michael@0: } michael@0: } michael@0: michael@0: foreignObject { michael@0: margin: 0 ! important; michael@0: padding: 0 ! important; michael@0: border-width: 0 ! important; michael@0: white-space: normal; michael@0: } michael@0: michael@0: @media all and (-moz-is-resource-document) { michael@0: foreignObject *|* { michael@0: -moz-appearance: none !important; michael@0: } michael@0: } michael@0: michael@0: *|*::-moz-svg-foreign-content { michael@0: display: block !important; michael@0: /* We need to be an absolute and fixed container */ michael@0: transform: translate(0) !important; michael@0: text-indent: 0; michael@0: } michael@0: michael@0: /* Set |transform-origin:0% 0%;| for all SVG elements except outer-, michael@0: noting that 'svg' as a child of 'foreignObject' counts as outer-. michael@0: */ michael@0: *:not(svg), michael@0: *:not(foreignObject) > svg { michael@0: transform-origin:0 0; michael@0: } michael@0: michael@0: *|*::-moz-svg-text { michael@0: unicode-bidi: inherit; michael@0: vector-effect: inherit; michael@0: } michael@0: michael@0: *[xml|space=preserve] { michael@0: white-space: -moz-pre-discard-newlines; michael@0: } michael@0: michael@0: *|*::-moz-svg-marker-anon-child { michael@0: clip-path: inherit; michael@0: filter: inherit; michael@0: mask: inherit; michael@0: opacity: inherit; michael@0: }