Chromium Code Reviews| 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 29 matching lines...) Expand all Loading... | |
| 40 the initial clipping path is set according to the clipping rules as defined in [CSS2-overflow]. | 40 the initial clipping path is set according to the clipping rules as defined in [CSS2-overflow]. |
| 41 | 41 |
| 42 Opera/Firefox & WebKit agreed on NOT setting "overflow: hidden" for the oute rmost svg element - SVG 1.1 Errata | 42 Opera/Firefox & WebKit agreed on NOT setting "overflow: hidden" for the oute rmost svg element - SVG 1.1 Errata |
| 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 { | |
|
eseidel
2014/04/18 16:12:49
I'm surprised we didn't already ahve this. Or may
davve
2014/04/18 17:24:32
WebKit had something similar until https://bugs.we
| |
| 51 width: 100%; | |
| 52 height: 100% | |
| 53 } | |
| 54 | |
| 50 text, foreignObject { | 55 text, foreignObject { |
| 51 display: block | 56 display: block |
| 52 } | 57 } |
| 53 | 58 |
| 54 text { | 59 text { |
| 55 white-space: nowrap | 60 white-space: nowrap |
| 56 } | 61 } |
| 57 | 62 |
| 58 tspan, textPath { | 63 tspan, textPath { |
| 59 white-space: inherit | 64 white-space: inherit |
| 60 } | 65 } |
| 61 | 66 |
| 62 /* states */ | 67 /* states */ |
| 63 | 68 |
| 64 :focus { | 69 :focus { |
| 65 outline: auto 5px -webkit-focus-ring-color | 70 outline: auto 5px -webkit-focus-ring-color |
| 66 } | 71 } |
| 67 | 72 |
| 68 /* 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". */ |
| 69 | 74 |
| 70 * { | 75 * { |
| 71 -webkit-transform-origin: 0 0; | 76 -webkit-transform-origin: 0 0; |
| 72 } | 77 } |
| 73 | 78 |
| 74 html|* > svg { | 79 html|* > svg { |
| 75 -webkit-transform-origin: 50% 50%; | 80 -webkit-transform-origin: 50% 50%; |
| 76 } | 81 } |
| OLD | NEW |