We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e60477b commit bd282d5Copy full SHA for bd282d5
Cargo.toml
@@ -1,7 +1,7 @@
1
[package]
2
3
name = "cssparser"
4
-version = "0.13.6"
+version = "0.13.7"
5
authors = [ "Simon Sapin <simon.sapin@exyr.org>" ]
6
7
description = "Rust implementation of CSS Syntax Level 3"
src/tokenizer.rs
@@ -859,7 +859,7 @@ fn consume_numeric<'a>(tokenizer: &mut Tokenizer<'a>) -> Token<'a> {
859
if !tokenizer.is_eof() && tokenizer.next_byte_unchecked() == b'%' {
860
tokenizer.advance(1);
861
return Percentage(PercentageValue {
862
- unit_value: value as f32 / 100.,
+ unit_value: (value / 100.) as f32,
863
int_value: int_value,
864
has_sign: has_sign,
865
})
0 commit comments