Наши волонтёры ещё не перевели данную статью на Русский. Присоединяйтесь к нам и помогите закончить эту работу!
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.
Changes for Web developers
HTML
- The
<meter>
element is now supported. - Support for the HTML Microdata API has been added. (bug 591467)
<canvas>
now supports the CSScurrentColor
in all case. (bug 629882)<input>
now allows filtering based on arbitrary mimetypes inaccept
(bug 565274).- Two new attributes,
width
andheight
have been added to the<input>
element (bug 683855).
CSS
- Support for the standard, unprefixed version of CSS Animations has been landed (bug 762302).
- Support for reverse animation direction (keywords
reverse
andalternate-reverse
on theanimation-direction
property) has been added. (bug 655920). - You can now animate the CSS
height
andwidth
properties. - The
animation-duration
andtransition-duration
CSS properties now reject negative values (and do not handle them as0s
anymore) (bug 773102). - Support for the standard, unprefixed version of CSS Transforms has been landed (bug 745523).
<length>
cannot be used for translation values inmatrix()
andmatrix3d()
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
-moz-box-sizing
implementation has been updated to apply to table cells too (bug 338554). - Support for the standard, unprefixed version of
calc()
has been landed (bug 771678). - The
<resolution>
CSS data type has been extended to support thedppx
(bug 741644). - On screen, for media queries,
dppx
,dpi
, anddpcm
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<meter>
element in a paraticular state (bug 660238). - The
-moz-appearance
property gains two new values:meterbar
andmeterchunk
. They represent components inside the<meter>
element (bug 659999). - The
min-width
andmin-height
now supports theauto
keyword for flex items (and resolves to0
for other items) (bug 763689).
API/DOM
- Two new properties
width
andheight
have been added to theHTMLInputElement
interface (bug 683855). - IndexedDB properties and methods have been unprefixed. (bug 726378)
- The Battery API is now unprefixed.
- The Vibration API has been unprefixed.
- The non-standard
Keyboard
interface, prefixed asmozKeyboard
, now has theKeyboard.setSelectedOption()
andKeyboard.setValue()
methods, as well as theKeyboard.onfocuschange
. This interface, only available for Firefox OS, has been removed in Firefox 31. - The
java
andPackages
global objects have been removed. See LiveConnect. - The
CSSRule.type
associated withCSSNamespaceRule
has been updated fromUNKNOWN_RULE
(0
) toNAMESPACE_RULE
(10
) (bug 765590). - WebSMS API:
SmsRequest
has been superseded by the more generalDOMRequest
. - The non-standard
Element.scrollTopMax
andElement.scrollLeftMax
read-only properties have been added (bug 766937). - The second parameter of
Blob()
, when set tonull
orundefined
, is now being handled as an empty dictionary (bug 7691119).
JavaScript
Number
objects now offerisFinite()
,toInteger()
, andisInteger()
methods. (bug 761480, bug 761495)- The Harmony spread operator is now supported in
Array
initializers (bug 574130). Note it is not yet supported in calls (bug 762363). - The experimental
TypedArray.prototype.move()
method has been added (available in Aurora and Nightly channels only) (bug 730873).
WebGL
No change
SVG
No change
MathML
- The
lspace
andrspace
attributes of<mo>
now correctly default tothickmathspace
.
Network
Developer tools
- 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).
Changes for add-on and Mozilla developers
Interface changes
nsIPrivateDOMEvent
has been merged into nsIDOMEvent
. (bug 761613)
New interfaces
Removed interfaces
The following interfaces have been removed.
Метки документа и участники
Метки:
Внесли вклад в эту страницу:
nikhilendrapns19,
mrstork,
teoli,
fscholz,
Nickolay,
ethertank,
Sheppy,
trevorh,
markg,
madarche,
aleth,
MattBrubeck,
myakura,
evilpie,
GPHemsley,
claudepache,
dbruant,
ziyunfei
Обновлялась последний раз:
nikhilendrapns19,