Skip to content

9.8 “Vigilo Confido”

Choose a tag to compare
@ai ai released this 17 May 05:05

XCOM coat of arms

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>.