Top Banner
45

HTMI5 on Windows and IE

Oct 15, 2014

Download

Documents

mustafaadel
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: HTMI5 on Windows and IE
Page 2: HTMI5 on Windows and IE

WHO ?

@mustafa_elnagar

[email protected] .Microsoft HTML5 Champion

Page 3: HTMI5 on Windows and IE

How The HTML worksDom.Root.Elements.

Page 4: HTMI5 on Windows and IE
Page 5: HTMI5 on Windows and IE

Graphics

Before

AfterThe SVG become a part of the DOM.

You use Silverlight , Flash ,VML.

Bit Mapped images.

Scalable images.

Page 6: HTMI5 on Windows and IE

Is WPF dead or going to be Died ?

Page 7: HTMI5 on Windows and IE

HTML 5 on win 8 Fast launching of apps from a tile-based Start screen, which replaces the Windows Start menu with a customizable, scalable full-screen view of apps.Live tiles with notifications, showing always up-to-date information from your apps.Convenient ability to snap and resize an app to the side of the screen, so you can really multitask using the capabilities of Windows.Web-connected and Web-powered apps built using HTML5 and JavaScript that have access to the full power of the PC.Fully touch-optimized browsing, with all the power of hardware-accelerated Internet Explorer 10.

Page 8: HTMI5 on Windows and IE
Page 9: HTMI5 on Windows and IE

Bing for Mobile Goes HTML5

Page 10: HTMI5 on Windows and IE

Internet Explorer 9Welcome to the future

Page 11: HTMI5 on Windows and IE

Engineering for IE9 is about delivering:

• A fast, clean experience that allows IE users to

just browse

• A highly interoperable platform for developers

to build compelling, graphically rich site and

applications, powered by Windows

IE9 At-A-Glance

High performance browser

Best interoperable HTML5

Hardware accelerated graphics

Page 12: HTMI5 on Windows and IE

Localization

Page 13: HTMI5 on Windows and IE

HTML5 and Internet Explorer 9

Page 14: HTMI5 on Windows and IE

Participation to W3C Working Groups

• HTML 5 WG• DOM WG• CSS WG• SVG WG• SVG Testing Task Force• HTML Testing Task Force• Accessibility Task Force• …

Microsoft and Web Standards

Page 15: HTMI5 on Windows and IE

Paul Cotton (Microsoft), co-chair

40 W3C Member organizations

411 group participants

280 invited Experts

9 mailing lists (~4000 emails on public-html)

As of March 15th:

• 153 unresolved bugs, 34 unresolved issues (e.g. decentralized

extensibility, document license…)

HTML Working Group

Page 17: HTMI5 on Windows and IE

HTML5 • Defines the behavior at seams of other specs• Parsing unknown elements• Integrated SVG

XHTML/XML• Namespaces for using custom elements• Strict, fail-fast parsing helps developers find errors quickly

SVG• Standalone XML-based document (.svg file)• Inline in an XHTML document• Inline in an HTML5 document

Markup Languages in IE9

Page 18: HTMI5 on Windows and IE

Interpret the same HTML and CSS markup the same way

Always some differences on the edges

• Standards evolve• Browsers implement in different order

Contributing DOM, CSS3 Standards Compliance Tests to W3C

Interoperable HTML5 Markup

Page 19: HTMI5 on Windows and IE

Interoperable MarkupDemo

Page 20: HTMI5 on Windows and IE

W3C Web StandardsNumber of Submitted Tests

Internet Explorer 9Platform Preview

Mozilla Firefox 3.6 Opera 10.50 Apple Safari 4.0 Google Chrome 4.0

SVG 1.1 2nd edition 31 100% 90% 97% 94% 94%

CSS3 Borders & Backgrounds

33 100% 27% 88% 27% 91%

CSS3 Selectors 16 94% 81% 63% 50% 50%

DOM Level 2 Core 9 100% 89% 100% 100% 100%

DOM Level 3 Events 10 100% 40% 40% 50% 50%

DOM Level 2 Style 5 80% 100% 80% 20% 0%

W3C Test Suites

Source: http://samples.msdn.microsoft.com/ietestcenter/

Page 21: HTMI5 on Windows and IE

HTML5 <video> element

• Industry-standard MPEG-4/H.264 video• Video can be composited with anything else on the page

• HTML content, images, SVG graphics

• GPU-based implementation capable of maintaining 60fps full-

screen at full HD resolution• Supports both DXVA and full hardware video decoders

HTML5 <audio> element

• Industry-standard MP3 and AAC audio

HTML 5 Video

<video width="800" height="450" src="myvideo.mp4" autoplay>

No video for you</video>

Page 22: HTMI5 on Windows and IE

Vedio TagDemo

Page 23: HTMI5 on Windows and IE

Markup-/DOM-based graphics: SVG 1.1

