W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2021

Re: [csswg-drafts] [selectors] :autofill pseudo-class (#5775)

From: 一丝 via GitHub <sysbot+gh@w3.org>
Date: Mon, 05 Jul 2021 03:02:54 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-873747606-1625454172-sysbot+gh@w3.org>
@Iconejey Yes, we now have to use a very hacky method to overwrite Chrome's default style, because `box-shadow: none` has no effect.

```css
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
}
```

-- 
GitHub Notification of comment by yisibl
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5775#issuecomment-873747606 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 5 July 2021 03:02:55 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:38 UTC