object-position-png-002.xul 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0"?>
  2. <!--
  3. Any copyright is dedicated to the Public Domain.
  4. http://creativecommons.org/publicdomain/zero/1.0/
  5. -->
  6. <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  7. <style xmlns="http://www.w3.org/1999/xhtml"><![CDATA[
  8. window { padding: 8px; }
  9. image {
  10. background: lightgray;
  11. margin-right: 2px;
  12. object-fit: contain;
  13. float: left;
  14. width: 20px;
  15. height: 20px;
  16. }
  17. .op_x-7 { object-position: -7% 50% }
  18. .op_x13 { object-position: 13% 50% }
  19. .op_x23 { object-position: 23% 50% }
  20. .op_x50 { object-position: 50% 50% }
  21. .op_x75 { object-position: 75% 50% }
  22. .op_x88 { object-position: 88% 50% }
  23. .op_x111 { object-position: 111% 50% }
  24. ]]></style>
  25. <hbox>
  26. <image src="colors-8x16.png" class="op_x-7"/>
  27. <image src="colors-8x16.png" class="op_x13"/>
  28. <image src="colors-8x16.png" class="op_x23"/>
  29. <image src="colors-8x16.png" class="op_x50"/>
  30. <image src="colors-8x16.png" class="op_x75"/>
  31. <image src="colors-8x16.png" class="op_x88"/>
  32. <image src="colors-8x16.png" class="op_x111"/>
  33. </hbox>
  34. </window>