[Webkit-unassigned] [Bug 61050] HTML editing: Font size not written to HTML when identical to default font size

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 18 13:20:54 PDT 2011


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


Aryeh Gregor <ayg at aryeh.name> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ayg at aryeh.name




--- Comment #2 from Aryeh Gregor <ayg at aryeh.name>  2011-08-18 13:20:55 PST ---
If you take some HTML and put it in a different page where it has different styles applying to it, it will display differently, yes.  If you put it on a page with a different font color, or background color, font, etc., etc. it will display differently.  There's no reasonable way to prevent this other than adding <div style="color: ...; font-size: ...; font-face: ...; etc."> inside every editable region, which is impractical.  Anyone who saves editable content and restores it in some other place has to make sure the styles match, or else it will definitely look different.

So this does not seem like a bug to me.  As a general rule, no markup should be added if the styles are already correct.  This keeps markup length to a minimum, and it's what's required by the editing spec at this point.

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



More information about the webkit-unassigned mailing list