wpt / css / css-backgrounds / border-image-013.html

Status: FAIL | Duration: 12ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-backgrounds/border-image-013.html

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>
        CSS Backgrounds and Borders Test: border-image-repeat: repeat (basic)
    </title>


    <link rel="author" title="Jérémie Patonnier" href="mailto:jeremie@patonnier.net">
    <link rel="match" href="reference/border-image-013-ref.html">
    <link rel="help" href="http://www.w3.org/TR/css3-background/#border-image-repeat">

    <style type="text/css">

        #test {
            border : 10px solid red;
            width  : 30px;
            height : 30px;

            border-image-source: url(support/img-ref-2.png);
            border-image-slice : 10;
            border-image-repeat: repeat;
        }

    </style>

</head>
<body>

    <p>
        Pass if the square has borders made of green dots and <strong>no red</strong>.
    </p>

    <div id="test"></div>

</body>
</html>

/css/css-backgrounds/reference/border-image-013-ref.html

<!DOCTYPE html>

  <meta charset="utf-8">

  <title>CSS Reference Test</title>

  <!--

  Author is Chris Nardi

  -->

  <style>
  .borderContainer
    {
      height: 50px;
      position: relative;
      width: 50px;
    }

  .borderContainer > div
    {
      background-image: url("../support/green-dot.png");
      height: 10px;
      position: absolute;
      width: 10px;
    }

  .left
    {
      left: 0px;
    }

  .left1
    {
      left: 10px;
    }

  .left2
    {
      left: 20px;
    }

  .left3
    {
      left: 30px;
    }

  .right
    {
      right: 0px;
    }

  .top
    {
      top: 0px;
    }

  .top1
    {
      top: 10px;
    }

  .top2
    {
      top: 20px;
    }

  .top3
    {
      top: 30px;
    }

  .bottom
    {
      bottom: 0px;
    }
  </style>

    <p>Pass if the square has borders made of green dots and <strong>no red</strong>.

    <div class="borderContainer">
        <div class="top left"></div><div class="top left1"></div><div class="top left2"></div><div class="top left3"></div><div class="top right"></div>
        <div class="left top1"></div><div class="right top1"></div>
        <div class="left top2"></div><div class="right top2"></div>
        <div class="left top3"></div><div class="right top3"></div>
        <div class="bottom left"></div><div class="bottom left1"></div><div class="bottom left2"></div><div class="bottom left3"></div><div class="bottom right"></div>
    </div>