layout/svg/svg.css

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/svg/svg.css	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,76 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +@namespace url(http://www.w3.org/2000/svg);
    1.11 +@namespace xml url(http://www.w3.org/XML/1998/namespace);
    1.12 +
    1.13 +style, script, symbol {
    1.14 + display: none;
    1.15 +}
    1.16 +
    1.17 +switch {
    1.18 + -moz-binding: none !important;
    1.19 +}
    1.20 +
    1.21 +svg:not(:root), symbol, image, marker, pattern, foreignObject {
    1.22 + overflow: hidden;
    1.23 +}
    1.24 +
    1.25 +@media all and (-moz-is-glyph) {
    1.26 + :root {
    1.27 +   fill: context-fill;
    1.28 +   fill-opacity: context-fill-opacity;
    1.29 +   stroke: context-stroke;
    1.30 +   stroke-opacity: context-stroke-opacity;
    1.31 +   stroke-width: context-value;
    1.32 +   stroke-dasharray: context-value;
    1.33 +   stroke-dashoffset: context-value;
    1.34 + }
    1.35 +}
    1.36 +
    1.37 +foreignObject {
    1.38 +  margin: 0 ! important;
    1.39 +  padding: 0 ! important;
    1.40 +  border-width: 0 ! important;
    1.41 +  white-space: normal;
    1.42 +}
    1.43 +
    1.44 +@media all and (-moz-is-resource-document) {
    1.45 + foreignObject *|* {
    1.46 +   -moz-appearance: none !important;
    1.47 + }
    1.48 +}
    1.49 +
    1.50 +*|*::-moz-svg-foreign-content {
    1.51 +  display: block !important;
    1.52 +  /* We need to be an absolute and fixed container */
    1.53 +  transform: translate(0) !important;
    1.54 +  text-indent: 0;
    1.55 +}
    1.56 +
    1.57 +/* Set |transform-origin:0% 0%;| for all SVG elements except outer-<svg>,
    1.58 +   noting that 'svg' as a child of 'foreignObject' counts as outer-<svg>.
    1.59 +*/
    1.60 +*:not(svg),
    1.61 +*:not(foreignObject) > svg {
    1.62 +  transform-origin:0 0;
    1.63 +}
    1.64 +
    1.65 +*|*::-moz-svg-text {
    1.66 +  unicode-bidi: inherit;
    1.67 +  vector-effect: inherit;
    1.68 +}
    1.69 +
    1.70 +*[xml|space=preserve] {
    1.71 +  white-space: -moz-pre-discard-newlines;
    1.72 +}
    1.73 +
    1.74 +*|*::-moz-svg-marker-anon-child {
    1.75 +  clip-path: inherit;
    1.76 +  filter: inherit;
    1.77 +  mask: inherit;
    1.78 +  opacity: inherit;
    1.79 +}

mercurial