<!-- webkit-test-runner [ LayoutFormattingContextEnabled=true InlineFormattingContextIntegrationEnabled=false ] --> | |
<style> | |
div { | |
width: 50px; | |
} | |
div:nth-child(odd) { | |
background-color: green; | |
} | |
div:nth-child(even) { | |
background-color: blue; | |
} | |
</style> | |
<body style="background-color: white"> | |
<div style="height: 50px"></div> | |
<div style="height: 100px"></div> | |
<div style="height: 150px"></div> | |
<div style="height: 200px"></div> | |
</body> |