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

Font-size used by the HTMLEditor is wrong

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: openjfx17
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:
    • Subcomponent:
      web
    • CPU:
      x86_64
    • OS:
      windows

      Description

      The HTMLEditor offers 7 levels of font-size. Applying each of these font-size returns an HTML text that has its font-size attribute set as text:
      <span style="font-size: large;">

      The list of possible values according to mozilla: https://developer.mozilla.org/en-US/docs/Web/CSS/font-size#values

      When we apply the smallest value (1), "x-small" is applied. Applying the largest font-size (7) will make "-webkit-xxx-large" applied.

      This value is not standard and therefore the HTML generated is not compatible with other navigators.

      Possible solutions:
      - Either starts from xx-small and go up to xx-large.
      - Use xxx-large instead of -webkit-xxx-large.


        Attachments

          Activity

            People

            Assignee:
            arapte Ambarish Rapte
            Reporter:
            shadzic Samir Hadzic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: