[Webkit-unassigned] [Bug 100453] contentEditable: Style of List Item Leaks Through After List End

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 6 20:16:11 PDT 2013


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





--- Comment #14 from Vani Hegde <vani.hegde at samsung.com>  2013-08-06 20:15:51 PST ---
(In reply to comment #13)
> In the first example (http://jsfiddle.net/rpkMM/), we should be removing the color if and only if the list item is empty.
> 
> In the second example (http://jsfiddle.net/JWdxC/), we should be preserving the color.

Thanks rniwa.
I am not quite getting why we have to preserve the style in second example(http://jsfiddle.net/JWdxC/), as the style is applied on <ul> from which we are breaking out and the new <ul> into which we are inserting the <li> has a conflicting style.

Are there some general set of rules which we can use to arrive at whether or not to preserve style(specifically while breaking out of empty list item)?

Is it something like if we are breaking out of a nested list (in which case we would create new <li>), we need to retain style?

-- 
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