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
calc() expressions not followed by end of line or semicolon are matched with the rest of the content on that line until the first semicolon. Sometimes this breaks the calc() expression like in the example below:
It's not clear if both of these are necessary, the second one should
just match everything the first one matches plus things within internal
lines, so it seems redundant.
The unit test commited with it, plus all the others still pass, and
there's no diff in the output on a long test file.
It's not clear if both of these are necessary, the second one should
just match everything the first one matches plus things within internal
lines, so it seems redundant.
The unit test commited with it, plus all the others still pass, and
there's no diff in the output on a long test file.
calc() expressions not followed by end of line or semicolon are matched with the rest of the content on that line until the first semicolon. Sometimes this breaks the calc() expression like in the example below:
Original CSS:
.e-gallery-masonry .e-gallery-item { --percent-height: 0; position:absolute; width:calc(100% / var(--columns) - (var(--hgap) * (var(--columns) - 1) / var(--columns))); left:calc((100% / var(--columns) - (var(--hgap) * (var(--columns) - 1) / var(--columns))) * var(--column) + (var(--hgap) * var(--column))); top:calc(var(--percent-height) + (var(--row) * var(--vgap))) }
Minified CSS:
.e-gallery-masonry .e-gallery-item{--percent-height:0;position:absolute;width:calc(100% / var(--columns) - (var(--hgap) * (var(--columns) - 1) / var(--columns)));left:calc((100% / var(--columns) - (var(--hgap) * (var(--columns) - 1) / var(--columns))) * var(--column) + (var(--hgap) * var(--column)));top:calc(var(--percent-height)+(var(--row) * var(--vgap)))}
The problem is that there are no spaces around the last + (
...height)+(var(--row)...
)The text was updated successfully, but these errors were encountered: