| Index: LayoutTests/fast/dom/shadow/shadowdom-for-input-type-change.html
|
| diff --git a/LayoutTests/fast/dom/shadow/shadowdom-for-input-type-change.html b/LayoutTests/fast/dom/shadow/shadowdom-for-input-type-change.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..65ef6fb59b9ab5ea232b53f36b75a9b6ee15971c
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dom/shadow/shadowdom-for-input-type-change.html
|
| @@ -0,0 +1,21 @@
|
| +<!DOCTYPE html>
|
| +<body>
|
| +<script src="../../js/resources/js-test-pre.js"></script>
|
| +<input type="email">
|
| +<script>
|
| +description('Test if changing input type keeps author ShadowRoot content.');
|
| +
|
| +var input1 = document.querySelector('input');
|
| +var initialWidth = input1.offsetWidth;
|
| +shouldNotBe('initialWidth', '0');
|
| +
|
| +var root = input1.createShadowRoot();
|
| +root.innerHTML = '<span>a</span>';
|
| +var widthWithShadow = input1.offsetWidth;
|
| +shouldNotBe('widthWithShadow', 'initialWidth');
|
| +
|
| +shouldBe('input1.type = "hidden"; input1.offsetWidth', '0');
|
| +shouldBe('input1.type = "datetime-local"; input1.offsetWidth', 'widthWithShadow');
|
| +</script>
|
| +<script src="../../js/resources/js-test-post.js"></script>
|
| +</body>
|
|
|