Set transparent background in textarea elements (flutter/engine#12710)

This commit is contained in:
Mouad Debbar
2019-09-30 21:12:51 -07:00
committed by GitHub
parent 27246efbb7
commit 621420b491

View File

@@ -262,6 +262,11 @@ flt-semantics input[type=range] {
' background-color: transparent;'
'}',
sheet.cssRules.length);
sheet.insertRule(
'textarea::-moz-selection {'
' background-color: transparent;'
'}',
sheet.cssRules.length);
} else {
// On iOS, the invisible semantic text field has a visible cursor and
// selection highlight. The following 2 CSS rules force everything to be
@@ -271,6 +276,11 @@ flt-semantics input[type=range] {
' background-color: transparent;'
'}',
sheet.cssRules.length);
sheet.insertRule(
'textarea::selection {'
' background-color: transparent;'
'}',
sheet.cssRules.length);
}
sheet.insertRule('''
flt-semantics input,