1369985-1.html (882B)
1 <!DOCTYPE html> 2 <meta charset="UTF-8"> 3 <style> 4 body { 5 padding: 0; 6 margin: 0; 7 font-size: 2px; 8 line-height: 1; 9 } 10 </style> 11 <body> 12 <script> 13 // This is the constant in nsTextFrame.cpp of the number of lines 14 // which a text run can be built up to. 15 const NUM_LINES_TO_BUILD_TEXT_RUNS = 200; 16 // Since the font-size is small, we need lots of blocks so that it can 17 // be seen clearer whether difference is fuzzy or real failure. 18 let x = '\u2588'.repeat(100) + '<br>'; 19 for (let i = 0; i < NUM_LINES_TO_BUILD_TEXT_RUNS / 2 - 1; i++) { 20 document.write(x) 21 } 22 // We want this piece to be in whatever place inside the first 23 // NUM_LINES_TO_BUILD_TEXT_RUNS lines. 24 document.write('あ\nあ<br>'); 25 // And we want another NUM_LINES_TO_BUILD_TEXT_RUNS lines to check. 26 for (let i = 0; i < NUM_LINES_TO_BUILD_TEXT_RUNS * 1.5; i++) { 27 document.write(x) 28 } 29 </script>