check 0: PASS (second empty text in display:contents becomes text: before)
check 1: PASS (second empty text in display:contents becomes text: after)
check 2: PASS (empty text in display:contents becomes text: before)
check 3: PASS (empty text in display:contents becomes text: after)
check 4: PASS (text in display:contents becomes whitespace: before)
check 5: PASS (text in display:contents becomes whitespace: after)
check 6: PASS (text in display:contents becomes empty: before)
check 7: PASS (text in display:contents becomes empty: after)
check 8: PASS (text in display:contents next to a block becomes whitespace: before)
check 9: PASS (text in display:contents next to a block becomes whitespace: after)
check 10: PASS (whitespace in display:contents next to a block becomes text: before)
check 11: PASS (whitespace in display:contents next to a block becomes text: after)
check 12: PASS (text in display:contents stays text: before)
check 13: PASS (text in display:contents stays text: after)
