summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-and-list-elements.html
blob: 2b6bd7460041559db597f6036da30fec3df67684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html>
<head>
<style>
/*
 * To fill missing UA styles which appears in the expected.html through the "li ul" selector in html.css.
 * Following <ul> crosses shadow boundary and doesn't match it.
 * https://bugs.webkit.org/show_bug.cgi?id=92192
 */
* /deep/ ul {
   -webkit-margin-before: 0px;
   -webkit-margin-after: 0px;
}
</style>
</head>
<body>
<div>
  <ol>
    <li>A</li>
    <li id="host">B</li>
    <li>C</li>
  </ol>
</div>
<script>
// The tree to be created:
//
// <ol>
//   <li>A</li>
//   <li>B
//      #document-fragment
//        <li>X</li>
//        <ul><shadow></shadow></ul>
//        <li>Y</li>
//   </li>
//   <li>C</li>
// </ol>
var host = document.getElementById("host");
var shadow = host.createShadowRoot();
shadow.innerHTML = "<li>X</li><ul><shadow></shadow></ul><li>Y</li>";
</script>
</body>
</html>