two-dash-identifiers.html (685B)
1 <!DOCTYPE html> 2 <style> 3 .ok { color: red; } 4 #-- { color: green; } 5 #-foo { color: green } 6 #--foo { color: green; } 7 .-- { color: green; } 8 .-foo { color: green; } 9 .--foo { color: green; } 10 11 .fail { color: green; } 12 #- { color: red; } 13 .- { color: red; } 14 </style> 15 <div class="ok" id="--">This should be green.</div> 16 <div class="ok" id="-foo">This should be green.</div> 17 <div class="ok" id="--foo">This should be green.</div> 18 <div class="ok --">This should be green.</div> 19 <div class="ok -foo">This should be green.</div> 20 <div class="ok --foo">This should be green.</div> 21 <div class="fail" id="-">This should be green.</div> 22 <div class="fail -">This should be green.</div>