parsing-legacy-colour-value-ascii-case-insensitive.html (906B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <link rel="help" href="https://html.spec.whatwg.org/#rules-for-parsing-a-legacy-colour-value"> 4 <link rel="match" href="parsing-legacy-colour-value-ascii-case-insensitive-ref.html"> 5 <meta name="assert" content="special legacy color value “transparent” is ASCII case-insensitive"> 6 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> 7 <p>This square should be black: <font face="Ahem" color="transparent">X</font> 8 <p>This square should be black: <font face="Ahem" color="TrAnSpArEnT">X</font> 9 <p>This square should be blue: <font face="Ahem" color="tranſparent">X</font> 10 <!-- 11 Following the rules for parsing a legacy color value should yield a shade of 12 blue, because only the following steps apply, not step 4: 13 14 1. tranſparent 15 10. 00a000a0e00 16 11. 00a000a0e000 17 12. 00a0 00a0 e000 (length = 4) 18 15. 00 00 e0 19 20. #0000E0 20 -->