WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
12874
execCommand FontSize -webkit-xxx-large instead of passed px value
https://bugs.webkit.org/show_bug.cgi?id=12874
Summary
execCommand FontSize -webkit-xxx-large instead of passed px value
Peer Bremer
Reported
2007-02-23 19:09:05 PST
document.execCommand("FontSize", false, str); Before passing "10px" to this function produced: <SPAN class="Apple-style-span" style="font-size: 10px;">Text</SPAN> Now this gives me no matter what I pass: <span class="Apple-style-span" style="font-size: -webkit-xxx-large;">Text</span> compactible format, with much less control unless there is another web kit command to pass a font size with a point or pixel value.
Attachments
Add attachment
proposed patch, testcase, etc.
Justin Garcia
Comment 1
2007-03-06 16:33:33 PST
We changed this operation to match the spec:
http://msdn.microsoft.com/workshop/author/dhtml/reference/constants/fontsize.asp
Kai Bansner
Comment 2
2008-01-08 17:05:19 PST
I just did a little testing with the lastest nightly. You can set the font-size using .execCommand('FontSize' and values 1-7, but .queryCommandValue('FontSize') returns the font-size in pixels... Not consistent units! Is there a way to convert the result of .queryCommandValue('FontSize') to the corresponding 1-7 value in order to increment font size?
Emerick Rogul
Comment 3
2010-10-06 17:46:28 PDT
I think this bug should be reopened.
Comment #1
indicates that the behavior was changed to match Microsoft's spec. The provided link is dead, but I believe the following link replaces it:
http://msdn.microsoft.com/en-us/library/ms530759(VS.85).aspx
Based on the information in that spec, I should be able to specify 14pt or 14px (among a number of other types). However, WebKit just converts these to -webkit-xxx-large.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug