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
This issue was previously reported at reworkcss#171, the upstream of this fork, but it doesn't seem likely that this will be fixed any time soon. Read it for more details.
Expected Behaviour
A closing paratheses ()) should not close a url("...") string while still inside quotes.
Actual Behaviour
It seems like ) inside a URL string in CSS causes this parser to close it prematurely, causing errors of invalid syntax afterward (still inside the string) and causing the closing of the string to fail sometimes, capturing everything until the next url("") silently.
This issue was encountered in the wild while trying to parse the Bootstrap 4.0 minified CSS. It contains the following code containing an SVG with ) inside of the string, causing it to skip around 70.000 bytes of CSS until it finds the next url(""):
This issue was previously reported at reworkcss#171, the upstream of this fork, but it doesn't seem likely that this will be fixed any time soon. Read it for more details.
Expected Behaviour
A closing paratheses (
)
) should not close aurl("...")
string while still inside quotes.Actual Behaviour
It seems like
)
inside a URL string in CSS causes this parser to close it prematurely, causing errors of invalid syntax afterward (still inside the string) and causing the closing of the string to fail sometimes, capturing everything until the nexturl("")
silently.Reproduce Scenario
Sample Code that illustrates the problem
Error:
Capturing rules in between:
This issue was encountered in the wild while trying to parse the Bootstrap 4.0 minified CSS. It contains the following code containing an SVG with
)
inside of the string, causing it to skip around 70.000 bytes of CSS until it finds the nexturl("")
:Logs taken while reproducing problem
Error:
Capturing rules in between:
The text was updated successfully, but these errors were encountered: