unique-identifier-3.html (709B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"/> 5 <title>Unique Identifier</title> 6 <link rel="help" href="https://w3c.github.io/mathml-core/#attributes-common-to-html-and-mathml-elements"> 7 <link rel="help" href="https://w3c.github.io/mathml-core/#css-styling"> 8 <link rel="match" href="unique-identifier-3-ref.html"/> 9 <meta name="assert" content="Verify that the id attribute affects CSS selectors."> 10 <style> 11 #fail { display: none; } 12 #pass { background: green; } 13 </style> 14 </head> 15 <body> 16 17 <p>Test passes if you see the text "PASS".</p> 18 <math> 19 <mtext id="fail" style="background: red; color: white;">FAIL</mtext> 20 <mtext id="pass" style="color: white;">PASS</mtext> 21 </math> 22 23 </body> 24 </html>