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

Side by Side Diff: LayoutTests/svg/custom/percentage-of-html-parent.xhtml

Issue 26390004: Rework SVG sizing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix mishap during rebase in svg.css 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 <?xml version="1.0"?> 1 <?xml version="1.0"?>
2 <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> 2 <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
3 <head> 3 <head>
4 <title>Bug 9752 - %-sizing of elements with a html parent is broken</title> 4 <title>Bug 9752 - %-sizing of elements with a html parent is broken</title>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p>Below there is a div with an embedded green svg in it. Since the dimensions o f the svg are 100%/100% of the parent, the green should cover the red(Bug 9752). </p> 7 <p>Below there is a div with an embedded green svg in it. Since the dimensions o f the svg are 100%/100% of the parent, the green should cover the red(Bug 9752). </p>
8 <div style="width: 200px; height: 200px;background:red;"> 8 <div style="width: 200px; height: 200px;background:red;">
9 <svg xmlns="http://www.w3.org/2000/svg"> 9 <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%">
10 <rect fill="green" height="100%" width="100%"/> 10 <rect fill="green" height="100%" width="100%"/>
11 </svg> 11 </svg>
12 </div> 12 </div>
13 </body> 13 </body>
14 </html> 14 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698