Commit graph

7 commits

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.
2015-08-05 22:48:01 -04:00
Ian Prest
accec31c4e Fixed a problem parsing CSS comments
-- The WS rule was incorrect, so two WHITESPACE tokens in a row wouldn't
work.
2015-08-05 20:53:19 -04:00
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
2015-08-04 22:54:58 -04:00
Ian Prest
9e290bfe05 Fix CSS parser to handle at-rules with nested blocks
-- Specifically turns up in "@keyframe" at-rules.
2015-07-31 19:30:34 -04:00
Ian Prest
bbfa626bcc Fix CSS parser to handle at-rules with no selector & no whitespace 2015-07-31 19:27:04 -04:00
Ian Prest
51813fbde0 Tweaked CSS parser to just return an array of rules 2015-07-30 21:35:27 -04:00
Ian Prest
f9fcd4e8c4 Wrote my own CSS parser + unit-tests 2015-07-30 21:28:17 -04:00