Bug #91644

cssInline non closing comment affects following css

Added by Henrik Elsner 18 days ago. Updated 18 days ago.

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

0%

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

Bildschirmfoto 2020-06-15 um 08.12.23.png View (23.5 KB) Henrik Elsner, 2020-06-15 08:12

History

#1 Updated by Henrik Elsner 18 days ago

  • Description updated (diff)

#2 Updated by Henrik Elsner 18 days ago

  • Description updated (diff)

Also available in: Atom PDF