Steps To Reproduce: 1. System Preferences —> General —> Appearance = Dark 2. Sign in with an IMAP account with HTML notes (i.e. Gmail) 3. Launch Notes 4. Create a new HTML note 5. Start a numbered list (i.e. type “1.” followed by text) 6. Outdent the list item Result: The test becomes invisible <rdar://problem/56682679>
Created attachment 390612 [details] Fixes the bug
Comment on attachment 390612 [details] Fixes the bug Hm... looks like PasteRTFD.TransformColorsOfDarkContent is failing on iOS.
Comment on attachment 390612 [details] Fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=390612&action=review > Source/WebCore/editing/ReplaceSelectionCommand.cpp:579 > - return true; > + return hasVisibleNonSemanticColor; Alright, this doesn't work :( Reverting this.
Created attachment 390620 [details] Fixes the bug
Oh, looks like iOS just needs platform specific result for the test due to auto size propert as usual but that should not block the code review.
Comment on attachment 390620 [details] Fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=390620&action=review > Source/WebCore/editing/EditingStyle.cpp:1385 > + m_mutableStyle->setProperty(CSSPropertyColor, computedValue); This should use id, otherwise CSSPropertyBackgroundColor and CSSPropertyCaretColor will overwrite CSSPropertyColor.
Created attachment 390705 [details] Fixed the bug
Committed r256580: <https://trac.webkit.org/changeset/256580>