[Webkit-unassigned] [Bug 21033] New: QueryCommandValue('FontSize') returns bogus pixel values

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 23 13:01:26 PDT 2008


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

           Summary: QueryCommandValue('FontSize') returns bogus pixel values
           Product: WebKit
           Version: 525.x (Safari 3.1)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: linda167 at gmail.com


Safari's execCommand('FontSize') takes in the standard browser font sizes
(values range from 1-7). However, when calling queryCommandValue for FontSize,
Safari gives us back bogus pixel values instead of 1-7. 

These pixel values are also not correct. If you measure the actual pixel of the
text, they are much smaller than the pixel values Safari gives us.

The fix should be to return us the correct browser font size values (1-7). IE
and Firefox currently does this.

Here's the table for the bogus pixel values:
Browser font size 1 -> Safari: 10 px (Actual font size: 8 px)
Browser font size 2 -> Safari: 13 px (Actual font size: 10 px)
Browser font size 3 -> Safari: 16 px (Actual font size: 12 px)
Browser font size 4 -> Safari: 18 px (Actual font size: 14 px)
Browser font size 5 -> Safari: 24 px (Actual font size: 18 px)
Browser font size 6 -> Safari: 32 px (Actual font size: 24 px)
Browser font size 7 -> Safari: 48 px (Actual font size: 36 px)


-- 
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