CSS selectors by no means stop to amaze me in how highly effective they are often in matching complicated patterns. Most of that flexibility is in dad or mum/baby/sibling relationships, very seldomly in worth matching. Contemplate my shock after I realized that CSS permits matching attribute values regardless off case!
Including a {area}i
to the attribute selector brackets will make the attribute worth search case insensitive:
/* case delicate, solely matches "instance" */ [class=example] { background: pink; } /* case insensitive, matches "instance", "eXampLe", and so forth. */ [class=example i] { background: lightblue; }
The use instances for this i
flag are probably very restricted, particularly if this flag is knew information for you and also you’re used to a typical lower-case commonplace. A free CSS classname commonplace may have and would proceed to result in issues, so use this case insensitivity flag sparingly!
5 Superior New Mozilla Applied sciences You’ve By no means Heard Of
My journey to Mozilla Summit 2013 was unbelievable. I’ve spent a lot time specializing in my challenge that I had overpassed all the nice work Mozillians had been placing out. MozSummit offered the proper reminder of how sensible my colleagues are and the way a lot…
Net Audio API
The Net Audio API permits builders to load and decode audio on demand utilizing JavaScript. The extra I consider superior video games for Firefox OS TVs, the extra I get to study these APIs that I usually would not contact. The next is a very fundamental introduction to the WebAudio API…