2
Any copyright is dedicated to the Public Domain.
3
http://creativecommons.org/licenses/publicdomain/
5
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
8
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=294086 -->
10
<title>Test: resize of container block height</title>
13
This testcase checks that SVG embedded inline with a percentage height is
14
updated correctly when its containing block is resized.
17
<style type="text/css">
24
height: 100%; /* inline style override on the div below */
30
<script type="text/javascript">
32
function handle_load(e)
34
setTimeout(resize_div, 50); // allow some time for layout and rendering
39
var XHTML_NS = 'http://www.w3.org/1999/xhtml';
40
document.getElementsByTagNameNS(XHTML_NS, 'div').item(0).style.height = '100%';
41
setTimeout(notify_test_finished, 50); // allow some time for layout and rendering
44
function notify_test_finished()
46
document.documentElement.removeAttribute('class');
51
<body onload="handle_load(event);">
53
<div style="height:50%;">
54
<svg xmlns="http://www.w3.org/2000/svg" width="5000" height="100%">
55
<rect width="100%" height="100%" fill="lime"/>