Revision control
Copy as Markdown
Other Tools
<?xml version="1.0"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
<!DOCTYPE html>
<head>
<meta charset="utf-8" />
<title>Test for the tree-view custom element</title>
<style>
#testTree {
/* We want a total visible row area of 630px, but we need to account for the
* height of the header as well. */
height: calc(var(--tree-header-table-height) + 630px);
scroll-behavior: unset;
}
tr[is="test-row"] td > div {
display: flex;
align-items: center;
box-sizing: border-box;
}
tr[is="test-row"] td div.d1 {
flex: 1;
}
tr[is="test-row"] td div.d1 > div.d2 {
line-height: 1.2;
}
tr[is="test-row"] td div.d1 > div.d3 {
line-height: 1.2;
font-size: 13px;
}
tr[is="test-row"].selected {
background-color: rebeccapurple;
color: white;
}
</style>
<script type="module" src="tree-element-test-header.mjs"></script>
</head>
<body>
<input id="before" placeholder="something to focus on" />
<tree-view id="testTree" data-select-delay="250"/>
<input id="after" placeholder="something to focus on" />
</body>
</html>