summaryrefslogtreecommitdiffstats
path: root/comm/mail/base/test/browser/files/selectionWidget.xhtml
blob: e5f66fc30ce3b29903348d6d49ac55e82046010d (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="utf-8" />
  <title>Test for SelectionWidgetController</title>
  <style>
    test-selection-widget {
      display: flex;
      align-items: start;
      border: 1px solid black;
      width: 600px;
      height: 600px;
      overflow: auto;
    }

    test-selection-widget[layout-direction="vertical"] {
      flex-direction: column;
    }

    /* Fit 20 items in the view. */
    test-selection-widget[layout-direction="vertical"] > * {
      height: 30px;
    }
    test-selection-widget[layout-direction="horizontal"] > * {
      width: 30px;
      writing-mode: vertical-rl;
    }

    test-selection-widget > * {
      padding-inline: 10px;
      box-sizing: border-box;
      border: 1px solid grey;
      white-space: nowrap;
      flex: 0 0 auto;
    }

    .selected {
      background: pink;
    }

    :focus {
      outline: 3px dashed black;
      outline-offset: -3px;
    }

    :focus-visible {
      outline-color: blue;
    }
  </style>
  <!-- Load the SelectionWidgetController class inline if testing in a browser.
  <script src="../../../../modules/SelectionWidgetController.jsm"></script>
  -->
  <script defer="defer" src="selectionWidget.js"></script>
</head>
<body>
</body>
</html>