@@ -5376,6 +5376,61 @@ Appendix A: Deprecated CSS System Colors</h2>
53765376 <dd> Text in windows. Same as ''CanvasText'' .
53775377 </dl>
53785378
5379+ <h4 id='quirky-color'>
5380+ Appendix B: Deprecated Quirky Hex Colors</h4>
5381+
5382+ When CSS is being parsed in [=quirks mode=] ,
5383+ <dfn type><<quirky-color>></dfn> is a type of <<color>>
5384+ that is only valid in certain properties:
5385+
5386+ * 'background-color'
5387+ * 'border-color'
5388+ * 'border-top-color'
5389+ * 'border-right-color'
5390+ * 'border-bottom-color'
5391+ * 'border-left-color'
5392+ * 'color'
5393+
5394+ It is <em> not</em> valid in properties that include or reference these properties,
5395+ such as the 'background' shorthand,
5396+ or inside [=functional notations=] such as ''color-mix()''
5397+
5398+ Additionally, while <<quirky-color>> must be valid as a <<color>>
5399+ when parsing the affected properties in the ''@supports'' rule,
5400+ it is <em> not</em> valid for those properties
5401+ when used in the {{CSS.supports()}} method.
5402+
5403+ A <<quirky-color>> can be represented
5404+ as a <<number-token>> , <<dimension-token>> , or <<ident-token>> ,
5405+ according to the following rules:
5406+
5407+ * If it's an <<ident-token>> ,
5408+ the token's representation must contain exactly 3 or 6 characters,
5409+ all hexadecimal digits.
5410+ It represents a <<hex-color>> with the same value.
5411+
5412+ * If it's a <<number-token>> ,
5413+ it must have its integer flag set.
5414+
5415+ Serialize the integer's value.
5416+ If the serialization has less than 6 characters,
5417+ prepend "0" characters to it until it is 6 characters long.
5418+ It represents a <<hex-color>> with the same value.
5419+
5420+ * If it's a <<dimension-token>> ,
5421+ it must have its integer flag set.
5422+
5423+ Serialize the integer's value,
5424+ and append the representation of the token's unit.
5425+ If the result has less than 6 characters,
5426+ prepend "0" characters to it until it is 6 characters long.
5427+ It represents a <<hex-color>> with the same value.
5428+
5429+ (In other words, Quirks Mode allows hex colors to be written without the leading "#",
5430+ but with weird parsing rules.)
5431+
5432+
5433+
53795434
53805435<h2 id="acknowledgments" class="no-num no-ref">
53815436Acknowledgments</h2>
0 commit comments