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

Font-size used by the HTMLEditor is wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx17
    • javafx
    • web
    • x86_64
    • windows

      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.


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

              Created:
              Updated: