execCommand('bold') behavior is different from Blink
Categories
(Core :: DOM: Editor, defect, P3)
Tracking
()
People
(Reporter: dalius.dobravolskas, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [h2review-noted])
Attachments
(1 file)
12.28 KB,
text/html
|
Details |
Updated•6 years ago
|
Updated•6 years ago
|
Comment 1•5 years ago
•
|
||
Note that Firefox thinks font-weight: 500
is bold enough and tries to un-bold it, while Chrome only does the same thing starting from font-weight: 600
. It doesn't depend on how the font actually renders; for example, font-weight: 550
for Times New Roman means a bold text but Chrome still tries to make it bold again, getting no visual change just as this bug describes.
Updated•5 years ago
|
Comment 2•4 years ago
|
||
This is exactly the behavior difference described in the execCommand spec.
Masayuki, should Gecko behavior match Blink one? The spec author seems to think Blink one better matches intuition.
Well, if Safari is also using same threshold, changing our threshold must be better for web-compat, but I'm not sure about backward compatibility and usual font rendering result. Perhaps, I think that we should file new spec issue and ask other vendors if our behavior is better for font rendering result.
Updated•4 years ago
|
Updated•4 years ago
|
Updated•2 years ago
|
Description
•