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 { | |
| 51 height: 100%; | |
| 52 width: 100%; | |
| 53 position: absolute | |
|
pdr.
2014/04/15 02:46:10
position: absolute seems odd to me. Can you talk a
davve
2014/04/15 15:55:23
I have this on my list of things to do. Current ra
davve
2014/04/16 14:35:30
Addressed by allowing boxes to resolve percentages
| |
| 54 } | |
| 55 | |
| 50 text, foreignObject { | 56 text, foreignObject { |
| 51 display: block | 57 display: block |
| 52 } | 58 } |
| 53 | 59 |
| 54 text { | 60 text { |
| 55 white-space: nowrap | 61 white-space: nowrap |
| 56 } | 62 } |
| 57 | 63 |
| 58 tspan, textPath { | 64 tspan, textPath { |
| 59 white-space: inherit | 65 white-space: inherit |
| 60 } | 66 } |
| 61 | 67 |
| 62 /* states */ | 68 /* states */ |
| 63 | 69 |
| 64 :focus { | 70 :focus { |
| 65 outline: auto 5px -webkit-focus-ring-color | 71 outline: auto 5px -webkit-focus-ring-color |
| 66 } | 72 } |
| 67 | 73 |
| 68 /* CSS transform specification: "transform-origin 0 0 for SVG elements without a ssociated CSS layout box, 50% 50% for all other elements". */ | 74 /* CSS transform specification: "transform-origin 0 0 for SVG elements without a ssociated CSS layout box, 50% 50% for all other elements". */ |
| 69 | 75 |
| 70 * { | 76 * { |
| 71 -webkit-transform-origin: 0 0; | 77 -webkit-transform-origin: 0 0; |
| 72 } | 78 } |
| 73 | 79 |
| 74 html|* > svg { | 80 html|* > svg { |
| 75 -webkit-transform-origin: 50% 50%; | 81 -webkit-transform-origin: 50% 50%; |
| 76 } | 82 } |
| OLD | NEW |