IE8 (IE8 in the following section only represents IE8 beta1) adds the substring matching attribute selector (substring matching attribute selectors) in css3. The specific rules are similar to those in Regular Expressions:
- E [ATT ^ = 'val'] // The substring starts with 'val'
- E [ATT $ = 'val'] // The substring ends with 'val'
- E [ATT * = 'val'] // The substring contains 'val'
IE8 supports most basic css2.1 selectors:
- : Before and: After is supported. Only text is supported. images are not supported, but there are still bugs.
- : Focus is supported.
- Display: inline-block is supported (can only be used for inline elements ).
- Display: Table is supported.
- List-style is fully supported, including the value upper-Greek (this value is not supported by other browsers ).
- Outline is supported.
- Border-collapse, border-spacing, and caption-side are supported.
- White-space is fully supported.
- Box-sizing is supported, but the Private Attribute-MS-box-sizing is used.
Not supported include but are not limited to: first-line,: First-letter, opacity, and rgba.
Hack originally used to distinguish IE is basically invalid in IE8 (for example, * Property: value, * Property: value, etc ).
Update 08-3.8:
- The original list-item whitespace bug of IE still exists in IE8.
- The original ie Z-index bug still exists in IE8.
- New bug in IE8: When line-heigth is smaller than normal, the excess parts will be dropped.
- In IE8, the border's transparent value is still not supported.
- In IE8, @ import only supports layer-3 nesting.
Update 08-3.12:
- The negative text-indent value in IE8 is cropped.
- The bug of fuzzy specificity still exists in IE8.
-------- Gorgeous split line --------
Related reading:
- IE8-CSS-Discuss
- IE8 Beta 1-first tests
- Internet Explorer 8