testing/web-platform/tests/css/css-values/attr-in-slotted.html
author Duncan McIntosh <dmcintosh@mozilla.com>
Wed, 09 Jul 2025 19:42:02 +0000 (4 hours ago)
changeset 795924 9ccc6a2267cbf69c621fec973bd28573c2a45a1f
parent 762650 0a77097b4f3b702a874eba6ed7f746f8faedf2c5
permissions -rw-r--r--
Bug 1966586 - Reuse other browser windows when opening _blank links in Taskbar Tabs windows. r=nrishel This doesn't affect other tab additions, nor does it stop the tab bar from appearing altogether. The idea is that _if_ another tab is somehow made, the user should see it; but we should not create new tabs if we can avoid it. This also adds tests for opening URIs in popups and taskbar tabs to make it less likely that this breaks in future. Differential Revision: https://phabricator.services.mozilla.com/D253726
<!DOCTYPE html>
<title>CSS Values Test: attr() in pseudo element ::slotted</title>
<link rel="help" href="https://drafts.csswg.org/css-values/#attr-notation">
<link rel="match" href="attr-in-slotted-ref.html">
<div class=host>
    <template shadowrootmode=open>
        <style>
            ::slotted(div) {
                color: red;
                color: attr(data-color type(<color>), yellow);
            }
        </style>
        <slot data-color=blue></slot>
    </template>
    <div data-color=green>PASS if green</div>
</div>