Skip to content

Commit

Permalink
CSS autofill - improve grammar in introduction (mdn#2403)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishwillee authored Feb 17, 2021
1 parent fca9908 commit bdd7b20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/css/_colon_autofill/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
---
<div>{{CSSRef}}</div>

<p>The <strong><code>:autofill</code></strong> CSS <a href="/en-US/docs/Web/CSS/Pseudo-classes">pseudo-class</a> matches when an {{HTMLElement("input")}} element has its value autofilled by the browser. The class must stop matching if the user edits the field.</p>
<p>The <strong><code>:autofill</code></strong> CSS <a href="/en-US/docs/Web/CSS/Pseudo-classes">pseudo-class</a> matches when an {{HTMLElement("input")}} element has its value autofilled by the browser. The class stops matching if the user edits the field.</p>

<div class="notecard note"><p><strong>Note:</strong> The user agent style sheets of many browsers use <code>!important</code> in their <code>:-webkit-autofill</code> style declarations, making them non-overrideable by webpages without resorting to JavaScript hacks. For example Chrome has the following in its internal stylesheet:</p>
<pre class="brush:css">background-color: rgb(232, 240, 254) !important;
Expand Down

0 comments on commit bdd7b20

Please sign in to comment.