layout/svg/svg.css

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
michael@0 2 *
michael@0 3 * This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 @namespace url(http://www.w3.org/2000/svg);
michael@0 8 @namespace xml url(http://www.w3.org/XML/1998/namespace);
michael@0 9
michael@0 10 style, script, symbol {
michael@0 11 display: none;
michael@0 12 }
michael@0 13
michael@0 14 switch {
michael@0 15 -moz-binding: none !important;
michael@0 16 }
michael@0 17
michael@0 18 svg:not(:root), symbol, image, marker, pattern, foreignObject {
michael@0 19 overflow: hidden;
michael@0 20 }
michael@0 21
michael@0 22 @media all and (-moz-is-glyph) {
michael@0 23 :root {
michael@0 24 fill: context-fill;
michael@0 25 fill-opacity: context-fill-opacity;
michael@0 26 stroke: context-stroke;
michael@0 27 stroke-opacity: context-stroke-opacity;
michael@0 28 stroke-width: context-value;
michael@0 29 stroke-dasharray: context-value;
michael@0 30 stroke-dashoffset: context-value;
michael@0 31 }
michael@0 32 }
michael@0 33
michael@0 34 foreignObject {
michael@0 35 margin: 0 ! important;
michael@0 36 padding: 0 ! important;
michael@0 37 border-width: 0 ! important;
michael@0 38 white-space: normal;
michael@0 39 }
michael@0 40
michael@0 41 @media all and (-moz-is-resource-document) {
michael@0 42 foreignObject *|* {
michael@0 43 -moz-appearance: none !important;
michael@0 44 }
michael@0 45 }
michael@0 46
michael@0 47 *|*::-moz-svg-foreign-content {
michael@0 48 display: block !important;
michael@0 49 /* We need to be an absolute and fixed container */
michael@0 50 transform: translate(0) !important;
michael@0 51 text-indent: 0;
michael@0 52 }
michael@0 53
michael@0 54 /* Set |transform-origin:0% 0%;| for all SVG elements except outer-<svg>,
michael@0 55 noting that 'svg' as a child of 'foreignObject' counts as outer-<svg>.
michael@0 56 */
michael@0 57 *:not(svg),
michael@0 58 *:not(foreignObject) > svg {
michael@0 59 transform-origin:0 0;
michael@0 60 }
michael@0 61
michael@0 62 *|*::-moz-svg-text {
michael@0 63 unicode-bidi: inherit;
michael@0 64 vector-effect: inherit;
michael@0 65 }
michael@0 66
michael@0 67 *[xml|space=preserve] {
michael@0 68 white-space: -moz-pre-discard-newlines;
michael@0 69 }
michael@0 70
michael@0 71 *|*::-moz-svg-marker-anon-child {
michael@0 72 clip-path: inherit;
michael@0 73 filter: inherit;
michael@0 74 mask: inherit;
michael@0 75 opacity: inherit;
michael@0 76 }

mercurial