border-image-repeat-repeat-001.html (1777B)
1 <!DOCTYPE html> 2 3 <meta charset="UTF-8"> 4 5 <title>CSS Backgrounds Test: border-image-repeat: repeat</title> 6 7 <!-- 8 9 Created: February 24th 2023 10 11 Last modified: March 23rd 2023 12 13 Bugzilla bug report 1819487: border-image-repeat and positioning the first tile before repeating 14 https://bugzilla.mozilla.org/show_bug.cgi?id=1819487 15 16 --> 17 18 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> 19 <link rel="help" href="https://www.w3.org/TR/css-backgrounds-3/#border-image-repeat"> 20 <link rel="help" href="https://www.w3.org/TR/css-backgrounds-3/#border-image-process"> 21 <link rel="match" href="reference/border-image-repeat-repeat-001-ref.html"> 22 23 <meta content="" name="flags"> 24 <meta content="This test checks the process of positioning the first tile of each of the 9 border-image areas when 'border-image-repeat' is 'repeat'." name="assert"> 25 26 <style> 27 div 28 { 29 background-color: green; /* so that the center of the + sign gets painted green */ 30 border: red solid 75px; 31 border-image-repeat: repeat; /* this is the same as 'repeat repeat' since 32 " 33 If the second keyword is absent, it is assumed to be the same as the first. 34 https://www.w3.org/TR/css-backgrounds-3/#border-image-repeat 35 " 36 */ 37 border-image-source: url("support/500x500-white-red-green-irreg-polygon.png"); 38 height: 50px; 39 width: 50px; 40 } 41 42 div#top-plus-sign 43 { 44 border-image-slice: 50; 45 margin-bottom: 10px; 46 } 47 48 div#bottom-plus-sign 49 { 50 border-image-slice: 1; 51 } 52 </style> 53 54 <p>Test passes if there are 2 identical filled green plus ("+") signs and <strong>no red</strong>. 55 56 <div id="top-plus-sign"></div> 57 58 <div id="bottom-plus-sign"></div>