summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text-decor/text-shadow/currentcolor.html
blob: 0bed94895521c0bdc6ae92cbc234c21806200238 (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
<!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: 'text-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-text-decor-3/#text-shadow-property" />
    <link rel="help" href="https://www.w3.org/TR/css-color-3/#currentcolor" />
    <link rel="match" href="currentcolor-ref.html" />
    <style>
     body {
         color: red;
         text-shadow: 0 0 10px currentcolor;
     }

     p {
         text-shadow: inherit;
         color: green;
         font: 1.5em Georgia, serif;
     }
    </style>
  </head>
  <body>
    <!-- content of test -->
    <p>This text should have a green drop shadow</p>
  </body>
</html>