Decoration mapping vs mark mapping

Click a button to mark and decorate the selected text. Spans that have both a mark and a decoration are highlighted in green while those that have just a mark are in red, and those with just a decoration are in blue.

Non-inclusive marks behave differently than exclusive decorations when deleting the whole mark/decoration.

Source code