summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/ttwf-css3background-border-style.htm
blob: 357cde73e042622aa3f0e260b89ac45000a8d099 (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
<!DOCTYPE html>
<html>
  <head>
    <title>CSS Backgrounds and Borders Test: border_style</title>
    <link rel="author" title="disound" href="mailto:disound@gmail.com" />
    <link rel="help" href="http://www.w3.org/TR/css3-background/#the-border-style" />
    <meta name="flags" content="image" />
    <meta name="assert" content="'Border-style' is a shorthand for the other four. Its four values set the top, right, bottom and left border respectively. A missing left is the same as right, a missing bottom is the same as top, and a missing right is also the same as top." />
    <style>
        #ref {
            background-color: white;
            height: 160px;
            width: 160px;
        }
        #test {
            border: black solid 5px;
            border-top-style: solid;
            border-right-style: dotted;
            border-bottom-style: dashed;
            border-left-style: double;
            bottom: 160px;
            height: 100px;
            padding: 25px;
            position: relative;
            width: 100px;
        }
    </style>
  </head>
  <body>
    <p>Test passes if there is a white square, left border style is double, bottom border style is dashed, right border style is dotted, top border style is solid.</p>
    <div id="ref"></div>
    <div id="test"></div>
  </body>
</html>