summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-values/attr-notype-fallback.html
blob: b88f3de4b571136c53c74486e6b63682bbd3291c (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
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-values-5/#attr-notation">
<link rel="match" href="attr-notype-fallback-ref.html">
<style>
  #one::after {
    content: attr(does-not-exist, "Fallback value");
  }

  #two::after {
    content: attr(does-exist, "Fallback value");
  }

  #three::after {
    content: attr(does-not-exist, invalid);
  }

  #four::after {
    content: attr(does-exist, invalid);
  }

  #five::after {
    content: attr(does-exist, "Fallback value");
  }

  #six::after {
    content: attr(does-exist, "Fallback value");
  }
</style>

<div id="one"></div>
<div id="two" does-exist="Not fallback value"></div>
<div id="three"></div>
<div id="four" does-exist="Not fallback value"></div>
<div id="five" does-exist=""></div>
<div id="six" does-exist></div>