trailing-space-1-ref.html 935 B

12345678910111213141516171819202122232425262728
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Test for bug 1146754</title>
  6. <script>
  7. function selectTest() {
  8. window.getSelection().removeAllRanges();
  9. var range = document.createRange();
  10. range.selectNode(document.querySelector('#test'));
  11. window.getSelection().addRange(range);
  12. }
  13. </script>
  14. <style>
  15. body { padding: 1em; }
  16. div>div { height: 2em; }
  17. </style>
  18. </head>
  19. <body onload="selectTest()" contenteditable>
  20. <div id="test">
  21. <div>123 <span style="color:transparent;font-size:0">x</span></div>
  22. <div style="text-shadow:8px 3px 0 red;">456 <span style="color:transparent;font-size:0">x</span></div>
  23. <div><u>789</u> <span style="color:transparent;font-size:0">x</span></div>
  24. <div style="text-shadow:-4px 3px 0 red;"><u>012</u> <span style="color:transparent;font-size:0">x</span></div>
  25. </div>
  26. </body>
  27. </html>