span:before { background-color: red; content: 'FAILED'; } span::before { background-color: lime; content: 'PASSED'; }