[Webkit-unassigned] [Bug 20321] New: font sizes in design mode

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 7 13:35:07 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=20321

           Summary: font sizes in design mode
           Product: WebKit
           Version: 525.x (Safari 3.1)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ptucker at google.com
                CC: justin.garcia at apple.com, ptucker at google.com


I'm an engineer on Google Documents. We're running into an issue with HTML font
translations in Safari, and I was wondering if you could shed some light.

In Safari, in design mode, if we call execCommand('fontSize', size), where size
is 1...7, we get:

<span class="Apple-style-span" style="font-size: x-small;">8</span>
<span class="Apple-style-span" style="font-size: small;">10</span>
<span class="Apple-style-span" style="font-size: medium;">12</span>
<span class="Apple-style-span" style="font-size: large;">14</span>
<span class="Apple-style-span" style="font-size: x-large;">18</span>
<span class="Apple-style-span" style="font-size: xx-large;">24</span>
<span class="Apple-style-span" style="font-size: -webkit-xxx-large;">36</span>

No xx-small, and -webkit-xxx-large for the largest size.

The problem is, these font sizes (xx-small ... xx-large) render differently
between IE  (which maps xx-small -> 1, x-small -> 2 ... xx-large -> 7) and both
Firefox and Safari (which maps xx-small -> 1, x-small -> 1, small -> 2, ...
xx-large -> ???). Do you know why this discrepancy exists? Is there a better
way to apply font sizes that is more consistent across browsers?


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list