web platform -- moving forward!

69
Web Platform Moving Forward! Masataka Yakura (myakura)

Upload: masataka-yakura

Post on 08-Jul-2015

5.533 views

Category:

Technology


1 download

DESCRIPTION

Firefox Developers Conference 2011 in Osaka (2011年5月14日開催) のトークセッションで使ったスライドです。

TRANSCRIPT

Page 1: Web Platform -- Moving Forward!

Web Platform Moving Forward! Masataka Yakura (myakura)

Page 2: Web Platform -- Moving Forward!

HTML5

Page 3: Web Platform -- Moving Forward!

実装進んでます!

Page 4: Web Platform -- Moving Forward!

HTMLパーサはFx4, Cr7で実装。 dev.mozilla.jp/hacksmozillaorg/firefox-4-the-html5-parser-inline-

svg-speed-and-more/

Page 5: Web Platform -- Moving Forward!

HTML中にSVGを書ける。

グラフや高解像度対応に最適。

Page 7: Web Platform -- Moving Forward!

<input type=foo> のフル実装と

フォームのスタイルづけが課題か。

Page 8: Web Platform -- Moving Forward!

W3C Confirms May 2011 for

HTML5 Last Call www.w3.org/2011/02/htmlwg-pr.html

Page 9: Web Platform -- Moving Forward!

5/24にLast Call公開(予定)

ただ、一回じゃ終わらない。

Page 10: Web Platform -- Moving Forward!

安定すると思いきや

大きな変更の可能性も……

Page 11: Web Platform -- Moving Forward!

<hgroup> なくなるかも? www.w3.org/html/wg/tracker/issues/164

Page 12: Web Platform -- Moving Forward!

CSS

Page 14: Web Platform -- Moving Forward!

CSS2がひと段落したので

今後はCSS3, CSS4 (!) が進む。

Page 17: Web Platform -- Moving Forward!

text-decoration

下線とかのスタイルを変更できる。

Page 18: Web Platform -- Moving Forward!

mark.spelling {

text-decoration-color: red;

text-decoration-style: wavy;

}

Page 20: Web Platform -- Moving Forward!

Gradients, image(), element(),

object-fitなどを定義。

Page 21: Web Platform -- Moving Forward!

Gradients

Opera, IEでも実装中。

Page 22: Web Platform -- Moving Forward!

-webkit-linear-gradient(...)

-moz-linear-gradient(...)

-ms-linear-gradient(...)

-o-linear-gradient(...)

linear-gradient(...)

-webkit-gradient(linear, ...)

(._. )...

Page 23: Web Platform -- Moving Forward!

Gradientsを先に進めるため

遅れたものはLevel 4行きかも?

Page 24: Web Platform -- Moving Forward!

image()

代替画像、dpiの指定。

Page 25: Web Platform -- Moving Forward!

body {

background-image :

image( "vector.svg",

“raster-hi.png" 150dpi );

...

}

Page 26: Web Platform -- Moving Forward!

element()

任意の要素を画像として取得。

Page 29: Web Platform -- Moving Forward!
Page 30: Web Platform -- Moving Forward!

img {

width: 500px;

height: 500px;

border: 10px solid;

...

}

Page 31: Web Platform -- Moving Forward!

img {

width: 500px;

height: 500px;

border: 10px solid;

object-fit: contain;

...

}

Page 32: Web Platform -- Moving Forward!

CSSレイアウト

Page 33: Web Platform -- Moving Forward!

レイアウトに関係する

モジュールがやたら多い。

Page 34: Web Platform -- Moving Forward!

• Template Lyt

• Grid Align

• Regions

• Exclusions

Page 36: Web Platform -- Moving Forward!

body {

display: "aaaa"

"bccc"

"dddd";

}

#header { position: a }

#sub { position: b }

#main { position: c }

#footer { position: d }

Page 37: Web Platform -- Moving Forward!

実装なし。

なくなるかもしれない?

Page 39: Web Platform -- Moving Forward!
Page 40: Web Platform -- Moving Forward!

#doc {

display: grid;

grid-columns: 150px 1fr;

grid-rows: 50px 1fr 50px;

}

#item1 {

grid-column: 2;

grid-row: 1 4;

}

Page 41: Web Platform -- Moving Forward!

Microsoftが提案

IE10で試験的に実装中。 blogs.msdn.com/b/ie/archive/2011/04/14/ie10-platform-preview-

and-css-features-for-adaptive-layouts.aspx

Page 42: Web Platform -- Moving Forward!

Regions

テキストの流れる領域を指定。

Page 43: Web Platform -- Moving Forward!
Page 44: Web Platform -- Moving Forward!

Exclusions

四角形以外でfloatするような。

Page 45: Web Platform -- Moving Forward!
Page 47: Web Platform -- Moving Forward!

被る機能があるので

それぞれの提案を評価中。 lists.w3.org/Archives/Public/www-style/2011Mar/0216.html

Page 49: Web Platform -- Moving Forward!

テキストを段組

で表現するCSS

モジュール。複

数のブラウザで

実装が進行中だ。

これまで段組は

tableを使って

無理やり実現す

るしかなかった。

Multicolはこれ

から文章中心の

Webサイトで広

く活用されてい

くのではないだ

ろうか。

Page 50: Web Platform -- Moving Forward!

#intro {

column-count: 3;

column-gap: 1.5em;

}

Page 51: Web Platform -- Moving Forward!

Gecko, WebKitは接頭辞あり、

Opera, IE10では接頭辞なしの実装。

Page 53: Web Platform -- Moving Forward!

幅にあわせ伸びるボックス、

ボックスの並び替えなどを実現。

Page 54: Web Platform -- Moving Forward!

SD HD

Page 55: Web Platform -- Moving Forward!

ここは固定幅

ほどよくのびてくれる

Page 56: Web Platform -- Moving Forward!

Gecko, WebKitが独自に実装。

TridentもIE10で実装中。

Page 57: Web Platform -- Moving Forward!

新しいWDで仕様が変更に……

(実装は古いものを参照)

Page 58: Web Platform -- Moving Forward!

そのほか

Page 59: Web Platform -- Moving Forward!

WebApps WG www.w3.org/2008/webapps/wiki/PubStatus

Page 60: Web Platform -- Moving Forward!

File APIs, IndexedDBが実装中。

Clipboard Oprsなど新しい仕様も。

Page 61: Web Platform -- Moving Forward!

Web Performance WG www.w3.org/2011/04/webperf

Page 62: Web Platform -- Moving Forward!

時間計測、描画最適化など

パフォーマンス関連の仕様を策定。

Page 65: Web Platform -- Moving Forward!

CSS WG (!?)

Page 67: Web Platform -- Moving Forward!

window.matchMedia()

メディアクエリーをスクリプトから。 developer.mozilla.org/en/CSS/Using_media_queries_from_code

Page 68: Web Platform -- Moving Forward!

var mql =

matchMedia("(orientation:landscape)");

mql.addListener(handleOrientationChange);

function handleOrientationChange(mql) {

if(mql.matches) { // よこよこ

// 横のなにか

} else {

// 縦のなにか

}

}

Page 69: Web Platform -- Moving Forward!

いろんなことが進んでますよ!