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
12 lines
200 B
HTML
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>
|