|
| 1 | +<!DOCTYPE html> |
| 2 | +<html> |
| 3 | +<head> |
| 4 | +<metaname="viewport"content="width=device-width,initial-scale=1"> |
| 5 | +<title>Autofill observation test</title> |
| 6 | +<style> |
| 7 | +input#name { |
| 8 | +margin-top:7em; |
| 9 | +} |
| 10 | +#pseudos { |
| 11 | +margin-top:-7em; |
| 12 | +color: lightgrey; |
| 13 | +padding-bottom:4em; |
| 14 | +} |
| 15 | +input:autofill+#pseudos>#autofill { |
| 16 | +color: red; |
| 17 | +} |
| 18 | +input:-webkit-autofill+#pseudos>#webkit-autofill { |
| 19 | +color: red; |
| 20 | +} |
| 21 | +input:-internal-autofill-previewed+#pseudos>#internal-autofill-previewed { |
| 22 | +color: red; |
| 23 | +} |
| 24 | +input:-internal-autofill-selected+#pseudos>#internal-autofill-selected { |
| 25 | +color: red; |
| 26 | +} |
| 27 | +#overridesinput:-webkit-autofill { |
| 28 | +background-color: pink!important; |
| 29 | +border:1px solid red; |
| 30 | +} |
| 31 | +#overridesinput:autofill { |
| 32 | +background-color: pink!important; |
| 33 | +border:1px solid red; |
| 34 | +} |
| 35 | +</style> |
| 36 | +</head> |
| 37 | +<body> |
| 38 | +<form> |
| 39 | +<inputautocomplete=nameid=name> |
| 40 | +<divid="pseudos"> |
| 41 | +<divclass=pseudoid=autofill>:autofill</div> |
| 42 | +<divclass=pseudoid=webkit-autofill>:-webkit-autofill</div> |
| 43 | +<divclass=pseudoid=internal-autofill-previewed>:-internal-autofill-previewed</div> |
| 44 | +<divclass=pseudoid=internal-autofill-selected>:-internal-autofill-selected</div> |
| 45 | +</div> |
| 46 | +</form> |
| 47 | +<formid="overrides"> |
| 48 | +Overrides:<br> |
| 49 | +<inputtype="text"autocomplete=namename="name"id=name2><br> |
| 50 | +<inputtype="text"autocomplete="email"name="email"id="email"><br> |
| 51 | +<inputtype="password"name="password"autocomplete="password"><br> |
| 52 | +</form> |
| 53 | +</body> |
| 54 | +</html> |
| 55 | + |