blob: 9eeabc51cfa68538d4184740e0bd9fe8fbc0260f [file] [log] [blame]
hyatt@apple.coma67f96a2009-07-15 17:02:30 +00001<html>
2<body>
3This is a test of dynamic rem unit scaling. Changes to the root element's font size need to cause dependent elements in the document tree
4to update as well.
5<div style="font-size:10px">
6This text should be small.
7<div style="font-size:1rem">
8This text should match the root (and be 24px).
9</div>
10</div>
11<script>
12document.body.offsetWidth;
13document.documentElement.style.fontSize = '24px';
14</script>
15</body>
16</html>