Set transparent background in textarea elements (flutter/engine#12710)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user