Closed ojab closed 3 years ago
So yeah, it's more or less RFC at this point and I will add Declarations#replace_declaration!
tests, just want to make sure that this approach is acceptable.
CI failed
Yeah, trying to test forwardable, but looks like it's not trivial here https://github.com/seattlerb/minitest/issues/545
Comments are more or less addressed, CI is passing, I think it's ready if everything is fine for you.
Thanks :tada:! Can I haz release?
1.8.0
On Thu, Jan 21, 2021 at 11:36 AM Slava Kardakov notifications@github.com wrote:
Thanks 🎉! Can I haz release?
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/premailer/css_parser/pull/119#issuecomment-764887413, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAACYZ372C227ZMGZHBL4F3S3B62PANCNFSM4WJEACNA .
We can piggyback on
Hash
preserving it's order in all supported rubies & drop order. Looks quite ugly, but does the trick. I assume that it will be faster if we'll properly track and propagateorder
in all places, but I suspect it will be also harder to work with.And we're little faster at parsing because of
order
is removed: Before:After:
And little slower at expanding shorthands (tested on github's 500KB css with
parser.each_rule_set { |rule_set, _media_type| rule_set.expand_shorthand! }
, not sure how relevant this file is though) Before:After:
Fixes #111