• “View source” simplicity—aids learning• Easy server-side generation—it’s just XML• Easy client-side debugging—it’s in the DOM• Supported by popular graphics programs• Easy integration with HTML5

SVG (Scalable Vector Graphics)

<svg width="400" height="200" xmlns="http://www.w3.org/2000/svg">

<rect fill="red" x="20" y="20" width="100" height="75" />

<rect fill="blue" x="50" y="50" width="100" height="75" />

</svg>

Page 24: HTMI5 on Windows and IE

SVGDemo

Page 25: HTMI5 on Windows and IE

SVG in IE9 Platform PreviewSVG Feature Today IE9

Document Structure

Basic Shapes

Paths

Text

Transforms

Painting, Filling, Color

Scripting

Styling

Gradients and Patterns

Clipping and Masking

Markers and Symbols

Filter Effects

Declarative Animation

SVG Fonts

Page 26: HTMI5 on Windows and IE

CSS3 Color

• Alpha color with rgba() and hsla() color functions• Transparency control with the opacity property

CSS3 Backgrounds and Borders

• Round corners with the border-radius property• Multiple background images per element• box-shadow property on block elements

Graphically-rich Styling with CSS3

Page 27: HTMI5 on Windows and IE

CSS3 Selectors

• Help you do more on your site with less script• Make it easier to use new graphics capabilities

CSS3 Namespaces

• Style elements with namespaces in XHTML documents

CSS Infrastructure

Page 28: HTMI5 on Windows and IE

CSS 3 Selectors

Page 29: HTMI5 on Windows and IE

CSS3Demo

Page 30: HTMI5 on Windows and IE

Central part of web platform used to

manipulate the DOM

• DOM Core

• DOM Events

• DOM Style

• DOM HTML

• DOM Range

• HTML5 Selection

IE9 Programming Model

Page 31: HTMI5 on Windows and IE

EventsDemo

Page 32: HTMI5 on Windows and IE

IE9 and PerformanceHW-Accelerated HTML5

Page 33: HTMI5 on Windows and IE

Microsoft Confidential

Page load in slow motion

Demo

Page 34: HTMI5 on Windows and IE

LayoutRenderingParsingDOMNetworkingFormatsJscript

LayoutRenderingParsingDOMNetworkingFormatsJscript

Time spent in IE subsystems differs greatly by site function and coding pattern

News site 1

News site 2

Performance is multi-dimensional

Page 35: HTMI5 on Windows and IE

WSJ – Before and After

39

IE8

IE9

IE8

IE9

Page 36: HTMI5 on Windows and IE

Web API Usage 7000 top sites

API (by rank)1 50 700

Nu

mb

er

of

sit

es

7000

0

API Rank Percent of Sites

indexOf 1 94%

getElementById 13 80%

addEventListener 27 65%

getComputedStyle 62 26%

Page 37: HTMI5 on Windows and IE

JavaScript PerformanceWebKit.org’s SunSpider v0.9 Benchmark

Dell OptiPlex, Microsoft Windows 7 Enterprise 6.1.7600, 64-bit, 3.0GHz Intel Core 2 Duo, 4GB RAM, Intel Integrated Video

IE8

Opera

10.

10

IE9

PDC 2

009

Demo

Firef

ox 3

.6

Firef

ox 3

.7 A

lpha

2 P

rere

leas

e

IE9

Plat

form

Pre

view (1

.9.7

745.

6019

)

Safa

ri 4.

0.5

(531

.22.

7)

Chrom

e 4.

0.24

9.89

Chrom

e 5.

0.34

2.2

(dev

)

Opera

10.

5 0

1000

2000

3000

4000 3826

2492

834 700 610 599 408 374 293 285

Milliseco

nds

Page 38: HTMI5 on Windows and IE

GPU on Every Machine

Page 39: HTMI5 on Windows and IE

High Performance JavaScript execution

DOM interaction and layout

GPU-powered rendering

Cross-browser Interoperability

HTML5 markup

CSS3 markup

DOM programmability

Graphics Capabilities

Alpha color & opacity

Round corners & multiple backgrounds

HTML5-integrated SVG graphics

Media Capabilities <video> element with MPEG-4/H.264

<audio> element with MP3/AAC

GPU-Powered HTML5

Page 40: HTMI5 on Windows and IE

Flying ImagesDemo

Page 41: HTMI5 on Windows and IE

Flying Images – One Animation

45

IE8

IE9

IE8

IE9

Page 42: HTMI5 on Windows and IE

blogs.msdn.com/IE

www.ietestdrive.com

blogs.msdn.com/Giorgio

Resources

Page 43: HTMI5 on Windows and IE

Q&A

Page 44: HTMI5 on Windows and IE

Resources

-http://ie.microsoft.com/testdrive/-http://www.w3.org/TR/html5/introduction.html

Page 45: HTMI5 on Windows and IE