#tree | div | id=foo | p* | class=green #ua div, p { display: block; } #user .green { color: #f00 !important; } #author div#foo { background-color: #bbc; } .green { color: #0f0; } #errors #expected background-attachment: scroll background-color: transparent background-image: none background-position: 0% 0% background-repeat: repeat border-top-color: #00000000 border-right-color: #00000000 border-bottom-color: #00000000 border-left-color: #00000000 border-top-style: none border-right-style: none border-bottom-style: none border-left-style: none border-top-width: medium border-right-width: medium border-bottom-width: medium border-left-width: medium bottom: auto caption-side: top clear: none clip: auto color: #ff000000 display: block #reset #tree screen | div* #ua div { display: block; } #user print div { display: inline; } #errors #expected background-attachment: scroll background-color: transparent background-image: none background-position: 0% 0% background-repeat: repeat border-top-color: #00000000 border-right-color: #00000000 border-bottom-color: #00000000 border-left-color: #00000000 border-top-style: none border-right-style: none border-bottom-style: none border-left-style: none border-top-width: medium border-right-width: medium border-bottom-width: medium border-left-width: medium bottom: auto caption-side: top clear: none clip: auto display: block #reset #tree all | div* #author div { background-color: #000; } div:active { background-color: #bbc; } #errors #expected background-attachment: scroll background-color: #00000000 background-image: none background-position: 0% 0% background-repeat: repeat border-top-color: #00000000 border-right-color: #00000000 border-bottom-color: #00000000 border-left-color: #00000000 border-top-style: none border-right-style: none border-bottom-style: none border-left-style: none border-top-width: medium border-right-width: medium border-bottom-width: medium border-left-width: medium bottom: auto caption-side: top clear: none clip: auto display: inline #reset #tree | div | p* #author p:first-child { background-color: #bbc; } #errors #expected background-attachment: scroll background-color: #bbbbcc00 background-image: none background-position: 0% 0% background-repeat: repeat border-top-color: #00000000 border-right-color: #00000000 border-bottom-color: #00000000 border-left-color: #00000000 border-top-style: none border-right-style: none border-bottom-style: none border-left-style: none border-top-width: medium border-right-width: medium border-bottom-width: medium border-left-width: medium bottom: auto caption-side: top clear: none clip: auto display: inline #reset