51 lines
1.1 KiB
HTML
51 lines
1.1 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
div {
|
|
background-color: white;
|
|
}
|
|
div:nth-child(odd) {
|
|
background-color: lime;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<section>
|
|
<p><!-- To avoid styling the description. --></p>
|
|
<p>This tests basic style sharing with :nth-child(odd). If the test pass, lines with the text "green" should have a green background.</p>
|
|
<div>Green</div>
|
|
<div>White</div>
|
|
<div>Green</div>
|
|
<div>White</div>
|
|
<div>Green</div>
|
|
<div>
|
|
<div>Green</div>
|
|
<div>White</div>
|
|
<div>Green</div>
|
|
</div>
|
|
<div>
|
|
<div>Green</div>
|
|
<div>White</div>
|
|
<div>Green</div>
|
|
<div>White</div>
|
|
<div>Green</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section>
|
|
<div>Green</div>
|
|
<div>White</div>
|
|
<div>Green</div>
|
|
<div>
|
|
<div>Green</div>
|
|
<div>White</div>
|
|
<div>Green</div>
|
|
<div>White</div>
|
|
<div>Green</div>
|
|
<div>White</div>
|
|
</div>
|
|
</section>
|
|
</body>
|
|
</html>
|