📜 ⬆️ ⬇️

IE8: CSS changes, developer details

In the eighth version of Internet Explorer, a lot of changes are expected, there are some that concern 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. An article “Microsoft CSS Vendor Extensions” appeared on the official blog of internet explorer developers, in which css-changes are described in sufficient detail.

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

First of all, you need to tell that Microsoft has changed the naming procedure for some properties of css. Now all "non-standard properties" get the prefix "-ms-". In order to fully comply with css 2.1 in IE 8, such a prefix obtained properties suitable for the following conditions:


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 many sites will have to convert old values ​​to new ones, so 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 new naming should be used.

Filter property


Changes affected such properties as filter. Previously, unfortunately, the filter syntax was not consistent with CSS 2.1. For example, in the specified 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 adapted to the requirements of the CSS specification:
-ms-filter: “progid: DXImageTransform.Microsoft.Alpha (Opacity = 80, FinishOpacity = 70, Style = 2)”;

It is easy to see that in the new syntax the value of the property is in quotes.

Source: https://habr.com/ru/post/39446/


All Articles