<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="x-test">
 <style> 
  html{ background:red }
  html:lang(x-test){ background:lime }
 </style>
 <p>This page should have a green background</p>
</html>