repeat-image-1.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <!DOCTYPE html>
  2. <html lang="en-US">
  3. <head>
  4. <title>test of border-image</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <meta http-equiv="Content-Style-Type" content="text/css">
  7. <style type="text/css">
  8. div.p1 {
  9. background: red; /* fail if this shows through */
  10. background-image: url('3x3multicolor.png'); /* fail if this shows through */
  11. border-width: 1px 3px;
  12. border-style: solid;
  13. border-image: url('4x4multicolor.png') 1 1 1 1 repeat;
  14. -khtml-border-image: url('4x4multicolor.png') 1 1 1 1 repeat;
  15. border-image: url('4x4multicolor.png') 1 1 1 1 repeat;
  16. }
  17. div.p2 {
  18. background: red; /* fail if this shows through */
  19. background-image: url('3x3multicolor.png'); /* fail if this shows through */
  20. border-width: 1px 3px;
  21. border-style: solid;
  22. border-image: url('4x4multicolor.png') 1 1 1 1;
  23. -khtml-border-image: url('4x4multicolor.png') 1 1 1 1;
  24. border-image: url('4x4multicolor.png') 1 1 1 1;
  25. }
  26. </style>
  27. </head>
  28. <body>
  29. <div class="p1" style="width: 4px; height: 2px"></div>
  30. <!--<div class="p2" style="width: 4px; height: 2px"></div> -->
  31. </body>
  32. </html>