Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: Source/core/css/svg.css

Issue 220853002: SVG does not respect overflow:visible. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 overflow: hidden;
krit 2014/04/01 12:23:14 It of course depends how the spec defines the svg
52 }
53
50 text, foreignObject { 54 text, foreignObject {
51 display: block 55 display: block
52 } 56 }
53 57
54 text { 58 text {
55 white-space: nowrap 59 white-space: nowrap
56 } 60 }
57 61
58 tspan, textPath { 62 tspan, textPath {
59 white-space: inherit 63 white-space: inherit
60 } 64 }
61 65
62 /* states */ 66 /* states */
63 67
64 :focus { 68 :focus {
65 outline: auto 5px -webkit-focus-ring-color 69 outline: auto 5px -webkit-focus-ring-color
66 } 70 }
67 71
68 /* CSS transform specification: "transform-origin 0 0 for SVG elements without a ssociated CSS layout box, 50% 50% for all other elements". */ 72 /* CSS transform specification: "transform-origin 0 0 for SVG elements without a ssociated CSS layout box, 50% 50% for all other elements". */
69 73
70 * { 74 * {
71 -webkit-transform-origin: 0 0; 75 -webkit-transform-origin: 0 0;
72 } 76 }
73 77
74 html|* > svg { 78 html|* > svg {
75 -webkit-transform-origin: 50% 50%; 79 -webkit-transform-origin: 50% 50%;
76 } 80 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698