summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/overflow/resize-inherit.html
blob: c2e1a343691302ca1190dd869c55e58a2b86ad15 (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
<!DOCTYPE html>
<script src="../../resources/js-test.js"></script>
<style>
.overflow {
    overflow: scroll;
    width: 200px;
    height: 200px;
}
.resize {
    resize: both;
}
.resize-inherit {
    resize: inherit;
}
</style>
<div class="overflow resize">
    <div class="overflow no-resize"></div>
    <div class="overflow resize-inherit"></div>
</div>
<script>
description("CSS resize property is inherited:no");

shouldBe("getComputedStyle(document.querySelector('.overflow.resize')).resize", "'both'");
shouldBe("getComputedStyle(document.querySelector('.overflow.no-resize')).resize", "'none'");
shouldBe("getComputedStyle(document.querySelector('.overflow.resize-inherit')).resize", "'both'");
</script>