Add parsing of double values in style attributes

This commit is contained in:
Keith Yeung 2016-04-12 18:01:09 -04:00
parent 84ab7e9fe8
commit 48b2e9c055
11 changed files with 132 additions and 14 deletions

View file

@ -150,8 +150,8 @@ pub fn parse_legacy_font_size(mut input: &str) -> Option<&'static str> {
// Steps 6, 7, 8
let mut value = match read_numbers(input_chars) {
Some(v) => v,
None => return None,
(Some(v), _) => v,
(None, _) => return None,
};
// Step 9