summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-ui/outline-022.html
blob: 5da549691ee37067d65cd1dc9b4cafad54c612c1 (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
<!DOCTYPE html>
<title>CSS-UI test: outline works on nested spans</title>
<link rel="author" href="mailto:atotic@google.com">
<link rel="help" href="https://drafts.csswg.org/css-ui/#outline-props">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
body {
  --outline-width: 10px;
  --square-width: 80px;
}
#container {
  width: var(--square-width);
  padding: var(--outline-width);
}
#target {
  font-family: Ahem;
  font-size: var(--square-width);
  outline: solid var(--outline-width) green;
  color: green;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div id="container">
  <span>
    <span>
      <span id="target">x</span>
    </span>
  </span>
</div>