mirror of
https://github.com/servo/servo.git
synced 2025-10-01 09:09:15 +01:00
Add some machinery to allow us to disable CSS properties (or a subset of values for a property) on a per-product basis.
This commit is contained in:
parent
39ab006c8f
commit
4861d5add8
6 changed files with 70 additions and 21 deletions
|
@ -37,3 +37,4 @@ path = "../../components/util"
|
|||
|
||||
[dependencies.style]
|
||||
path = "../../components/style"
|
||||
features = ["gecko"]
|
||||
|
|
|
@ -59,7 +59,7 @@ from mako.template import Template
|
|||
from mako import exceptions
|
||||
try:
|
||||
style_template = Template(filename=os.environ['STYLE_TEMPLATE'], input_encoding='utf8')
|
||||
style_template.render()
|
||||
style_template.render(PRODUCT='gecko')
|
||||
|
||||
geckolib_template = Template(filename=os.environ['GECKOLIB_TEMPLATE'], input_encoding='utf8')
|
||||
output = geckolib_template.render(STYLE_STRUCTS = style_template.module.STYLE_STRUCTS,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue