Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Side by Side Diff: third_party/polymer/v1_0/components-chromium/iron-autogrow-textarea/iron-autogrow-textarea.html

Issue 1401633002: Update Polymer from 1.1.4 -> 1.1.5 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dzhioev@ review Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!-- 1 <!--
2 @license 2 @license
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt 4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
7 Code distributed by Google as part of the polymer project is also 7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
9 --><html><head><link rel="import" href="../polymer/polymer.html"> 9 --><html><head><link rel="import" href="../polymer/polymer.html">
10 <link rel="import" href="../iron-behaviors/iron-control-state.html"> 10 <link rel="import" href="../iron-behaviors/iron-control-state.html">
11 <link rel="import" href="../iron-flex-layout/classes/iron-flex-layout.html"> 11 <link rel="import" href="../iron-flex-layout/classes/iron-flex-layout.html">
12 <link rel="import" href="../iron-validatable-behavior/iron-validatable-behavior. html"> 12 <link rel="import" href="../iron-validatable-behavior/iron-validatable-behavior. html">
13 <link rel="import" href="../iron-form-element-behavior/iron-form-element-behavio r.html"> 13 <link rel="import" href="../iron-form-element-behavior/iron-form-element-behavio r.html">
14 14
15 <!-- 15 <!--
16 `iron-autogrow-textarea` is an element containing a textarea that grows in heigh t as more 16 `iron-autogrow-textarea` is an element containing a textarea that grows in heigh t as more
17 lines of input are entered. Unless an explicit height or the `maxRows` property is set, it will 17 lines of input are entered. Unless an explicit height or the `maxRows` property is set, it will
18 never scroll. 18 never scroll.
19 19
20 Example: 20 Example:
21 21
22 <iron-autogrow-textarea></iron-autogrow-textarea> 22 <iron-autogrow-textarea></iron-autogrow-textarea>
23 23
24 Because the `textarea`'s `value` property is not observable, you should use 24 Because the `textarea`'s `value` property is not observable, you should use
25 this element's `bind-value` instead for imperative updates. 25 this element's `bind-value` instead for imperative updates.
26 26
27 ### Styling
28 The following custom properties and mixins are available for styling:
29 Custom property | Description | Default
30 ----------------|-------------|----------
31 `--iron-autogrow-textarea` | Mixin applied to the textarea | `{}`
32
27 @group Iron Elements 33 @group Iron Elements
28 @hero hero.svg 34 @hero hero.svg
29 @demo demo/index.html 35 @demo demo/index.html
30 --> 36 -->
31 37
32 </head><body><dom-module id="iron-autogrow-textarea"> 38 </head><body><dom-module id="iron-autogrow-textarea">
33 39
34 <style> 40 <style>
35 :host { 41 :host {
36 display: inline-block; 42 display: inline-block;
(...skipping 16 matching lines...) Expand all
53 border: none; 59 border: none;
54 resize: none; 60 resize: none;
55 background: inherit; 61 background: inherit;
56 color: inherit; 62 color: inherit;
57 /* see comments in template */ 63 /* see comments in template */
58 width: 100%; 64 width: 100%;
59 height: 100%; 65 height: 100%;
60 font-size: inherit; 66 font-size: inherit;
61 font-family: inherit; 67 font-family: inherit;
62 line-height: inherit; 68 line-height: inherit;
69 @apply(--iron-autogrow-textarea);
63 } 70 }
64 71
65 ::content textarea:invalid { 72 ::content textarea:invalid {
66 box-shadow: none; 73 box-shadow: none;
67 } 74 }
68 75
69 </style> 76 </style>
70 <template> 77 <template>
71 <!-- the mirror sizes the input/textarea so it grows with typing --> 78 <!-- the mirror sizes the input/textarea so it grows with typing -->
72 <div id="mirror" class="mirror-text" aria-hidden="true">&nbsp;</div> 79 <div id="mirror" class="mirror-text" aria-hidden="true">&nbsp;</div>
73 80
74 <!-- size the input/textarea with a div, because the textarea has intrinsic size in ff --> 81 <!-- size the input/textarea with a div, because the textarea has intrinsic size in ff -->
75 <div class="textarea-container fit"> 82 <div class="textarea-container fit">
76 <textarea id="textarea" autocomplete$="[[autocomplete]]" autofocus$="[[aut ofocus]]" inputmode$="[[inputmode]]" placeholder$="[[placeholder]]" readonly$="[ [readonly]]" required$="[[required]]" rows$="[[rows]]" maxlength$="[[maxlength]] "></textarea> 83 <textarea id="textarea" autocomplete$="[[autocomplete]]" autofocus$="[[aut ofocus]]" inputmode$="[[inputmode]]" placeholder$="[[placeholder]]" readonly$="[ [readonly]]" required$="[[required]]" disabled$="[[disabled]]" rows$="[[rows]]" maxlength$="[[maxlength]]"></textarea>
77 </div> 84 </div>
78 </template> 85 </template>
79 </dom-module> 86 </dom-module>
80 87
81 <script src="iron-autogrow-textarea-extracted.js"></script></body></html> 88 <script src="iron-autogrow-textarea-extracted.js"></script></body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698