[Webkit-unassigned] [Bug 26871] Can't unbold text in div in font-weight span
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Jul 10 16:02:50 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=26871
Ryosuke Niwa <rniwa at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ojan at chromium.org
--- Comment #2 from Ryosuke Niwa <rniwa at webkit.org> 2010-07-10 16:02:49 PST ---
Typos:
visually different from the end* of div inside.
while* investigating* this problem
Maybe what we need is to push down all styles regardless of whether it's text decoration or not. Consider the following HTML:
<div style="font-weight: bold;">hello<div id="test">world</div></div>
By toggling bold on "world", we get:
<div style="font-weight: bold;">hello<div id="test"><span class="Apple-style-span" style="font-weight: normal;">world</span></div></div>
On the other hand, if we had:
<div style="text-decoration: underline;">hello<div id="test">world</div></div>
and toggled underline on "world", we get:
<div style=""><u>hello</u><div id="test">world</div></div>
because we push-down any text decorations and re-apply styles. Except the style attribute, which should go away entirely, this markup looks much cleaner. There might be some conflict of interets in terms of preserving original elements and keeping the markup simple & clean.
--
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