1

Recently I saw some CSS selectors in browsers default styles:

input[type="hidden" i] {
    display: none
}

What does "i" mean.

Source: https://chromium.googlesource.com/chromium/blink/+/master/Source/core/css/html.css at line 412

2
  • 1
    I hope it's just a coincidence that this is almost word-for-word a copy of stackoverflow.com/questions/27506735/…
    – BoltClock
    Mar 26, 2018 at 16:53
  • am pretty sure that you got this question while writing yours as related ... but no one pay attention to them ... Mar 26, 2018 at 19:00

1 Answer 1

2

Per https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors

Adding an i (or I) before the closing bracket causes the value to be compared case-insensitively (for characters within the ASCII range).

So this selector will match type="hidden", type="HIDDEN", etc.

Not the answer you're looking for? Browse other questions tagged or ask your own question.