Commit Graph

7 Commits (master)

Author SHA1 Message Date
Ian Prest 8161c430d3 Fix a font-size serialization bug found by iandoug
-- Custom font sizes on first key; second key had font-sizes reset by
changing the 'default' font size.
-- Unfortunately, this was the same as the *original* default font-size,
so we didn't actually write 'f'.
-- Now forcing 'f' out in this scenario.
9 years ago
Ian Prest accec31c4e Fixed a problem parsing CSS comments
-- The WS rule was incorrect, so two WHITESPACE tokens in a row wouldn't
work.
9 years ago
Ian Prest dbaa19d600 Fix a serialization issue with text sizes
-- Needed parentheses on one of my conditions in compareTextSizes(); was
returning false more often than necessary, which isn't that bad, but
would cause serialization output to be bigger than necessary sometimes.
-- More problematic was that we wouldn't always write f2/fa during
serialization if it was necessary.
---- Any time 'f' is written, we need to blow away the saved font-array.
---- And any time the font comparison fails, we *have* to write f2/fa,
so the call to serializeProp was wrong.
-- Fixes #104
9 years ago
Ian Prest 9e290bfe05 Fix CSS parser to handle at-rules with nested blocks
-- Specifically turns up in "@keyframe" at-rules.
9 years ago
Ian Prest bbfa626bcc Fix CSS parser to handle at-rules with no selector & no whitespace 9 years ago
Ian Prest 51813fbde0 Tweaked CSS parser to just return an array of rules 9 years ago
Ian Prest f9fcd4e8c4 Wrote my own CSS parser + unit-tests 9 years ago