mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +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
|
@ -12,7 +12,20 @@ use std::path::Path;
|
|||
fn main() {
|
||||
let static_atoms = Path::new(&env::var("CARGO_MANIFEST_DIR").unwrap()).join("static_atoms.txt");
|
||||
let static_atoms = BufReader::new(File::open(&static_atoms).unwrap());
|
||||
string_cache_codegen::AtomType::new("Atom", "atom!")
|
||||
let mut atom_type = string_cache_codegen::AtomType::new("Atom", "atom!");
|
||||
|
||||
macro_rules! predefined {
|
||||
($($name: expr,)+) => {
|
||||
{
|
||||
$(
|
||||
atom_type.atom($name);
|
||||
)+
|
||||
}
|
||||
}
|
||||
}
|
||||
include!("../style/counter_style/predefined.rs");
|
||||
|
||||
atom_type
|
||||
.atoms(static_atoms.lines().map(Result::unwrap))
|
||||
.write_to_file(&Path::new(&env::var("OUT_DIR").unwrap()).join("atom.rs"))
|
||||
.unwrap();
|
||||
|
|
|
@ -8,6 +8,8 @@ left
|
|||
center
|
||||
right
|
||||
|
||||
none
|
||||
|
||||
hidden
|
||||
submit
|
||||
button
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue