| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <style> | 2 <style> |
| 3 #container { | 3 #container { |
| 4 position: absolute; | 4 position: absolute; |
| 5 width: 600px; | 5 width: 600px; |
| 6 height: 550px; | 6 height: 550px; |
| 7 } | 7 } |
| 8 .test { | 8 .test { |
| 9 backface-visibility: hidden; | 9 backface-visibility: hidden; |
| 10 position: absolute; | 10 position: absolute; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 } | 37 } |
| 38 .top { | 38 .top { |
| 39 background-position: left 0px top 10px; | 39 background-position: left 0px top 10px; |
| 40 left: 250px; | 40 left: 250px; |
| 41 } | 41 } |
| 42 .bottom { | 42 .bottom { |
| 43 background-position: left 0px bottom 10px; | 43 background-position: left 0px bottom 10px; |
| 44 left: 300px; | 44 left: 300px; |
| 45 } | 45 } |
| 46 .center { | 46 .center { |
| 47 background-position: center; | 47 background-position: center; |
| 48 left: 350px; | 48 left: 350px; |
| 49 } | 49 } |
| 50 .no-repeat { | 50 .no-repeat { |
| 51 background-repeat: no-repeat; | 51 background-repeat: no-repeat; |
| 52 left: 400px; | 52 left: 400px; |
| 53 } | 53 } |
| 54 .repeat-space { | 54 .repeat-space { |
| 55 background-repeat: space; | 55 background-repeat: space; |
| 56 left: 450px; | 56 left: 450px; |
| 57 } | 57 } |
| 58 .repeat-round { | 58 .repeat-round { |
| 59 background-repeat: round; | 59 background-repeat: round; |
| 60 left: 500px; | 60 left: 500px; |
| 61 } | 61 } |
| 62 </style> | 62 </style> |
| 63 <div id="container"> | 63 <div id="container"> |
| 64 <div class="test image"></div> | 64 <div class="test image"></div> |
| 65 <div class="test image size-cover"></div> | 65 <div class="test image size-cover"></div> |
| 66 <div class="test image size-contain"></div> | 66 <div class="test image size-contain"></div> |
| 67 <div class="test image fixed-height"></div> | 67 <div class="test image fixed-height"></div> |
| 68 <div class="test image percent-height"></div> | 68 <div class="test image percent-height"></div> |
| 69 <div class="test image top"></div> | 69 <div class="test image top"></div> |
| 70 <div class="test image bottom"></div> | 70 <div class="test image bottom"></div> |
| 71 <div class="test image center"></div> | 71 <div class="test image center"></div> |
| 72 <div class="test image no-repeat"></div> | 72 <div class="test image no-repeat"></div> |
| 73 <div class="test image repeat-space"></div> | 73 <div class="test image repeat-space"></div> |
| 74 <div class="test image repeat-round"></div> | 74 <div class="test image repeat-round"></div> |
| 75 <div class="test generated"></div> | 75 <div class="test generated"></div> |
| 76 <div class="test generated cover"></div> | 76 <div class="test generated size-cover"></div> |
| 77 <div class="test generated contain"></div> | 77 <div class="test generated size-contain"></div> |
| 78 <div class="test generated fixed-height"></div> | |
| 79 <div class="test generated percent-height"></div> | 78 <div class="test generated percent-height"></div> |
| 80 <div class="test generated top"></div> | 79 <div class="test generated top"></div> |
| 81 <div class="test generated bottom"></div> | 80 <div class="test generated bottom"></div> |
| 82 <div class="test generated center"></div> | 81 <div class="test generated center"></div> |
| 83 <div class="test generated no-repeat"></div> | 82 <div class="test generated no-repeat"></div> |
| 84 <div class="test generated repeat-space"></div> | 83 <div class="test generated repeat-space"></div> |
| 85 <div class="test generated repeat-round"></div> | 84 <div class="test generated repeat-round"></div> |
| 86 </div> | 85 </div> |
| OLD | NEW |