Issue Bug Rejected

#91644cssInline non closing comment affects following css

Henrik Elsner 06/15/20, 08:17 updated 08/13/20, 12:31

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

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.