| Index: LayoutTests/fast/text-autosizing/unlock-multipliers-on-DOMContentLoaded.html
|
| diff --git a/LayoutTests/fast/text-autosizing/unlock-multipliers-on-DOMContentLoaded.html b/LayoutTests/fast/text-autosizing/unlock-multipliers-on-DOMContentLoaded.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a066b2c720cbd445dbb205e7b5b7e9e6f6b14f9c
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/text-autosizing/unlock-multipliers-on-DOMContentLoaded.html
|
| @@ -0,0 +1,51 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +
|
| +<meta name="viewport" content="width=800">
|
| +<style>
|
| +html { font-size: 16px; }
|
| +body { width: 800px; margin: 0; overflow-y: hidden; }
|
| +</style>
|
| +
|
| +<script src="resources/autosizingTest.js"></script>
|
| +
|
| +</head>
|
| +<body>
|
| +
|
| +<table cellpadding="0" cellspacing="0" width="100%">
|
| +<tr>
|
| + <td width="50%">
|
| + <div id="firstDiv">
|
| + This text should be autosized to 20px computed font-size (16 * 400/320).<br>
|
| + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut
|
| + labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
|
| + laboris ni si ut aliquip ex ea commodo consequat.
|
| + </div>
|
| + </td>
|
| + <script>
|
| + element = document.getElementById("firstDiv");
|
| + if (element.offsetHeight) {
|
| + // force layout
|
| + }
|
| + </script>
|
| + <td width="50%">
|
| + <div>
|
| + This text should be autosized to 20px computed font-size (16 * 400/320).<br>
|
| + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut
|
| + labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
|
| + laboris ni si ut aliquip ex ea commodo consequat.
|
| + </div>
|
| + </td>
|
| +</tr>
|
| +</table>
|
| +
|
| +<script>
|
| + element = document.getElementById("firstDiv");
|
| + if (element.offsetHeight) {
|
| + // force layout
|
| + }
|
| +</script>
|
| +
|
| +</body>
|
| +</html>
|
|
|