So the green text is now correctly painting on top of the black text, but this reveals another bug: note that the green border paints over both the blue and black borders. This is wrong, it should only paint over the blue (dashed) border, not the black border (as it does in non-print mode). The root of that problem is that we're using BuildDisplayListForStackingContext for painting the previous pages, which puts everything into the Content display list. We really need to use the correct display lists when painting the overflow from previous pages to get the rendering the CSS specs require.
Bug 1640197 Comment 37 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
So the green text is now correctly painting on top of the black text, but this reveals another bug: note that the green border paints over both the blue and black borders. This is wrong, it should only paint over the blue (dashed) border, not the black border (as it does in non-print mode). The root of that problem (I think) is that we're using BuildDisplayListForStackingContext for painting the previous pages, which puts everything into the Content display list. We really need to use the correct display lists when painting the overflow from previous pages to get the rendering the CSS specs require.