element-paint-paintserversize-rounding-01.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!--
  2. Any copyright is dedicated to the Public Domain.
  3. http://creativecommons.org/licenses/publicdomain/
  4. The green square should always be rendered at 100px.
  5. -->
  6. <!DOCTYPE html>
  7. <html>
  8. <head>
  9. <style>
  10. body > div {
  11. width: 200px;
  12. height: 200px;
  13. float: left;
  14. background-repeat: no-repeat;
  15. }
  16. div > div {
  17. background: lime;
  18. }
  19. </style>
  20. </head>
  21. <body style="margin:0">
  22. <div style="background-image: -moz-element(#eInteger)"></div>
  23. <div style="background-image: -moz-element(#eRoundUp1)"></div>
  24. <div style="background-image: -moz-element(#eRoundUp2)"></div>
  25. <div style="background-image: -moz-element(#eRoundDown1)"></div>
  26. <div style="background-image: -moz-element(#eRoundDown2)"></div>
  27. <div style="overflow:hidden; height:0">
  28. <div id="eInteger" style="margin: 0.3px; width: 100px; height: 100px;"></div>
  29. <div id="eRoundUp1" style="margin: 0.3px; width: 99.6px; height: 99.6px;"></div>
  30. <div id="eRoundUp2" style="margin: 0.6px; width: 99.6px; height: 99.6px;"></div>
  31. <div id="eRoundDown1" style="margin: 0.3px; width: 100.3px; height: 100.3px;"></div>
  32. <div id="eRoundDown2" style="margin: 0.6px; width: 100.3px; height: 100.3px;"></div>
  33. </div>
  34. </body>
  35. </html>