Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-nesting/nest-containing-forgiving.html
<!DOCTYPE html> <title>Nest-containing in forgiving parsing</title> <link rel="author" title="Steinar H. Gunderson" href="mailto:sesse@chromium.org"> <link rel="help" href="https://drafts.csswg.org/css-nesting-1/"> <link rel="match" href="nest-containing-forgiving-ref.html"> <style> .test { background-color: red; width: 100px; height: 100px; display: grid; } .does-not-exist { :is(.test-1, !&) { background-color: green; } } .does-not-exist { :is(.test-2, :unknown(div,&)) { background-color: green; } } body * + * { margin-top: 8px; } </style> <body> <p>Tests pass if <strong>block is green</strong></p> <div class="test test-1"></div> <div class="test test-2"></div> </body>
/css/css-nesting/nest-containing-forgiving-ref.html
<!DOCTYPE html> <title>Nest-containing in forgiving parsing</title> <style> .test { background-color: green; width: 100px; height: 100px; display: grid; } body * + * { margin-top: 8px; } </style> <body> <p>Tests pass if <strong>block is green</strong></p> <div class="test"></div> <div class="test"></div> </body>