summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/box-shadow-currentcolor.html
blob: cdb0b9d9fc20e864c1c81b261661b84ac8bca0df (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
<!DOCTYPE html>
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<html>
  <head>
    <meta charset="utf-8">
    <title>CSS Test: 'box-shadow' respects 'currentcolor'</title>
    <link rel="author" title="Dan Glastonbury" href="mailto:dglastonbury@mozilla.com" />
    <link rel="help" href="https://www.w3.org/TR/css-backgrounds-3/#the-box-shadow" />
    <link rel="help" href="https://www.w3.org/TR/css-color-3/#currentcolor" />
    <link rel="match" href="box-shadow-currentcolor-ref.html" />
    <style type="text/css">
     div {
         color: transparent;
         padding: 40px;
         box-shadow: 10px 5px 5px currentcolor;
     }

     p {
         padding: 2em;
         border: 1px solid currentcolor;
         box-shadow: inherit;
     }
    </style>
  </head>
  <body>
    <!-- content of test -->
    <div>
      <p style="color: limegreen">
          This box should have a green box shadow.
      </p>
    </div>
  </body>
</html>