You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consume a block's contents collects declarations into the decls list, but only copies that over into rules when an at-rule is encountered. If decls is not empty when <EOF-token> or <}-token> is encountered, those declarations are lost.
As a side note, not sure if #8834 is asking for this particular kind of feedback, but the new algorithms have been very straightforward to implement directly, and feel like a nice improvement to how they worked previously. (Token streams are how I'd ended up implementing it before so it's nice to have that actually match the spec!) So thanks @tabatkins
The text was updated successfully, but these errors were encountered:
Consume a block's contents collects declarations into the
decls
list, but only copies that over intorules
when an at-rule is encountered. Ifdecls
is not empty when<EOF-token>
or<}-token>
is encountered, those declarations are lost.I think the fix is to change this:
into this:
This at least worked for me.
As a side note, not sure if #8834 is asking for this particular kind of feedback, but the new algorithms have been very straightforward to implement directly, and feel like a nice improvement to how they worked previously. (Token streams are how I'd ended up implementing it before so it's nice to have that actually match the spec!) So thanks @tabatkins
The text was updated successfully, but these errors were encountered: