---
title: Firefox 16 for developers
slug: Mozilla/Firefox/Releases/16
tags:
- Firefox
- Firefox 16
translation_of: Mozilla/Firefox/Releases/16
---
{{FirefoxSidebar}}
Firefox 16 shipped on October 9, 2012. This article lists key changes that are useful for not only Web developers to know about, but also Firefox and Gecko developers as well as add-on developers.
Web开发
HTML
- The {{HTMLElement("meter")}} element is now supported.
- Support for the HTML Microdata API has been added. (bug 591467)
- {{HTMLElement("canvas")}} now supports the CSS
currentColor
in all case. ({{bug("629882")}})
- {{HTMLElement("input")}} now allows filtering based on arbitrary mimetypes in
accept
({{bug("565274")}}).
- Two new attributes,
width
and height
have been added to the {{HTMLElement("input")}} element (bug 683855).
CSS
- 实现了标准的不带前缀的 CSS Transforms. (bug 745523)
- Support for reverse animation direction (keywords
reverse
and alternate-reverse
on the {{cssxref("animation-direction")}} property) has been added. (bug 655920).
- You can now animate the CSS {{cssxref("height")}} and {{cssxref("width")}} properties.
- The {{cssxref("animation-duration")}} and {{cssxref("transition-duration")}} CSS properties now reject negative values (and do not handle them as
0s
anymore) (bug 773102).
- Support for the standard, unprefixed version of CSS Transforms has been landed (bug 745523). {{cssxref("<length>")}} cannot be used for translation values in
matrix()
and matrix3d()
anymore ({{bug(719054)}}).
- Support for the standard, unprefixed version of CSS Gradients has been landed. Note that the syntax has changed significantly since the prefixed version, so you should read up on this (bug 752187).
- The {{cssxref("box-sizing", "-moz-box-sizing")}} implementation has been updated to apply to table cells too (bug 338554).
- Support for the standard, unprefixed version of {{cssxref("calc")}} has been landed (bug 771678).
- The {{cssxref("<resolution>")}} CSS data type has been extended to support the
dppx
(bug 741644).
- On screen, for media queries,
dppx
, dpi
, and dpcm
are now representing values based on CSS pixels and no more with the physical units (bug 771390).
- Three new pseudo-classes
:-moz-meter-optimum
, :-moz-meter-sub-optimum
, and :-moz-meter-sub-sub-optimum
have been added for accessing/styling a {{HTMLElement("meter")}} element in a paraticular state (bug 660238).
- The {{cssxref("-moz-appearance")}} property gains two new values:
meterbar
and meterchunk
. They represent components inside the {{HTMLElement("meter")}} element (bug 659999).
- The {{cssxref("min-width")}} and {{cssxref("min-height")}} now supports the
auto
keyword for flex items (and resolves to 0
for other items) ({{bug("763689")}}).
API/DOM
- 在{{ domxref("HTMLInputElement") }} 接口上添加了两个新的
width
和 height
属性 . (bug 683855)
- IndexedDB 属性和方法取消前缀. (bug 726378)
- The Battery API is now unprefixed.
- The Vibration API has been unprefixed.
- The non-standard
Keyboard
interface, prefixed as mozKeyboard
, now has the Keyboard.setSelectedOption()
and Keyboard.setValue()
methods, as well as the Keyboard.onfocuschange
. This interface, only available for Firefox OS, has been removed in Firefox 31.
- The
java
and Packages
global objects have been removed. See LiveConnect.
- The
CSSRule.type
associated with {{domxref("CSSNamespaceRule")}} has been updated from UNKNOWN_RULE
(0
) to NAMESPACE_RULE
(10
) (bug 765590).
- WebSMS API: {{domxref("SmsRequest")}} has been superseded by the more general {{domxref("DOMRequest")}}.
- The non-standard {{domxref("Element.scrollTopMax")}} and {{domxref("Element.scrollLeftMax")}} read-only properties have been added ({{bug(766937)}}).
- The second parameter of {{domxref("Blob.blob", "Blob()")}}, when set to
null
or undefined
, is now being handled as an empty dictionary ({{bug(7691119)}}).
JavaScript
WebGL
No change
SVG
No change
MathML
- The
lspace
and rspace
attributes of {{MathMLElement("mo")}} now correctly default to thickmathspace
.
网络
- There's now a handy developer toolbar you can access by going to Tools > Web Developer > Developer Toolbar, or by pressing Ctrl-Shift-V (Cmd-Opt-V on Mac OS X). This toolbar offers a command line interface as well as buttons for quickly accessing useful tools. The graphical command line interface (GCLI) is easy to expand and additional commands are expected in the future. Type "help" to get a list of supported commands.
- The Web Console now displays an error count so you can quickly see how much work you have ahead of you.
- The Scratchpad now offers a list of recently opened files.
Changes for Open Web App developers
- Initial Open Web App support has been implemented in the desktop versions of Firefox (that is, on Windows, Mac OS X, and Linux).
附加组件开发变更
修改接口
{{interface("nsIPrivateDOMEvent")}} has been merged into {{interface("nsIDOMEvent")}}. ({{bug("761613")}})
新增接口
废弃接口