Bug #69648
closedBuilt-in css minification destroys certain CSS constructs
0%
Description
Example:
top: calc(100% + 5px);
is compressed to
top:calc(100%+5px);
The latter on is invalid and thus ignored by browsers. From here :
Note: The + and - operators must always be surrounded by whitespace.
The operand of calc(50% -8px) for instance will be parsed as a percentage
followed by a negative length, an invalid expression, while the operand
of calc(50% - 8px) is a percentage followed by a minus sign and a length.
Even further, calc(8px + -50%) is treated as a length followed by a plus
sign and a negative percentage. The * and / operators do not require
whitespace, but adding it for consistency is allowed, and recommended.
Updated by Christian Kuhn about 9 years ago
Hey Jost. We've fiddled with this stuff already and it is fixed in 7. in 6.2 however it may lead to pcre segfaults and this is much worse than the broken compression. Probably, we will not make additional attempts to still fix this issue in 6.2 anymore.
Updated by Daniel Goerz about 9 years ago
- Status changed from New to Closed