📜 ⬆️ ⬇️

The most comprehensive guide to Internet Explorer 9 for developers (and not only), part 6

CSS3 2D Transforms, HTML5 Semantic Elements, JavaScript, demos, and tests

image

During the PDC10 conference, the next test version of Internet Explorer 9 was introduced. IE9 Preview 6 is a version intended for testing by developers and, like previous preview versions, it does not contain a user interface. But you can install it on your computer without removing IE9 Beta.
')
This post will reveal the details of the sixth test version of Internet Explorer 9 and will tell you about browser innovations that will be important for developers.

This is the sixth article in a series of articles about innovations in IE9 for developers. You can get acquainted with the previous parts here:

Introduction


During the PDC10 conference, there was a rumor that IE9 P6 is the latest preview build before the release of the candidate for release and the final final release of Internet Explorer 9.

This release, besides the next performance optimization, contains several useful innovations: support for CSS3 2D Transforms and HTML5 Semantic Elements.

JavaScript execution speed


Developers once again tightened browser performance when working with JavaScript. According to tests Webkit SunSpider Internet Explorer 9 is in fourth place, ahead of the preliminary version of Firefox 4.0, but behind the browsers Chrome and Opera:

imageimage

However, as it can be seen, modern browsers have reached the limit of speed optimization and the advantage is calculated in milliseconds in a matter of seconds.

CSS3 2D Transfoms


A rather unexpected innovation in IE9 Preview 6 is support for 2D transformations in CSS . This standard has not yet been adopted, so support for commands is carried out through special prefixes –ms-:Internet Explorer 9 Preview 6 supports the following transformation functions that are used with –ms-transform:The -ms-transform-origin property takes two parameters, which can be positive or negative. These parameters indicate the starting point relative to which transformations will be applied to the element. Parameter values ​​can be either any of the valid interval values or special values: left, center or right . These special values ​​correspond to the values ​​of 0%, 50% and 100%.

Examples

original item:

<div id = "test" style = "background-color: red; width: 50px; height: 50px"> </ div>

image

-ms-transform: matrix (10, 1, 1, 1, 1, 1);

image

-ms-transform: translate (1px, 15px) rotate (45deg);

image

-ms-transform: skew (15deg, 15deg);

image

-ms-transform: translate (200px, 100px) scale (.75, .75) rotate (40deg);
-ms-transform-origin: 60% 100%;

image

HTML5 Semantic Elements


The HTML5 standard introduces new elements with special semantics. Internet Explorer 9 Preview 6 implements their full support. All these elements, according to the specification, are inherited from the HTMLElement object. In addition, in IE9P6, these new elements are standardized as per the specification.

Below is a list of HTML5 semantic elements:Each of these elements is intended to describe a specific part of a page: a section, the body of an article, a navigation unit, an attached image, a footer or a title, and others.

The developers added a special demo page to clarify the purpose and application of these elements in practice. On this page, all elements are typed using semantic tags:

image

New in developer tools


Internet Explorer 9 has powerful tools for web developers who help create web pages, styles and scripts, debug them to study the results.

The new version has only one, but a very useful innovation in the tools - the ability to format compressed JavaScript code. Formatting compressed code is useful when you need to figure out or debug the code on your finished page or someone else's page.

What it looks like. Having a code similar to that shown in the screenshot:

image

You can format it in a couple of clicks for better readability and debugging:

image

image

Extremely useful and convenient innovation.

Demonstrations and Tests


Internet Explorer 9 is attracting a lot of attention. In the first 6 weeks after the release of IE9 Beta, the browser has been downloaded more than 10 million times. It seems to me that an important role was played here by the excellent and visual demonstrations that the developers create in order to show the importance of this or that innovation. In addition, developers create tests that allow you to assess the degree of distribution of functions implemented in IE9 among other browsers.

With the release of IE9 Preview 6, several new demonstrations and new test suites have been released.

SVG Helicopter

An interesting game that allows you to evaluate the speed of processing browser dynamic content and graphics. Try to control the helicopter and set a distance record. I managed to score 522 miles.

image

In IE9, this game comes with FPS = 60.

Track splash

A small test that will determine the performance of the browser when using canvas, sound and animation on a web page.

image

Semantic notepad

About this demonstration was written a little higher. It allows you to familiarize yourself with the features that new HTML5 semantic elements offer.

A new day

A graphical test that allows you to compare the implementation of the CSS3 box-shadow element in your browser.

image

Below is the result that I got in Opera 11 alpha 1029.

image

Check how your browser complies with the standard and implements CSS3 box-shadow.

Flickr postcards


This demo shows how to work with the properties of a 2D CSS transformation.

image

Customer Model


This demo shows how a browser works with a complex SVG object. All elements of the table are collected using SVG-elements.

image

Icon editor


Icon editor created entirely on HTML5 technology. Looks and works - great.

image

Addon performance advisor


The last test is aimed at demonstrating the mechanism of blocking browser add-ons if they slow down the download.

WebVizBench


The most interesting benchmark is written by third-party developers to demonstrate the new features of HTML5. It is a site for a real radio station. The developers took HTML5 as a basis for Internet Explorer 9 and created a beautiful graphical benchmark.

image

This benchmark will allow you to find out the speed of graphics processing by the browser and the browser capabilities using hardware accelerated graphics through the GPU. As testing by users of Habr showed, Internet Explorer 9 handles the test best.

Testing


Developers have added tests for HTML5 Semantic Elements support:

image

CSS3 2D Transforms :

image

DOM Level 3 Events :

image

EcmaScript 5 Objects Objects :

image

Conclusion


The new version of IE9 Preview 6 introduced support for two additional standards and added performance when processing scripts. In addition, new visual tests and demonstrations were released.

It is said that the next release of IE9 will already be a candidate for release, followed by a final version of the browser. Let's hope that we will see the final version in the spring at the MIX11 conference.

Useful links:

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


All Articles