1089388-2.html 781 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!DOCTYPE html>
  2. <html class="reftest-wait">
  3. <head>
  4. <meta charset="utf-8">
  5. <style>
  6. .v-lr { writing-mode:vertical-lr; }
  7. .v-rl { writing-mode:vertical-rl; }
  8. div {
  9. width: 300px;
  10. height: 200px;
  11. background: #ddd;
  12. margin: 50px;
  13. }
  14. </style>
  15. <script>
  16. function doTest() {
  17. document.getElementById("test").textContent =
  18. "New text inserted by script, to cause a reflow that slides the following lines.";
  19. document.documentElement.removeAttribute("class");
  20. }
  21. </script>
  22. </head>
  23. <body onload="doTest()">
  24. <div class="v-rl">
  25. First part of the block.
  26. <i id="test"></i>
  27. We will insert enough new content that it wraps onto additional lines.
  28. <br><br>
  29. Here is some more text that follows a forced break.
  30. Observe what happens to it when text is added earlier.
  31. </div>
  32. </body>
  33. </html>