text-crop-ref.xhtml (991B)
1 <?xml version="1.0"?> 2 <window class="reftest-wait" 3 align="start" 4 xmlns:html="http://www.w3.org/1999/xhtml" 5 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 6 <html:style type="text/css"> 7 @font-face { 8 font-family: firasans; 9 src: url(../fonts/fira/FiraSans-Regular.otf); 10 } 11 vbox { 12 font-family: firasans; 13 font-size: 40px; 14 } 15 </html:style> 16 <vbox width="230"> 17 <label id="start" value="" /> 18 <label id="end" value="" /> 19 <label id="center" value="" /> 20 </vbox> 21 <script> 22 <![CDATA[ 23 function text(n) { 24 // Include U+FE0E variation selector to ensure font selection doesn't 25 // seek out a color-emoji font in preference to Fira. 26 return "\u{1F310}\u{FE0E}".repeat(n); 27 } 28 var e = "\u{2026}"; 29 // document.getElementById("start").value = e + text(4); 30 document.getElementById("end").value = text(4) + e; 31 document.getElementById("center").value = text(2) + e + text(2); 32 document.documentElement.className = ""; 33 ]]> 34 </script> 35 </window>