Project

General

Profile

Actions

Bug #69309

closed

config.compressCss breaks CSS3 calc() value

Added by Arne-Kolja Bachstein over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2015-08-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
CSS
Complexity:
Is Regression:
No
Sprint Focus:

Description

When enabling config.compressCss, CSS3 calc() definitions may break, because it strips space characters where they are needed to be kept.

Example:

left:calc(1em + 100px);

becomes

left:calc(1em+100px);

which is wrong, as the CSS parser cannot differ between negative values and subtraction any more.

See http://www.w3.org/TR/css3-values/#calc:

Note that the grammar requires spaces around binary ‘+’ and ‘-’ operators. The ‘*’ and ‘/’ operators do not require spaces.

Stumbled upon it in TYPO3 CMS 6.2.14, but I think it's going to be a problem with all versions. Checked in Safari 8.0.8 (10600.8.9) and Chrome 44.0.2403.155 (64-bit).

Note:

config.minifyCss doesn't have the problem.

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #62463: bug in compressing the css-files!?Closed2014-10-25

Actions
Has duplicate TYPO3 Core - Bug #69648: Built-in css minification destroys certain CSS constructsClosed2015-09-10

Actions
Actions

Also available in: Atom PDF