ruby-line-breaking-003.html (992B)
1 <!DOCTYPE html> 2 <html lang="ja"> 3 <meta charset="UTF-8"> 4 <title>Dynamic break point change in ruby</title> 5 <link rel="author" title="Xidorn Quan" href="https://www.upsuper.org"> 6 <link rel="author" title="Mozilla" href="https://www.mozilla.org"> 7 <link rel="help" href="https://drafts.csswg.org/css-ruby-1/#break-between"> 8 <link rel="match" href="ruby-line-breaking-003-ref.html"> 9 <link rel="stylesheet" href="support/ruby-common.css"> 10 <style> 11 #test { 12 border: 1px solid; 13 text-align: center; 14 } 15 </style> 16 <div id="test"> 17 <p><ruby><rb>一<rb>二<rb>三<rb>四<rb>五<rb>六<rb>七<rb>八</ruby></p> 18 <p><ruby><rbc>一</rbc><rbc>二</rbc><rbc>三</rbc><rbc>四</rbc><rbc>五</rbc><rbc>六</rbc><rbc>七</rbc><rbc>八</rbc></ruby></p> 19 </div> 20 <script> 21 let div = document.getElementById("test"); 22 document.body.offsetHeight; 23 test.style.width = "2.5em"; 24 document.body.offsetHeight; 25 test.style.width = "4.5em"; 26 document.body.offsetHeight; 27 test.style.width = "2.5em"; 28 </script>