Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-116940

Inline SVG markup is not rendered properly

    Details

      Description

      Steps to reproduce:

      1. Create a Basic Web Content with the following markup using the editor in HTML mode:
        <svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
        <style>
        .classA { fill:red }
        </style>
        <defs>
        <g id="Port">
        <circle style="fill:inherit" r="10"/>
        </g>
        </defs>
        
        <text y="15">black</text>
        <use x="50" y="10" xlink:href="#Port" />
        <text y="35">red</text>
        <use x="50" y="30" xlink:href="#Port" class="classA"/>
        <text y="55">blue</text>
        <use x="50" y="50" xlink:href="#Port" style="fill:blue"/>
        </svg>
        
      1. Add a Web Content Display Widget to a Widget Page configured with the Web Content created previously.

      Expected result:

      • The widget shows three lines with the texts black, red, and blue along with three circles: back, red, and blue.

      Actual result:

      • The widget shows three lines with the texts black, red, and blue but without the three circles.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              summer.zhang Summer Zhang
              Reporter:
              daniel.couso Daniel Couso
              Participants of an Issue:
              Recent user:
              Yunlin "Steven" Sun
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                32 weeks, 5 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP95
                  7.0.10.15 DXP SP15
                  7.0.X
                  7.1.10 DXP FP19
                  7.1.10.5 SP5
                  7.1.X
                  7.2.10 DXP FP8
                  7.2.10.2 DXP SP3
                  7.2.X
                  7.3.4 CE GA5
                  7.3.10 DXP GA1
                  Master