Add a script to list all CSS properties parsed by Servo.

This commit is contained in:
Simon Sapin 2016-01-15 15:50:32 +01:00
parent 679d1280dd
commit 9d29c3d2f5
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,14 @@
#!/bin/env python2.7
import os.path
import sys
style = os.path.dirname(__file__)
sys.path.insert(0, os.path.join(style, "Mako-0.9.1.zip"))
from mako.template import Template
template = Template(filename=os.path.join(style, "properties.mako.rs"), input_encoding='utf8')
template.render()
properties = template.module.LONGHANDS + template.module.SHORTHANDS
for name in sorted(p.name for p in properties):
print(name)