mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Manually implement the display property for now.
This commit is contained in:
parent
972cc7ead5
commit
980c814e2a
3 changed files with 55 additions and 30 deletions
|
@ -20,7 +20,7 @@ class Keyword(object):
|
|||
def __init__(self, name, values, gecko_constant_prefix=None,
|
||||
extra_gecko_values=None, extra_servo_values=None):
|
||||
self.name = name
|
||||
self.values = values
|
||||
self.values = values.split()
|
||||
self.gecko_constant_prefix = gecko_constant_prefix or \
|
||||
"NS_STYLE_" + self.name.upper().replace("-", "_")
|
||||
self.extra_gecko_values = (extra_gecko_values or "").split()
|
||||
|
|
|
@ -170,7 +170,7 @@
|
|||
'gecko_constant_prefix', 'extra_gecko_values', 'extra_servo_values'
|
||||
]}
|
||||
%>
|
||||
<%call expr="longhand(name, keyword=Keyword(name, values.split(), **keyword_kwargs), **kwargs)">
|
||||
<%call expr="longhand(name, keyword=Keyword(name, values, **keyword_kwargs), **kwargs)">
|
||||
pub use self::computed_value::T as SpecifiedValue;
|
||||
${caller.body()}
|
||||
pub mod computed_value {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue