Quick CSS quiz

Given these CSS instructions,

z[x] > a[i] {color: blue;}
z z[x] a {text-decoration: underline;}
z > z a , z z z + a { color: red ;}

what will be the color of the text in the following XML file?

<?xml-stylesheet type="text/css"
<z><z x="x">
<z />
<a i="x">my text</a>

Published by

Daniel Lemire


3 thoughts on “Quick CSS quiz”

  1. Wow, and I thought I had a good understanding of CSS! I didn’t know you could apply it to XML and I don’t recognize half of that syntax! I am going to guess blue though since the first rule appears to be a more fine grained rule

Leave a Reply



    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    Markdown is turned off in code blocks:


Here is some inline `code`.
