Skip to content

Commit 5307ec3

Browse files
committed
serializer: Add a TODO for something the fuzzer caught which was a real bug (sorta)
1 parent 0212922 commit 5307ec3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/serializer.rs

+2
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ impl<'a> ToCss for Token<'a> {
107107
write_numeric(value, int_value, has_sign, dest)?;
108108
// Disambiguate with scientific notation.
109109
let unit = &**unit;
110+
// TODO(emilio): This doesn't handle e.g. 100E1m, which gets us
111+
// an unit of "E1m"...
110112
if unit == "e" || unit == "E" || unit.starts_with("e-") || unit.starts_with("E-") {
111113
dest.write_str("\\65 ")?;
112114
serialize_name(&unit[1..], dest)?;

0 commit comments

Comments
 (0)