<!doctype html>
<html>
<body>
    <p>Test that style-sharing does not ignore cases matching :nth-last-child(An+B of selector list).</p>
    <p>Target</p>
    <p>Target</p>
    <p style="background-color: lime">Target</p>
    <p>Target</p>
    <p>Target</p>
    <p style="background-color: lime">Target</p>
    <p>Target</p>
    <p>Target</p>
    <p style="background-color: lime">Target</p>
</body>
</html>
