Tests: Import comprehensive WPT test for declarative shadow attachment

This commit is contained in:
Andreas Kling 2025-04-25 09:34:59 +02:00 committed by Andreas Kling
parent 10cff06a95
commit 43eea9212d
2 changed files with 756 additions and 0 deletions

View File

@ -0,0 +1,654 @@
Harness status: OK
Found 648 tests
324 Pass
324 Fail
Pass Declarative Shadow DOM as a child of <article>, with mode=open, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <aside>, with mode=open, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <blockquote>, with mode=open, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <div>, with mode=open, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <footer>, with mode=open, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h1>, with mode=open, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h2>, with mode=open, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h3>, with mode=open, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h4>, with mode=open, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h5>, with mode=open, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h6>, with mode=open, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <header>, with mode=open, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <main>, with mode=open, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <nav>, with mode=open, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <p>, with mode=open, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <section>, with mode=open, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <span>, with mode=open, delegatesFocus=false. Should be safelisted.
Fail Declarative Shadow DOM as a child of <a>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <abbr>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <address>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <area>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <audio>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <b>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <base>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <bdi>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <bdo>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <br>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <button>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <canvas>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <caption>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <cite>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <code>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <col>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <colgroup>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <data>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <datalist>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <dd>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <del>, with mode=open, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <details>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <dfn>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <dialog>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <dl>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <dt>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <em>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <embed>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <fieldset>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <figcaption>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <figure>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <form>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <head>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <hr>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <html>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <i>, with mode=open, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <iframe>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <img>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <input>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <ins>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <kbd>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <label>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <legend>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <li>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <link>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <map>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <mark>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <menu>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <meta>, with mode=open, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <meter>, with mode=open, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <noscript>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <object>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <ol>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <optgroup>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <option>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <output>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <param>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <pre>, with mode=open, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <progress>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <q>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <rp>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <rt>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <ruby>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <s>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <samp>, with mode=open, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <script>, with mode=open, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <select>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <slot>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <small>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <source>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <strong>, with mode=open, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <style>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <sub>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <sup>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <summary>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <table>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <tbody>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <td>, with mode=open, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <textarea>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <tfoot>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <th>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <thead>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <time>, with mode=open, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <title>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <tr>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <track>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <u>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <ul>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <var>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <video>, with mode=open, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <wbr>, with mode=open, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <article>, with mode=closed, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <aside>, with mode=closed, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <blockquote>, with mode=closed, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <div>, with mode=closed, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <footer>, with mode=closed, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h1>, with mode=closed, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h2>, with mode=closed, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h3>, with mode=closed, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h4>, with mode=closed, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h5>, with mode=closed, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h6>, with mode=closed, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <header>, with mode=closed, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <main>, with mode=closed, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <nav>, with mode=closed, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <p>, with mode=closed, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <section>, with mode=closed, delegatesFocus=false. Should be safelisted.
Pass Declarative Shadow DOM as a child of <span>, with mode=closed, delegatesFocus=false. Should be safelisted.
Fail Declarative Shadow DOM as a child of <a>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <abbr>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <address>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <area>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <audio>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <b>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <base>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <bdi>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <bdo>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <br>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <button>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <canvas>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <caption>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <cite>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <code>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <col>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <colgroup>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <data>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <datalist>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <dd>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <del>, with mode=closed, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <details>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <dfn>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <dialog>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <dl>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <dt>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <em>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <embed>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <fieldset>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <figcaption>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <figure>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <form>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <head>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <hr>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <html>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <i>, with mode=closed, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <iframe>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <img>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <input>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <ins>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <kbd>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <label>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <legend>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <li>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <link>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <map>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <mark>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <menu>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <meta>, with mode=closed, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <meter>, with mode=closed, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <noscript>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <object>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <ol>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <optgroup>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <option>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <output>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <param>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <pre>, with mode=closed, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <progress>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <q>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <rp>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <rt>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <ruby>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <s>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <samp>, with mode=closed, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <script>, with mode=closed, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <select>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <slot>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <small>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <source>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <strong>, with mode=closed, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <style>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <sub>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <sup>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <summary>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <table>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <tbody>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <td>, with mode=closed, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <textarea>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <tfoot>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <th>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <thead>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <time>, with mode=closed, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <title>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <tr>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <track>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <u>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <ul>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <var>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <video>, with mode=closed, delegatesFocus=false. Should be disallowed.
Fail Declarative Shadow DOM as a child of <wbr>, with mode=closed, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <article>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <aside>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <blockquote>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <div>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <footer>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <h1>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <h2>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <h3>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <h4>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <h5>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <h6>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <header>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <main>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <nav>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <p>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <section>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <span>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <a>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <abbr>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <address>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <area>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <audio>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <b>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <base>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <bdi>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <bdo>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <br>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <button>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <canvas>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <caption>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <cite>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <code>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <col>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <colgroup>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <data>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <datalist>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <dd>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <del>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <details>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <dfn>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <dialog>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <dl>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <dt>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <em>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <embed>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <fieldset>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <figcaption>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <figure>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <form>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <head>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <hr>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <html>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <i>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <iframe>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <img>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <input>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <ins>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <kbd>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <label>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <legend>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <li>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <link>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <map>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <mark>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <menu>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <meta>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <meter>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <noscript>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <object>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <ol>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <optgroup>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <option>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <output>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <param>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <pre>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <progress>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <q>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <rp>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <rt>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <ruby>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <s>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <samp>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <script>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <select>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <slot>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <small>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <source>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <strong>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <style>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <sub>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <sup>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <summary>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <table>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <tbody>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <td>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <textarea>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <tfoot>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <th>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <thead>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <time>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <title>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <tr>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <track>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <u>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <ul>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <var>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <video>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <wbr>, with mode=invalid, delegatesFocus=false. Should be disallowed.
Pass Declarative Shadow DOM as a child of <article>, with mode=open, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <aside>, with mode=open, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <blockquote>, with mode=open, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <div>, with mode=open, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <footer>, with mode=open, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h1>, with mode=open, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h2>, with mode=open, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h3>, with mode=open, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h4>, with mode=open, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h5>, with mode=open, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h6>, with mode=open, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <header>, with mode=open, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <main>, with mode=open, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <nav>, with mode=open, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <p>, with mode=open, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <section>, with mode=open, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <span>, with mode=open, delegatesFocus=true. Should be safelisted.
Fail Declarative Shadow DOM as a child of <a>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <abbr>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <address>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <area>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <audio>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <b>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <base>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <bdi>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <bdo>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <br>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <button>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <canvas>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <caption>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <cite>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <code>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <col>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <colgroup>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <data>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <datalist>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <dd>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <del>, with mode=open, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <details>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <dfn>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <dialog>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <dl>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <dt>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <em>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <embed>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <fieldset>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <figcaption>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <figure>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <form>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <head>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <hr>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <html>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <i>, with mode=open, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <iframe>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <img>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <input>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <ins>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <kbd>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <label>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <legend>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <li>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <link>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <map>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <mark>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <menu>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <meta>, with mode=open, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <meter>, with mode=open, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <noscript>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <object>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <ol>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <optgroup>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <option>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <output>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <param>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <pre>, with mode=open, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <progress>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <q>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <rp>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <rt>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <ruby>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <s>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <samp>, with mode=open, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <script>, with mode=open, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <select>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <slot>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <small>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <source>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <strong>, with mode=open, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <style>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <sub>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <sup>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <summary>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <table>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <tbody>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <td>, with mode=open, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <textarea>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <tfoot>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <th>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <thead>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <time>, with mode=open, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <title>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <tr>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <track>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <u>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <ul>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <var>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <video>, with mode=open, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <wbr>, with mode=open, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <article>, with mode=closed, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <aside>, with mode=closed, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <blockquote>, with mode=closed, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <div>, with mode=closed, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <footer>, with mode=closed, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h1>, with mode=closed, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h2>, with mode=closed, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h3>, with mode=closed, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h4>, with mode=closed, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h5>, with mode=closed, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <h6>, with mode=closed, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <header>, with mode=closed, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <main>, with mode=closed, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <nav>, with mode=closed, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <p>, with mode=closed, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <section>, with mode=closed, delegatesFocus=true. Should be safelisted.
Pass Declarative Shadow DOM as a child of <span>, with mode=closed, delegatesFocus=true. Should be safelisted.
Fail Declarative Shadow DOM as a child of <a>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <abbr>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <address>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <area>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <audio>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <b>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <base>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <bdi>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <bdo>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <br>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <button>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <canvas>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <caption>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <cite>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <code>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <col>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <colgroup>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <data>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <datalist>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <dd>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <del>, with mode=closed, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <details>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <dfn>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <dialog>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <dl>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <dt>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <em>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <embed>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <fieldset>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <figcaption>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <figure>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <form>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <head>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <hr>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <html>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <i>, with mode=closed, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <iframe>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <img>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <input>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <ins>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <kbd>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <label>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <legend>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <li>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <link>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <map>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <mark>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <menu>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <meta>, with mode=closed, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <meter>, with mode=closed, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <noscript>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <object>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <ol>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <optgroup>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <option>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <output>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <param>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <pre>, with mode=closed, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <progress>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <q>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <rp>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <rt>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <ruby>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <s>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <samp>, with mode=closed, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <script>, with mode=closed, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <select>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <slot>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <small>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <source>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <strong>, with mode=closed, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <style>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <sub>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <sup>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <summary>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <table>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <tbody>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <td>, with mode=closed, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <textarea>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <tfoot>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <th>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <thead>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <time>, with mode=closed, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <title>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <tr>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <track>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <u>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <ul>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <var>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <video>, with mode=closed, delegatesFocus=true. Should be disallowed.
Fail Declarative Shadow DOM as a child of <wbr>, with mode=closed, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <article>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <aside>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <blockquote>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <div>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <footer>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <h1>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <h2>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <h3>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <h4>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <h5>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <h6>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <header>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <main>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <nav>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <p>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <section>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <span>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <a>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <abbr>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <address>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <area>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <audio>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <b>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <base>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <bdi>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <bdo>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <br>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <button>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <canvas>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <caption>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <cite>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <code>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <col>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <colgroup>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <data>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <datalist>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <dd>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <del>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <details>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <dfn>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <dialog>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <dl>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <dt>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <em>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <embed>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <fieldset>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <figcaption>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <figure>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <form>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <head>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <hr>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <html>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <i>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <iframe>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <img>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <input>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <ins>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <kbd>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <label>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <legend>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <li>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <link>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <map>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <mark>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <menu>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <meta>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <meter>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <noscript>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <object>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <ol>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <optgroup>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <option>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <output>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <param>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <pre>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <progress>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <q>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <rp>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <rt>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <ruby>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <s>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <samp>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <script>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <select>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <slot>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <small>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <source>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <strong>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <style>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <sub>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <sup>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <summary>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <table>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <tbody>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <td>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <textarea>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <tfoot>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <th>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <thead>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <time>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <title>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <tr>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <track>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <u>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <ul>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <var>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <video>, with mode=invalid, delegatesFocus=true. Should be disallowed.
Pass Declarative Shadow DOM as a child of <wbr>, with mode=invalid, delegatesFocus=true. Should be disallowed.

View File

@ -0,0 +1,102 @@
<!DOCTYPE html>
<title>Declarative Shadow DOM Element Attachment</title>
<link rel='author' href='mailto:masonf@chromium.org'>
<link rel='help' href='https://github.com/whatwg/dom/issues/831'>
<script src='../../resources/testharness.js'></script>
<script src='../../resources/testharnessreport.js'></script>
<script src='../../html/resources/common.js'></script>
<script src="support/helpers.js"></script>
<script>
const shadowContent = '<span>Shadow tree</span><slot></slot>';
function getDeclarativeContent(mode, delegatesFocus) {
const delegatesFocusText = delegatesFocus ? ' shadowrootdelegatesfocus' : '';
return `<template shadowrootmode=${mode}${delegatesFocusText}>${shadowContent}</template>`;
}
const lightDomTextContent = 'Light DOM';
function addDeclarativeShadowRoot(elementType, mode, delegatesFocus) {
const declarativeString = `<${elementType} id=theelement>${getDeclarativeContent(mode, delegatesFocus)}
<span class='lightdom'>${lightDomTextContent}</span></${elementType}>`;
const wrapper = document.createElement('div');
wrapper.setHTMLUnsafe(declarativeString); // Should never throw
const element = wrapper.querySelector('#theelement');
return {wrapper, element};
}
function testElementType(allowed, nochildren, elementType, mode, delegatesFocus) {
test((t) => {
const nodes = addDeclarativeShadowRoot(elementType, mode, delegatesFocus);
if (allowed) {
const element = nodes.element;
assert_true(!!element, 'Unable to locate the element');
// Just one light DOM child, and no leftover template.
assert_true(!nodes.wrapper.querySelector('template'));
assert_equals(element.children.length, 1);
assert_equals(element.children[0].textContent, lightDomTextContent);
let originalShadowRoot = null;
if (mode === 'open') {
assert_true(!!element.shadowRoot, 'Shadow root should be present');
assert_equals(element.shadowRoot.innerHTML, shadowContent, 'Correct shadow content');
assert_equals(element.shadowRoot.delegatesFocus,delegatesFocus,'Correct delegatesFocus')
originalShadowRoot = element.shadowRoot;
}
const oppositeMode = (mode === 'open') ? 'closed' : 'open';
assert_throws_dom('NotSupportedError', () => {
element.attachShadow({mode: oppositeMode});
}, 'Calling attachShadow with a declarative shadow fails if the mode doesn\'t match');
// Now, call attachShadow() and make sure we get back the same (original) shadowRoot, but empty.
const newShadow = element.attachShadow({mode: mode, delegatesFocus: delegatesFocus});
if (mode === 'open') {
assert_equals(element.shadowRoot, originalShadowRoot, 'The same shadow root should be returned');
assert_equals(element.shadowRoot.innerHTML, '', 'Empty shadow content');
assert_equals(element.shadowRoot.mode, mode, 'Original shadow mode');
}
assert_throws_dom('NotSupportedError', () => {
element.attachShadow({mode: mode});
}, 'Calling attachShadow a second time on an element with a declarative shadow fails (same mode)');
assert_throws_dom('NotSupportedError', () => {
element.attachShadow({mode: oppositeMode});
}, 'Calling attachShadow a second time on an element with a declarative shadow fails (opposite mode)');
} else {
if (!nochildren) {
// Invalid elements should retain a <template> element child with a shadowrootmode attribute.
const template = nodes.wrapper.querySelector('template[shadowrootmode]');
assert_true(!!template);
assert_equals(template.getAttribute('shadowrootmode'), mode, `Template with shadowrootmode=${mode} should be left over`);
const span = nodes.wrapper.querySelector('span.lightdom');
assert_true(!!span);
assert_equals(span.textContent, lightDomTextContent);
if (nodes.element) {
// For some tags (e.g. <html>) there won't be an element inside wrapper.
assert_true(!nodes.element.shadowRoot, 'Shadow root should not be present');
}
}
}
}, `Declarative Shadow DOM as a child of <${elementType}>, with mode=${mode}, delegatesFocus=${delegatesFocus}. Should be ${allowed ? 'safelisted' : 'disallowed'}.`);
}
function runAllTests() {
const noCheck = ['body', 'template'];
const safelisted = HTML5_SHADOW_ALLOWED_ELEMENTS.filter(el => !noCheck.includes(el));
const disallowed = HTML5_SHADOW_DISALLOWED_ELEMENTS.filter(el => !noCheck.includes(el));
const noChildElements = ['iframe','noscript','script','select','style','textarea','title'];
for (let delegatesFocus of [false, true]) {
for (let mode of ['open', 'closed', 'invalid']) {
for (let elementName of safelisted) {
testElementType(mode !== 'invalid', false, elementName, mode, delegatesFocus);
}
for (let elementName of disallowed) {
testElementType(false, noChildElements.includes(elementName), elementName, mode, delegatesFocus);
}
}
}
}
runAllTests();
</script>