Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<head>
<style>
span { color: red }
:checked + span { color: green }
input { display: none }
</style>
</head>
<body>
<input type="checkbox" checked="checked" id="foo"><span>There should be no red</span>
</body>
</html>