[Webkit-unassigned] [Bug 81656] Backspace/delete produces combined font/span from existing inline elements
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 24 16:28:19 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=81656
--- Comment #8 from Ryosuke Niwa <rniwa at webkit.org> 2012-05-24 16:27:24 PST ---
(In reply to comment #7)
> Common desktop office suites like word etc keep the formatting when you delete the last character in a P tag.
I don't think this is true at least for bolding.
> So when you type again it will be the right font size that the paragraph had. But sure it bloats up the HTML a bit since you might then have paragraphs like:
> <p><span class="x"><b><i><br></i></b></span></p>
Yes.
> It think it would look strange if you backspaced in this contents:
> <p><span style="font-size:large">a</span></p>
> <p><span style="font-size:large">b|</span></p>
> <p><span style="font-size:large">c</span></p>
>
> And it would produce:
> <p><span style="font-size:large">a</span></p>
> <p>|</p>
> <p><span style="font-size:large">c</span></p>
>
> Since the line height would change when you remove the inline element. For a developer it would be ok but not for n00bs that doesn't understand that rich text editors produce HTML and that the inner element got removed.
Yeah, maybe we need to treat font-size special.
--
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