mirror of
https://github.com/servo/servo.git
synced 2025-08-13 09:25:32 +01:00
Allow 'decimal' and 'none' in <counter-style-name>
… other than in `@counter-style`.
This commit is contained in:
parent
1146921866
commit
0ff64bdc59
7 changed files with 45 additions and 5 deletions
|
@ -38,7 +38,7 @@ pub fn parse_counter_style_name(input: &mut Parser) -> Result<CustomIdent, ()> {
|
|||
if let Some(&lower_cased) = predefined(&ident) {
|
||||
Ok(CustomIdent(Atom::from(lower_cased)))
|
||||
} else {
|
||||
CustomIdent::from_ident(ident, &["decimal", "none"])
|
||||
CustomIdent::from_ident(ident, &[])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -248,6 +248,7 @@ counter_style_descriptors! {
|
|||
|
||||
/// https://drafts.csswg.org/css-counter-styles/#counter-style-fallback
|
||||
"fallback" fallback / eCSSCounterDesc_Fallback: Fallback = {
|
||||
// FIXME https://bugzilla.mozilla.org/show_bug.cgi?id=1359323 use atom!()
|
||||
Fallback(CustomIdent(Atom::from("decimal")))
|
||||
}
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
predefined! {
|
||||
"decimal",
|
||||
"decimal-leading-zero",
|
||||
"arabic-indic",
|
||||
"armenian",
|
||||
|
|
|
@ -25,9 +25,6 @@ def main(filename):
|
|||
predefined! {
|
||||
""")
|
||||
for name in names:
|
||||
# FIXME https://github.com/w3c/csswg-drafts/issues/1285
|
||||
if name == 'decimal':
|
||||
continue
|
||||
f.write(' "%s",\n' % name)
|
||||
f.write('}\n')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue