OLD | NEW |
1 /* | 1 /* |
2 * The default style sheet used to render SVG. | 2 * The default style sheet used to render SVG. |
3 * | 3 * |
4 * Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved. | 4 * Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 contains these changes as well as all future SVG specifications: see http://
lists.w3.org/Archives/Public/public-svg-wg/2008JulSep/0347.html | 43 contains these changes as well as all future SVG specifications: see http://
lists.w3.org/Archives/Public/public-svg-wg/2008JulSep/0347.html |
44 */ | 44 */ |
45 | 45 |
46 svg:not(:root), symbol, image, marker, pattern, foreignObject { | 46 svg:not(:root), symbol, image, marker, pattern, foreignObject { |
47 overflow: hidden | 47 overflow: hidden |
48 } | 48 } |
49 | 49 |
50 svg:root { | 50 svg:root { |
51 width: 100%; | 51 width: 100%; |
52 height: 100%; | 52 height: 100%; |
53 scroll-blocks-on: start-touch wheel-event; | |
54 } | 53 } |
55 | 54 |
56 text, foreignObject { | 55 text, foreignObject { |
57 display: block | 56 display: block |
58 } | 57 } |
59 | 58 |
60 text { | 59 text { |
61 white-space: nowrap | 60 white-space: nowrap |
62 } | 61 } |
63 | 62 |
64 tspan, textPath { | 63 tspan, textPath { |
65 white-space: inherit | 64 white-space: inherit |
66 } | 65 } |
67 | 66 |
68 /* states */ | 67 /* states */ |
69 | 68 |
70 :focus { | 69 :focus { |
71 outline: auto 5px -webkit-focus-ring-color | 70 outline: auto 5px -webkit-focus-ring-color |
72 } | 71 } |
73 | 72 |
74 /* CSS transform specification: "transform-origin 0 0 for SVG elements without a
ssociated CSS layout box, 50% 50% for all other elements". */ | 73 /* CSS transform specification: "transform-origin 0 0 for SVG elements without a
ssociated CSS layout box, 50% 50% for all other elements". */ |
75 | 74 |
76 * { | 75 * { |
77 -webkit-transform-origin: 0 0; | 76 -webkit-transform-origin: 0 0; |
78 } | 77 } |
79 | 78 |
80 html|* > svg { | 79 html|* > svg { |
81 -webkit-transform-origin: 50% 50%; | 80 -webkit-transform-origin: 50% 50%; |
82 } | 81 } |
OLD | NEW |