text-crop-ref.xul 871 B

12345678910111213141516171819202122232425262728293031323334
  1. <?xml version="1.0"?>
  2. <window class="reftest-wait"
  3. align="left"
  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. return "\u{1F310}".repeat(n);
  25. }
  26. var e = "\u{2026}";
  27. document.getElementById("start").value = e + text(4);
  28. document.getElementById("end").value = text(4) + e;
  29. document.getElementById("center").value = text(2) + e + text(2);
  30. document.documentElement.className = "";
  31. ]]>
  32. </script>
  33. </window>