Move (some) CSSStyleDeclaration.SetProperty logic to style

This commit is contained in:
Simon Sapin 2016-10-07 18:44:05 +02:00
parent bd4a4c38c8
commit c740a76410
4 changed files with 103 additions and 98 deletions

View file

@ -1974,6 +1974,8 @@ pub fn modify_style_for_inline_absolute_hypothetical_fragment(style: &mut Arc<Co
}
}
// FIXME: https://github.com/w3c/csswg-drafts/issues/580
pub fn is_supported_property(property: &str) -> bool {
match_ignore_ascii_case! { property,
% for property in data.shorthands + data.longhands: