15 lines
580 B
HTML
15 lines
580 B
HTML
<?xml version="1.0"?>
|
|
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>Bug 9752 - %-sizing of elements with a html parent is broken</title>
|
|
</head>
|
|
<body>
|
|
<p>Below there is a div with an embedded green svg in it. Since the dimensions of the svg are 100%/100% of the parent, the green should cover the red(Bug 9752).</p>
|
|
<div style="width: 200px; height: 200px;background:red;">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%">
|
|
<rect fill="green" height="100%" width="100%"/>
|
|
</svg>
|
|
</div>
|
|
</body>
|
|
</html>
|