chromium/third_party/blink/web_tests/external/wpt/css/css-view-transitions/navigation/at-rule-in-layer-cascade.html

<!DOCTYPE html>
<title>View Transitions: @view-transition cascaldes correclty with layers.</title>
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-2/">
<link rel="author" href="mailto:[email protected]">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
@layer inertA, inertB, active;

@layer inertA {
  @view-transition {
    navigation: none;
  }
}
@layer active {
  @view-transition {
    navigation: auto;
  }
}
@layer inertB {
  @view-transition {
    navigation: none;
  }
}
</style>
<script>
const params = new URLSearchParams(location.search);
const is_new_page = params.has('new');

if (!is_new_page) {
  onload = () => requestAnimationFrame(() => requestAnimationFrame(() => {
      location.replace(location.href + '?new');
  }));
} else {
  promise_test(() => {
    return new Promise((resolve) => {
        addEventListener('pagereveal', resolve);
    }).then(event => {
        assert_not_equals(event.viewTransition, null,
            "ViewTransition must be triggered.");
    });
  });
}
</script>