9.8 “Vigilo Confido”
Autoprefixer 9.8 brings IE support for :placeholder-shown
.
Placeholder Shown
@tkrotoff found that input:placeholder-shown
can be emulated with input:-ms-input-placeholder
.
input:-ms-input-placeholder {
box-shadow: 0 0 0 1px blue;
}
input:placeholder-shown {
box-shadow: 0 0 0 1px blue;
}
Note, that we already had support for ::placeholder
. Selector ::placeholder
is for the text of the placeholder. :placeholder-shown
is for the input, where placeholder text is shown. In ::placeholder
you can’t change the border or size of the <input>
.