Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit 2f4c286

Browse files
author
Yvonne Yip
committed
hide the mirror text
1 parent 893d76d commit 2f4c286

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

paper-autogrow-textarea.html

+6-2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
width: 400px;
4545
}
4646

47+
.mirror-text {
48+
visibility: hidden;
49+
}
50+
4751
::content textarea {
4852
padding: 0;
4953
margin: 0;
@@ -61,7 +65,7 @@
6165
</style>
6266

6367
<!-- the mirror sizes the input/textarea so it grows with typing -->
64-
<div id="mirror" class="mirror-text" invisible aria-hidden="true">&nbsp;</div>
68+
<div id="mirror" class="mirror-text" aria-hidden="true">&nbsp;</div>
6569

6670
<!-- size the input/textarea with a div, because the textarea has intrinsic size in ff -->
6771
<div class="textarea-container" fit>
@@ -154,4 +158,4 @@
154158
});
155159

156160
</script>
157-
</polymer-element>
161+
</polymer-element>

test/autogrow.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,13 @@
120120
});
121121
});
122122

123+
test('mirror text is visibility:hidden', function() {
124+
assert.equal(getComputedStyle(a1.$.mirror).visibility, 'hidden');
125+
});
126+
123127
});
124128

125129
</script>
126130

127131
</body>
128-
</html>
132+
</html>

0 commit comments

Comments
 (0)