mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
db70f10b72
The other browsers use any inline elements to set CSS property for applying an inline style. However, Gecko limits it to a `<span>` which does not have any attributes. The other browsers' design is better for saving number of elements and runtime cost of inserting new element (moving all children to the new element and inserting it to the original position). Therefore, it's nicer to follow the other browses. Then, we can avoid new WPT failures at aligning other behaviors to the other browsers. With doing that, removing style code requires complicated changes because `RemoveStyleInside` assumes that one element has one style, but after taking the compatible behavior, one element can have multiple styles including the style represented by the element itself. Note that the new expected failures are caused by bug 1183844. Gecko returns closest ancestor element's background color for `queryCommandValue("backColor")`. Therefore, it returns "transparent" of the inner `<span>` element. Differential Revision: https://phabricator.services.mozilla.com/D164004 |
||
---|---|---|
.. | ||
composer | ||
docs | ||
libeditor | ||
reftests | ||
spellchecker | ||
txmgr | ||
AsyncSpellCheckTestHelper.jsm | ||
moz.build | ||
nsIDocumentStateListener.idl | ||
nsIEditActionListener.idl | ||
nsIEditor.idl | ||
nsIEditorMailSupport.idl | ||
nsIEditorSpellCheck.idl | ||
nsIHTMLAbsPosEditor.idl | ||
nsIHTMLEditor.idl | ||
nsIHTMLInlineTableEditor.idl | ||
nsIHTMLObjectResizer.idl | ||
nsITableEditor.idl |