Add dashed CSS properties to CSSStyleDeclaration.

This commit is contained in:
Josh Matthews 2015-08-28 13:13:13 -04:00
parent 40806977b5
commit b62d1a1c43
2 changed files with 107 additions and 0 deletions

View file

@ -6581,6 +6581,9 @@ macro_rules! css_properties_accessors {
$macro_name! {
% for property in SHORTHANDS + LONGHANDS:
% if property.derived_from is None:
% if '-' in property.name:
[${property.ident.capitalize()}, Set${property.ident.capitalize()}, "${property.name}"],
% endif
% if property != LONGHANDS[-1]:
[${property.camel_case}, Set${property.camel_case}, "${property.name}"],
% else: