2d96291a39d3ac989a34d081cb8c130892033fbb.svn-base 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Background attribute tests</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <script type="text/javascript" src="../../test.js"></script>
  7. <style>
  8. html {
  9. background-color: red;
  10. }
  11. body {
  12. background-color: lime;
  13. }
  14. .small div{
  15. width:100px;
  16. height:100px;
  17. float:left;
  18. margin:10px;
  19. border:1px solid #000;
  20. }
  21. .medium div{
  22. width:200px;
  23. height:200px;
  24. float:left;
  25. margin:10px;
  26. border:20px solid transparent;
  27. border-width: 10px 20px 30px 40px;
  28. background: green;
  29. }
  30. .small, .medium{
  31. clear:both;
  32. }
  33. div{
  34. display:block;
  35. }
  36. </style>
  37. </head>
  38. <body>
  39. <div class="medium">
  40. <div style="background:url(../../assets/image.jpg);background-clip: border-box;"></div>
  41. <div style="background:url(../../assets/image.jpg);background-clip: padding-box;"></div>
  42. <div style="background:url(../../assets/image.jpg);background-clip: content-box;"></div>
  43. <div style="background:url(../../assets/image.jpg);"></div>
  44. </div>
  45. <div class="medium">
  46. <div style="background:url(../../assets/image.jpg);background-clip: border-box; background-repeat: no-repeat;"></div>
  47. <div style="background:url(../../assets/image.jpg);background-clip: padding-box; background-repeat: repeat-y;"></div>
  48. <div style="background:url(../../assets/image.jpg);background-clip: content-box; background-repeat: repeat-x;"></div>
  49. <div style="background:url(../../assets/image.jpg); background-repeat: no-repeat;"></div>
  50. </div>
  51. <div class="medium">
  52. <div style="background-clip: border-box;"></div>
  53. <div style="background-clip: padding-box;"></div>
  54. <div style="background-clip: content-box;"></div>
  55. <div style=""></div>
  56. </div>
  57. </body>
  58. </html>