[Webkit-unassigned] [Bug 47054] execCommand('FormatBlock') does not preserve inline styles of the replaced block elements
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Aug 18 11:28:46 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=47054
Aryeh Gregor <ayg at aryeh.name> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ayg at aryeh.name
--- Comment #1 from Aryeh Gregor <ayg at aryeh.name> 2011-08-18 11:28:46 PST ---
This is handled in the spec by "record the values"/"restore the values":
http://aryeh.name/spec/editing/editing.html#the-formatblock-command
http://aryeh.name/spec/editing/editing.html#record-the-values
Basically, for each node in a node list, "record the values" records any inline style that's specified on that node or that it's inheriting from an ancestor. Then "restore the values" checks each node for whether it has the same value, and if not, sets it. I call them every time I move nodes around in a way that might change what styles they inherit.
--
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