You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CSS grammar supports range restrictions for numeric values of the form <integer [0,10]> (signifying a number that can have any integer value from 0...10 inclusive). Range annotations are used in two places in the MDN syntaxes.json file, so far:
However, kumascript/macros/CSSSyntax.ejs mis-parses those annotations, resulting in corrupted HTML source such as this example from font-weight§Formal syntax:
<preclass="syntaxbox notranslate"><ahref="#font-weight-absolute"><font-weight-absolute></a><ahref="/en-US/docs/CSS/Value_definition_syntax#Single_bar"
title="Single bar: exactly one of the entities must be present">|</a>
bolder
<ahref="/en-US/docs/CSS/Value_definition_syntax#Single_bar"
title="Single bar: exactly one of the entities must be present">|</a>
lighter
<pstyle="font-family: Open Sans,Arial,sans-serif; margin: 10px 0 0 0;">where <br><codestyle='font-family: Consolas,Monaco,"Andale Mono",monospace;'><spanid="font-weight-absolute"><font-weight-absolute></span>
= normal
<ahref="/en-US/docs/CSS/Value_definition_syntax#Single_bar"
title="Single bar: exactly one of the entities must be present">|</a>
bold
<ahref="/en-US/docs/CSS/Value_definition_syntax#Single_bar"
title="Single bar: exactly one of the entities must be present">|</a>
<number
<a href="/en-US/docs/CSS/Value_definition_syntax#Brackets"
title="Brackets: enclose several entities, combinators, and multipliers to
transform them as a single component">
[1,1000
<ahref="/en-US/docs/CSS/Value_definition_syntax#Brackets"
title="Brackets: enclose several entities, combinators, and multipliers to transform them as a single component">]</a>
>
</code></p></pre>
This renders as:
<font-weight-absolute> | bolder | lighter
where
<font-weight-absolute> = normal | bold | <number <a href="/en-
US/docs/CSS/Value_definition_syntax#Brackets" title="Brackets: enclose several
entities, combinators, and multipliers to transform them as a single component">
[1,1000]>
Instead of the expected:
<font-weight-absolute> | bolder | lighter
where
<font-weight-absolute> = normal | bold | <number [1,1000]>
The CSS grammar supports range restrictions for numeric values of the form
<integer [0,10]>(signifying a number that can have any integer value from 0...10 inclusive). Range annotations are used in two places in the MDNsyntaxes.jsonfile, so far:font-weight-absolute(since Restrict font-weight-absolute values to numbers in the 1...1000 range data#420)cubic-bezier-timing-function(since restrict cubic-bezier-timing-function abscissas to be in range [0,1] data#416)However,
kumascript/macros/CSSSyntax.ejsmis-parses those annotations, resulting in corrupted HTML source such as this example fromfont-weight§Formal syntax:This renders as:
Instead of the expected: