layout/svg/svg.css

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     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;
    12 }
    14 switch {
    15  -moz-binding: none !important;
    16 }
    18 svg:not(:root), symbol, image, marker, pattern, foreignObject {
    19  overflow: hidden;
    20 }
    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;
    31  }
    32 }
    34 foreignObject {
    35   margin: 0 ! important;
    36   padding: 0 ! important;
    37   border-width: 0 ! important;
    38   white-space: normal;
    39 }
    41 @media all and (-moz-is-resource-document) {
    42  foreignObject *|* {
    43    -moz-appearance: none !important;
    44  }
    45 }
    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;
    52 }
    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>.
    56 */
    57 *:not(svg),
    58 *:not(foreignObject) > svg {
    59   transform-origin:0 0;
    60 }
    62 *|*::-moz-svg-text {
    63   unicode-bidi: inherit;
    64   vector-effect: inherit;
    65 }
    67 *[xml|space=preserve] {
    68   white-space: -moz-pre-discard-newlines;
    69 }
    71 *|*::-moz-svg-marker-anon-child {
    72   clip-path: inherit;
    73   filter: inherit;
    74   mask: inherit;
    75   opacity: inherit;
    76 }

mercurial