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
I'm updating dependencies in CSS MQPacker. However white space normalization in v4.0.0 looks very different to v3.x.x. Sometimes v4.0.0 removes after, sometimes removes between. Both expected results updated for passing test with v4.0.0.
I want to know what PostCSS v4.0.0 will and will not do to white spaces when moving nodes.
The text was updated successfully, but these errors were encountered:
When you clone() node, PostCSS will remove all style properties (after, before, between).
When you move node to other CSS root (by moveTo()), it will also remove all style properties.
When you move node to same CSS root, it will remove only before and after.
Set new:
When you insert node before some node, PostCSS will copy before from existed node to new one.
When you try to stringify some node and it has no between, PostCSS willl try to find node with same type and copy between from this other node.
When you try to stringify some node and it has no before or after, PostCSS will try to find what is indent that you use in your CSS by other nodes, which has before. Then PostCSS will calc current node depth and will calc before.
I'm updating dependencies in CSS MQPacker. However white space normalization in v4.0.0 looks very different to v3.x.x. Sometimes v4.0.0 removes
after
, sometimes removesbetween
. Both expected results updated for passing test with v4.0.0.I want to know what PostCSS v4.0.0 will and will not do to white spaces when moving nodes.
The text was updated successfully, but these errors were encountered: