Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8326734

text-decoration applied to <span> lost when mixed with <u> or <s>

XMLWordPrintable

        The value of 'text-decoration' property applied to <span> gets lost when it's mixed with <u> or <s>.

        <u><span style='text-decoration: line-through'>underline + line-through</span></u>
        <s><span style='text-decoration: underline'>underline + line-through</span></s>

        <span style='text-decoration: line-through'><u>underline + line-through</u></span>
        <span style='text-decoration: underline'><s>underline + line-through</s></span>

        These four snippets should produce text which renders both underline and line-through. Yet they render only the style applied to the <span> element.

        Two <span> elements don't work either:
        <span style='text-decoration: line-through'><span style='text-decoration: underline'>underline + line-through</span></span>
        <span style='text-decoration: underline'><span style='text-decoration: line-through'>underline + line-through</span></span>

        Only the latest value is respected.

              aivanov Alexey Ivanov
              shadowbug Shadow Bug
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: