summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/border-radius-clipping-002.html
blob: eea0ee104fc2610a722f5bbae200c8f6d1ac9823 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!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>