wpt / css / css-backgrounds / border-radius-clipping-002.html

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

/css/css-backgrounds/border-radius-clipping-002.html

<!DOCTYPE html>

  <meta charset="UTF-8">

  <title>CSS Backgrounds and Borders Test: 'border-radius' and corner-clipping of content elements</title>

  <link rel="author" title="zhouli" href="mailto:liz@oupeng.com">
  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
  <link rel="help" href="http://www.w3.org/TR/css3-background/#corner-clipping">
  <link rel="match" href="../reference/ref-nothing-below.xht">

  <meta content="" name="flag">
  <meta name="assert" content="When set with 'overflow: hidden', an outer container must clip text of its child element at its corners. In this test, the outer container, which has immense size, has a 'border-radius' declaration which implies that the clipping must occur at its curve.">

  <style>
  body
    {
      overflow: hidden;
      /*
      otherwise, horizontal and vertical
      scroll bars will be generated
      */
    }

  div#fail-condition
    {
      border-radius: 250em;
      color: red;
      font-size: 32px;
      height: 500em;
      overflow: hidden;
      width: 500em;
    }
  </style>

  <p>Test passes if there is nothing below.

  <div id="fail-condition">FAIL FAIL FAIL FAIL</div>

/css/reference/ref-nothing-below.xht

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

 <head>

  <title>CSS Reftest Reference</title>

  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />

 </head>

 <body>

  <p>Test passes if there is nothing below.</p>

 </body>
</html>