border-image-003.html (1157B)
1 <!DOCTYPE html> 2 3 <meta charset="UTF-8"> 4 5 <title>CSS Backgrounds and Borders Test: border-image-slice with fill keyword (basic)</title> 6 7 <link rel="author" title="Jérémie Patonnier" href="mailto:jeremie@patonnier.net"> 8 <link rel="help" href="http://www.w3.org/TR/css3-background/#border-image-slice"> 9 <link rel="match" href="reference/ref-filled-green-100px-square.xht"> 10 11 <meta name="flags" content=""> 12 13 <!-- 14 15 This is a follow-up to 16 Pull Request 8788: Update css-backgrounds/border-image tests 17 https://github.com/web-platform-tests/wpt/pull/8788 18 19 Credit should go to Chris Nardi for trying to fix 20 16 border-image tests with 2 relevant commits 21 22 --> 23 24 <style> 25 div#red-overlapped-ref 26 { 27 background-color: red; 28 height: 100px; 29 width: 100px; 30 } 31 32 div#green-overlapping-test 33 { 34 border: red solid 40px; 35 height: 20px; 36 37 border-image-slice: 5 fill; 38 border-image-source: url("support/12x12-green.png"); 39 } 40 </style> 41 42 <p>Test passes if there is a filled green square and <strong>no red</strong>. 43 44 <div id="red-overlapped-ref"> 45 <div id="green-overlapping-test"></div> 46 </div>