| <!DOCTYPE html> |
| <html> |
| <head> |
| <title>This tests that selection gaps can be painted on subpixel position.</title> |
| <style> |
| div { |
| font-size: 16px; |
| font-family: 'Ahem'; |
| height: 20px; |
| } |
| |
| .bckg { |
| position: fixed; |
| background: rgba(255, 0, 0, 0.9); |
| z-index: -1000; |
| } |
| </style> |
| </head> |
| <body> |
| <p id="container"></p> |
| <div class=bckg style="left: 8px; top: 16px; width: 784px; height: 475px;"></div> |
| <div class=bckg style="left: 8px; top: 491px; width: 31.5px; height: 22px;"></div> |
| <script> |
| var container = document.getElementById("container"); |
| fontSize = 16; |
| margin = 0; |
| for (i = 0; i < 20; ++i) { |
| var e = document.createElement("div"); |
| e.innerHTML = " "; |
| e.style.fontSize = fontSize + "px"; |
| e.style.margin = margin+ "px"; |
| container.appendChild(e); |
| fontSize+=0.3; |
| margin+=0.5; |
| } |
| </script> |
| </body> |
| </html> |