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
With a recent PR (#134), the previous bug was fixed. The patch from that PR can be applied to both versions and it fixes the issue where the parser hangs indefinitely. After applying that patch locally to both versions, I tried that same block of code again with postcss-env-function with this script:
I've found that using ignoreUnknownWords set to true parses successfully the CSS block, but I'm not sure if a special case should be added for this case. Maybe we could treat it completely as a string (since its just for legacy purposes). I haven't worked with IE filters before, so I'm not sure if it is possible to ignore anything that starts with progid.
The next major version is being upgraded to handle everything that is spec compliant. Unfortunately, IE filters are not. I'm planning on a non-spec-compliant mode, but that will likely take some time. As this isn't spec compliant, and ignoreUnknownWords workaround works, closing this one.
How Do We Reproduce?
Using this block of CSS with
postcss-env-function v3.0.0
(which uses v3.2.1 of this library internally), the parser hangs indefinitely:The previous CSS block was modified from this block of CSS from Leaflet.
With a recent PR (#134), the previous bug was fixed. The patch from that PR can be applied to both versions and it fixes the issue where the parser hangs indefinitely. After applying that patch locally to both versions, I tried that same block of code again with
postcss-env-function
with this script:It now throws this error:
Using v5.0.0 (the latest release of this library) with this script gives the same result:
Running the previous script results in this error like the previous one:
Expected Behavior
It should probably ignore these types of proprietary functions from IE.
Actual Behavior
It throws the errors I mentioned before.
The text was updated successfully, but these errors were encountered: