Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

autofill

Description

The autofill pseudo-class for CSS matches input elements which have been autofilled by the user agent. It stops matching if the user edits the autofilled field.

Autofill information must be saved on the browser for it to appear in the input field.

Syntax

selector:autofill
{
    property: value;
}

Examples

1 · CSS

2 · JS

active

any-link

blank

checked

default

defined

dir

disabled

empty

enabled

first-child

first-of-type

focus

focus-visible

focus-within

fullscreen

has

hover

in-range

indeterminate

invalid

is

lang

last-child

last-of-type

link

local-link

modal

not

nth-child

nth-col

nth-last-child

nth-last-col

nth-last-of-type

nth-of-type

only-child

only-of-type

optional

out-of-range

picture-in-picture

placeholder-shown

popover-open

read-only

read-write

required

root

scope

target

valid

visited

where

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu