Firefox 4 と SVG

Firefox 4 における SVG

Firefox 4 の新機能

HTML への SVG の埋め込み

HTML への SVG の埋め込み (XHTML)

<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:svg="http://www.w3.org/2000/svg"
      xmlns:xlink="http://www.w3.org/1999/xlink">
...
<!-- 表示されない -->
<svg width="100" height="100">
  <a xlink:href="http://www.mozilla.org/">
    <rect x="0" y="0" width="100" height="100" fill="blue"/>
  </a>
</svg>
<!-- 表示される -->
<svg:svg width="100" height="100">
  <svg:a xlink:href="http://www.mozilla.org/">
    <svg:rect x="0" y="0" width="100" height="100" fill="green"/>
  </svg:a>
</svg:svg>
...

HTML への SVG の埋め込み (HTML)

<html xmlns:svg="http://www.w3.org/2000/svg"
      xmlns:xlink="http://www.w3.org/1999/xlink">
...
<!-- 表示される -->
<svg width="100" height="100">
  <a xlink:href="http://www.mozilla.org/">
    <rect x="0" y="0" width="100" height="100" fill="blue"/>
  </a>
</svg>
<!-- 表示されない -->
<svg:svg width="100" height="100">
  <svg:a xlink:href="http://www.mozilla.org/">
    <svg:rect x="0" y="0" width="100" height="100" fill="green"/>
  </svg:a>
</svg:svg>
...

HTML への SVG の埋め込み (HTML/XHTML)

<html>
...
<!-- HTML と XHTML のどちらにも使えるマークアップ -->
<svg width="100" height="100"
     xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink">
  <a xlink:href="http://www.mozilla.org/">
    <rect x="0" y="0" width="100" height="100" fill="blue"/>
  </a>
</svg>
...

<img> や CSS の背景画像に SVG

HTML への SVG の埋め込み

demo?

SVG/SMIL Animation につづく

SVG Text の (未) 実装状況

SVG Fonts の (未) 実装状況

SVG Fonts の (未) 実装状況

ブラウザ毎のフォントフォーマットの対応状況
出典: ウェブフォントの未来 John Dagget

SVG Fonts の (未) 実装状況

SVG Fonts --- at least the subset implemented in Opera and Webkit --- don't offer anything significant over downloadable Opentype (or WOFF) fonts ... except the last three points of the Acid3 test :-(. And people keep asking for it "because it's in SVG 1.1". But I don't think those are good enough reasons on their own to make SVG Fonts an essential part of the Web platform.

Robert O'Challhan

SVG のビットマップ画像化

SVG のビットマップ画像化