IE8: CSS Changes, Details for Developers

    In the eighth version of Internet Explorer, a lot of changes are expected, there are also those that relate to CSS. A good developer should try to know about the capabilities of various browsers, so I consider the css-nuances of the new IE interesting. The article “Microsoft CSS Vendor Extensions” appeared on the official internet explorer developers blog , which describes the css changes in sufficient detail.

    Below under the cut, I provided basic information on changes and innovations.

    First of all, it is necessary to tell that Microsoft has changed the naming order of some css properties. Now all "non-standard properties" get the prefix "-ms-". In order to fully comply with css 2.1 in IE 8, such a prefix received properties suitable for the following conditions:
    • if the property is a Microsoft extension (not defined in the specification or CSS module);
    • if the property is part of a CSS specification or module that has not received the Candidate Recommendation status from the W3C;
    • if the property only partially implements the property defined in the CSS specification.


    Here is a list of properties that received the prefix "-ms-" (indicating the reason):
    PropertyTypeW3c status
    -ms- acceleratorExtension 
    -ms- background-position-xCSS3Working draft
    -ms- background-position-yCSS3Working draft
    -ms- behaviorExtension 
    -ms- block-progressionCSS3Editor's draft
    -ms- filterExtension 
    -ms- ime-modeExtension 
    -ms- layout-gridCSS3Editor's draft
    -ms- layout-grid-charCSS3Editor's draft
    -ms- layout-grid-lineCSS3Editor's draft
    -ms- layout-grid-modeCSS3Editor's draft
    -ms- layout-grid-typeCSS3Editor's draft
    -ms- line-breakCSS3Working draft
    -ms- line-grid-modeCSS3Editor's draft
    -ms- interpolation-modeExtension 
    -ms- overflow-xCSS3Working draft
    -ms- overflow-yCSS3Working draft
    -ms- scrollbar-3dlight-colorExtension 
    -ms- scrollbar-arrow-colorExtension 
    -ms- scrollbar-base-colorExtension 
    -ms- scrollbar-darkshadow-colorExtension 
    -ms- scrollbar-face-colorExtension 
    -ms- scrollbar-highlight-colorExtension 
    -ms- scrollbar-shadow-colorExtension 
    -ms- scrollbar-track-colorExtension 
    -ms- text-align-lastCSS3Working draft
    -ms- text-autospaceCSS3Working draft
    -ms- text-justifyCSS3Working draft
    -ms- text-kashida-spaceCSS3Working draft
    -ms- text-overflowCSS3Working draft
    -ms- text-underline-positionExtension 
    -ms- word-breakCSS3Working draft
    -ms- word-wrapCSS3Working draft
    -ms- writing-modeCSS3Editor's draft
    -ms- zoomExtension 


    Developers understand that for many sites they will have to translate the old values ​​to new ones, so the old values, although they will be considered obsolete, will be supported in the eighth version for compatibility. When developing new code for IE 8, only the new naming conventions should be used.

    Filter property


    Changes affected a property like filter. Previously, unfortunately, the filter syntax did not match CSS 2.1. For example, in the indicated code, commas were considered invalid.
    filter: progid: DXImageTransform.Microsoft.Alpha (Opacity = 80, FinishOpacity = 70, Style = 2);

    In the new version of the browser, the filter syntax is aligned with the CSS specification:
    -ms-filter: "progid: DXImageTransform.Microsoft.Alpha (Opacity = 80, FinishOpacity = 70, Style = 2)";

    it is easy to notice that in the new syntax the value of the property is quoted.

    Also popular now: