object-position-png-001.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_y-7 { object-position: 50% -7% }
  18. .op_y13 { object-position: 50% 13% }
  19. .op_y23 { object-position: 50% 23% }
  20. .op_y50 { object-position: 50% 50% }
  21. .op_y75 { object-position: 50% 75% }
  22. .op_y88 { object-position: 50% 88% }
  23. .op_y111 { object-position: 50% 111% }
  24. ]]></style>
  25. <hbox>
  26. <image src="colors-16x8.png" class="op_y-7"/>
  27. <image src="colors-16x8.png" class="op_y13"/>
  28. <image src="colors-16x8.png" class="op_y23"/>
  29. <image src="colors-16x8.png" class="op_y50"/>
  30. <image src="colors-16x8.png" class="op_y75"/>
  31. <image src="colors-16x8.png" class="op_y88"/>
  32. <image src="colors-16x8.png" class="op_y111"/>
  33. </hbox>
  34. </window>