mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add parsing of double values in style attributes
This commit is contained in:
parent
84ab7e9fe8
commit
48b2e9c055
11 changed files with 132 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue