<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[282747] trunk/LayoutTests/imported/w3c</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/282747">282747</a></dd>
<dt>Author</dt> <dd>ntim@apple.com</dd>
<dt>Date</dt> <dd>2021-09-20 07:35:20 -0700 (Mon, 20 Sep 2021)</dd>
</dl>

<h3>Log Message</h3>
<pre>Import inert/inert-on-non-html.tentative.html from WPT
https://bugs.webkit.org/show_bug.cgi?id=230474

Reviewed by Youenn Fablet.

* web-platform-tests/inert/inert-on-non-html.tentative.html: Added.
* web-platform-tests/inert/inert-on-non-html.tentative-expected.txt: Added.
* web-platform-tests/inert/w3c-import.log:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsimportedw3cChangeLog">trunk/LayoutTests/imported/w3c/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsinertw3cimportlog">trunk/LayoutTests/imported/w3c/web-platform-tests/inert/w3c-import.log</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsinertinertonnonhtmltentativeexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/inert/inert-on-non-html.tentative-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsinertinertonnonhtmltentativehtml">trunk/LayoutTests/imported/w3c/web-platform-tests/inert/inert-on-non-html.tentative.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsimportedw3cChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/ChangeLog (282746 => 282747)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/ChangeLog 2021-09-20 14:22:03 UTC (rev 282746)
+++ trunk/LayoutTests/imported/w3c/ChangeLog    2021-09-20 14:35:20 UTC (rev 282747)
</span><span class="lines">@@ -1,3 +1,14 @@
</span><ins>+2021-09-20  Tim Nguyen  <ntim@apple.com>
+
+        Import inert/inert-on-non-html.tentative.html from WPT
+        https://bugs.webkit.org/show_bug.cgi?id=230474
+
+        Reviewed by Youenn Fablet.
+
+        * web-platform-tests/inert/inert-on-non-html.tentative.html: Added.
+        * web-platform-tests/inert/inert-on-non-html.tentative-expected.txt: Added.
+        * web-platform-tests/inert/w3c-import.log:
+
</ins><span class="cx"> 2021-09-20  Marcos Caceres  <marcos@marcosc.com>
</span><span class="cx"> 
</span><span class="cx">         Web Share tests are out of date
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsinertinertonnonhtmltentativeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/inert/inert-on-non-html.tentative-expected.txt (0 => 282747)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/inert/inert-on-non-html.tentative-expected.txt                         (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/inert/inert-on-non-html.tentative-expected.txt    2021-09-20 14:35:20 UTC (rev 282747)
</span><span class="lines">@@ -0,0 +1,54 @@
</span><ins>+
+PASS <span>non-inert</span>
+PASS <span inert="">inert</span>
+PASS <foo>non-inert</foo>
+PASS <foo inert="">inert</foo>
+PASS <foo-bar>non-inert</foo-bar>
+PASS <foo-bar inert="">inert</foo-bar>
+PASS <math><mi>non-inert</mi></math>
+PASS <math inert=""><mi>non-inert</mi></math>
+PASS <math><mi inert="">non-inert</mi></math>
+PASS <svg><text>non-inert</text></svg>
+PASS <svg inert=""><text>non-inert</text></svg>
+PASS <svg><text inert="">non-inert</text></svg>
+PASS <span inert=""><span>inert</span></span>
+PASS <span inert=""><foo>inert</foo></span>
+PASS <span inert=""><foo-bar>inert</foo-bar></span>
+PASS <span inert=""><math><mi>inert</mi></math></span>
+PASS <span inert=""><svg><text>inert</text></svg></span>
+PASS <math inert=""><mi><span>non-inert</span></mi></math>
+PASS <math><mi inert=""><span>non-inert</span></mi></math>
+PASS <svg inert=""><foreignObject><span>non-inert</span></foreignObject></svg>
+PASS <svg><foreignObject inert=""><span>non-inert</span></foreignObject></svg>
+PASS <math><mi><span inert="">inert</span></mi></math>
+PASS <math><mi><foo inert="">inert</foo></mi></math>
+PASS <math><mi><foo-bar inert="">inert</foo-bar></mi></math>
+PASS <svg><foreignObject><span inert="">inert</span></foreignObject></svg>
+PASS <svg><foreignObject><foo inert="">inert</foo></foreignObject></svg>
+PASS <svg><foreignObject><foo-bar inert="">inert</foo-bar></foreignObject></svg>
+non-inert
+inert
+non-inert
+inert
+non-inert
+inert
+non-inert
+non-inert
+non-inert
+non-inert
+non-inert
+non-inert
+inert
+inert
+inert
+inert
+inert
+non-inert
+non-inert
+non-inert
+non-inert
+inert
+inert
+inert
+inert
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsinertinertonnonhtmltentativehtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/inert/inert-on-non-html.tentative.html (0 => 282747)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/inert/inert-on-non-html.tentative.html                         (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/inert/inert-on-non-html.tentative.html    2021-09-20 14:35:20 UTC (rev 282747)
</span><span class="lines">@@ -0,0 +1,144 @@
</span><ins>+<!DOCTYPE html>
+<meta charset="utf-8" />
+<title>'inert' is an HTML attribute and has no effect when used on other elements</title>
+<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
+<style>
+#tests {
+  line-height: 1.5em;
+}
+#tests svg {
+  height: 1.5em;
+  vertical-align: middle;
+}
+#tests svg > text {
+  transform: translateY(50%);
+  dominant-baseline: central;
+}
+#tests foreignObject {
+  height: 100%;
+  width: 100%;
+}
+</style>
+<div id="log"></div>
+<ul id="tests">
+  <!-- The 'inert' attribute only works on HTML elements -->
+  <li>
+    <span>non-inert</span>
+  </li>
+  <li>
+    <span inert>inert</span>
+  </li>
+  <li>
+    <foo>non-inert</foo>
+  </li>
+  <li>
+    <foo inert>inert</foo>
+  </li>
+  <li>
+    <foo-bar>non-inert</foo-bar>
+  </li>
+  <li>
+    <foo-bar inert>inert</foo-bar>
+  </li>
+  <li>
+    <math><mi>non-inert</mi></math>
+  </li>
+  <li>
+    <math inert><mi>non-inert</mi></math>
+  </li>
+  <li>
+    <math><mi inert>non-inert</mi></math>
+  </li>
+  <li>
+    <svg><text>non-inert</text></svg>
+  </li>
+  <li>
+    <svg inert><text>non-inert</text></svg>
+  </li>
+  <li>
+    <svg><text inert>non-inert</text></svg>
+  </li>
+
+  <!-- But non-HTML are inert if an HTML ancestor has the attribute -->
+  <li>
+    <span inert><span>inert</span></span>
+  </li>
+  <li>
+    <span inert><foo>inert</foo></span>
+  </li>
+  <li>
+    <span inert><foo-bar>inert</foo-bar></span>
+  </li>
+  <li>
+    <span inert><math><mi>inert</mi></math></span>
+  </li>
+  <li>
+    <span inert><svg><text>inert</text></svg></span>
+  </li>
+
+  <!-- HTML elements are not inert if an non-HTML ancestor has the attribute -->
+  <li>
+    <span data-move>non-inert</span>
+    <math inert><mi data-destination></mi></math>
+  </li>
+  <li>
+    <span data-move>non-inert</span>
+    <math><mi inert data-destination></mi></math>
+  </li>
+  <li>
+    <svg inert><foreignObject><span>non-inert</span></foreignobject></svg>
+  </li>
+  <li>
+    <svg><foreignObject inert><span>non-inert</span></foreignobject></svg>
+  </li>
+
+  <!-- HTML elements with non-HTML ancestors are inert if they have the attribute themselves -->
+  <li>
+    <span inert data-move>inert</span>
+    <math><mi data-destination></mi></math>
+  </li>
+  <li>
+    <foo inert data-move>inert</foo>
+    <math><mi data-destination></mi></math>
+  </li>
+  <li>
+    <foo-bar inert data-move>inert</foo-bar>
+    <math><mi data-destination></mi></math>
+  </li>
+  <li>
+    <svg><foreignObject><span inert>inert</span></foreignobject></svg>
+  </li>
+  <li>
+    <svg><foreignObject><foo inert>inert</foo></foreignobject></svg>
+  </li>
+  <li>
+    <svg><foreignObject><foo-bar inert>inert</foo-bar></foreignobject></svg>
+  </li>
+</ul>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+for (let li of document.querySelectorAll("#tests > li")) {
+  // The HTML parser would mess certain trees, fixup here.
+  const move = li.querySelector("[data-move]");
+  if (move) {
+    const destination = li.querySelector("[data-destination]");
+    destination.append(move);
+    move.removeAttribute("data-move");
+    destination.removeAttribute("data-destination");
+  }
+  test(() => {
+    assert_equals(li.childElementCount, 1);
+    const element = li.firstElementChild;
+    const selection = getSelection();
+    selection.selectAllChildren(element);
+    const selectionText = selection.toString().trim();
+    const textContent = element.textContent.trim();
+    if (textContent === "inert") {
+      assert_equals(selectionText, "");
+    } else {
+      assert_equals(selectionText, "non-inert");
+    }
+  }, li.innerHTML.trim());
+}
+</script>
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsinertw3cimportlog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/inert/w3c-import.log (282746 => 282747)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/inert/w3c-import.log   2021-09-20 14:22:03 UTC (rev 282746)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/inert/w3c-import.log      2021-09-20 14:35:20 UTC (rev 282747)
</span><span class="lines">@@ -21,6 +21,7 @@
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/inert/inert-node-is-uneditable.tentative.html
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/inert/inert-node-is-unfocusable.tentative.html
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/inert/inert-node-is-unselectable.tentative.html
</span><ins>+/LayoutTests/imported/w3c/web-platform-tests/inert/inert-on-non-html.tentative.html
</ins><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/inert/inert-on-slots.tentative.html
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/inert/inert-retargeting-iframe.tentative.html
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/inert/inert-retargeting.tentative.html
</span></span></pre>
</div>
</div>

</body>
</html>