The bigger picture is I’m using decorations to mark the start and end of marks (that can be nested, which is the major issue re: styling) as it gives me the second pass I need to work out the positions of the DOM nodes that represent a contiguous mark, and then style them accordingly.