Project

General

Profile

Actions

Bug #91644

closed

cssInline non closing comment affects following css

Added by Henrik Elsner over 4 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-06-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Setup/Page/Index.html#cssinline-array

In a setup with more than one cssInline data an issue occurs when a non closing css comment is used within a css definition that is not last.
'Hard' to describe, easy to understand with code and screenshot.

cssInline {
      1 = TEXT
      1.value (
         .inlineCssComment {
            display: block;
         }
         /*
         currently unused, but maybe needed later on.
         .foobar { display: block; }
      )

      2 = TEXT
      2.value  (
         .test {
            display:block;
         }

         .test2 {
            display: block;
         }
      )
   }

results in


<style type="text/css" id="inline-css">
/*additionalTSFEInlineStyle*/
         .inlineCssComment {
            display: block;
         }
         /*
         currently unused, but maybe needed later on.
         .foobar { display: block; }
         .test {
            display:block;
         }

         .test2 {
            display: block;
         }

</style>

which disables all classes below the opening comment


Files

Actions

Also available in: Atom PDF