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

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

Issue 2158913007: Roll Polymer from 1.5.0 -> 1.6.0 to pick up native CSS custom props (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/polymer/v1_0/components-chromium/iron-autogrow-textarea/iron-autogrow-textarea.html
diff --git a/third_party/polymer/v1_0/components-chromium/iron-autogrow-textarea/iron-autogrow-textarea.html b/third_party/polymer/v1_0/components-chromium/iron-autogrow-textarea/iron-autogrow-textarea.html
index ede930168a6e955db5daf060847dfb5e9cdd5aae..aac2019efaaa73d693fd50d73c1f2166816abc94 100644
--- a/third_party/polymer/v1_0/components-chromium/iron-autogrow-textarea/iron-autogrow-textarea.html
+++ b/third_party/polymer/v1_0/components-chromium/iron-autogrow-textarea/iron-autogrow-textarea.html
@@ -36,66 +36,66 @@ Custom property | Description | Default
-->
</head><body><dom-module id="iron-autogrow-textarea">
-
- <style>
- :host {
- display: inline-block;
- position: relative;
- width: 400px;
- border: 1px solid;
- padding: 2px;
- -moz-appearance: textarea;
- -webkit-appearance: textarea;
- overflow: hidden;
- }
-
- .mirror-text {
- visibility: hidden;
- word-wrap: break-word;
- }
-
- .fit {
- @apply(--layout-fit);
- }
-
- textarea {
- position: relative;
- outline: none;
- border: none;
- resize: none;
- background: inherit;
- color: inherit;
- /* see comments in template */
- width: 100%;
- height: 100%;
- font-size: inherit;
- font-family: inherit;
- line-height: inherit;
- text-align: inherit;
- @apply(--iron-autogrow-textarea);
- }
-
- ::content textarea:invalid {
- box-shadow: none;
- }
-
- textarea::-webkit-input-placeholder {
- @apply(--iron-autogrow-textarea-placeholder);
- }
-
- textarea:-moz-placeholder {
- @apply(--iron-autogrow-textarea-placeholder);
- }
-
- textarea::-moz-placeholder {
- @apply(--iron-autogrow-textarea-placeholder);
- }
-
- textarea:-ms-input-placeholder {
- @apply(--iron-autogrow-textarea-placeholder);
- }
- </style>
<template>
+ <style>
+ :host {
+ display: inline-block;
+ position: relative;
+ width: 400px;
+ border: 1px solid;
+ padding: 2px;
+ -moz-appearance: textarea;
+ -webkit-appearance: textarea;
+ overflow: hidden;
+ }
+
+ .mirror-text {
+ visibility: hidden;
+ word-wrap: break-word;
+ }
+
+ .fit {
+ @apply(--layout-fit);
+ }
+
+ textarea {
+ position: relative;
+ outline: none;
+ border: none;
+ resize: none;
+ background: inherit;
+ color: inherit;
+ /* see comments in template */
+ width: 100%;
+ height: 100%;
+ font-size: inherit;
+ font-family: inherit;
+ line-height: inherit;
+ text-align: inherit;
+ @apply(--iron-autogrow-textarea);
+ }
+
+ ::content textarea:invalid {
+ box-shadow: none;
+ }
+
+ textarea::-webkit-input-placeholder {
+ @apply(--iron-autogrow-textarea-placeholder);
+ }
+
+ textarea:-moz-placeholder {
+ @apply(--iron-autogrow-textarea-placeholder);
+ }
+
+ textarea::-moz-placeholder {
+ @apply(--iron-autogrow-textarea-placeholder);
+ }
+
+ textarea:-ms-input-placeholder {
+ @apply(--iron-autogrow-textarea-placeholder);
+ }
+ </style>
+
<!-- the mirror sizes the input/textarea so it grows with typing -->
<!-- use &#160; instead &nbsp; of to allow this element to be used in XHTML -->
<div id="mirror" class="mirror-text" aria-hidden="true">&nbsp;</div>

Powered by Google App Engine
This is Rietveld 408576698