summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-parsing/two-dash-identifiers.html
blob: 9ea7854b92a820dd6719cdca763441df9034d492 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<style>
  .ok { color: red; }
  #-- { color: green; }
  #-foo { color: green }
  #--foo { color: green; }
  .-- { color: green; }
  .-foo { color: green; }
  .--foo { color: green; }

  .fail { color: green; }
  #- { color: red; }
  .- { color: red; }
</style>
<div class="ok" id="--">This should be green.</div>
<div class="ok" id="-foo">This should be green.</div>
<div class="ok" id="--foo">This should be green.</div>
<div class="ok --">This should be green.</div>
<div class="ok -foo">This should be green.</div>
<div class="ok --foo">This should be green.</div>
<div class="fail" id="-">This should be green.</div>
<div class="fail -">This should be green.</div>