Files
sousa-gecko/testing/web-platform/tests/css/css-shadow/same-rules-bug-2044746-crash.html
T
Emilio Cobos Álvarez 140f92d33f Bug 2044746 - Don't bother revalidating between shadow / non-shadow contents. r=firefox-style-system-reviewers,dshin
In the crashtest, what's going on is that we try to share between two
cousins that happen to be in the same tree position, one on a shadow
tree and one outside.

The assert fires because well, shadow data is the same (None) for both,
but one matches light dom rules and another doesn't, so the revalidation
fires and finds the :first-child selector for one and not the other.

This doesn't cause a correctness issue on that crashtest because the
length comparison fails, but it does cause correctness issues that are
not caught by the assert (see the reftest).

Differential Revision: https://phabricator.services.mozilla.com/D305878
2026-06-10 22:19:31 +00:00

12 lines
200 B
HTML

<!DOCTYPE html>
<style>div:first-child { color: red; background: blue; }</style>
<span></span>
<div>
<div>a</div>
</div>
<div>
<template shadowrootmode=open>
<div>b</div>
</template>
</div>