border-image-002.html (1257B)
1 <!DOCTYPE html> 2 3 <meta charset="UTF-8"> 4 5 <title>CSS Backgrounds and Borders Test: border-image-slice (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 36 border-image-slice: 1; 37 border-image-source: url("support/1pxgreen-98pxred.png"); 38 } 39 40 div#green-filled-center 41 { 42 background-color: green; 43 height: 20px; 44 } 45 </style> 46 47 <p>Test passes if there is a filled green square and <strong>no red</strong>. 48 49 <div id="red-overlapped-ref"> 50 <div id="green-overlapping-test"> 51 <div id="green-filled-center"></div> 52 </div> 53 </div>