background-repeat-round-4.html (1222B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Background: background-repeat: background image round with specified position</title> 6 <link rel="author" title="Ethan Lin" href="mailto:ethlin@mozilla.com"> 7 <link rel="author" title="Mozilla" href="https://www.mozilla.org"> 8 <link rel="help" href="https://www.w3.org/TR/css3-background/#background-repeat"> 9 <link rel="match" href="background-repeat-round-4-ref.html"> 10 <meta name="assert" content="Test checks whether background-repeat: 'round' works correctly or not."> 11 <style type="text/css"> 12 #outer { 13 width: 72px; 14 height: 72px; 15 border: 1px solid black; 16 background-image: url(support/aqua-yellow-32x32.png); 17 background-repeat: round; 18 background-position: 5px 5px; 19 } 20 #outer_gradient { 21 width: 72px; 22 height: 72px; 23 border: 1px solid black; 24 background-size: 32px 32px; 25 background-image: linear-gradient(to top left, red, green); 26 background-repeat: round; 27 background-position: 5px 5px; 28 } 29 </style> 30 </head> 31 <body> 32 <div id="outer"></div> 33 <div id="outer_gradient"></div> 34 </body> 35 </html>