files/en-us/mozilla/firefox/releases/108/index.md
This article provides information about the changes in Firefox 108 that will affect developers. Firefox 108 was released on December 13, 2022.
height & width attributes when it is a child of a {{HTMLElement("picture")}} element.
This functionality can be configured via the dom.picture_source_dimension_attributes.enabled preference which is now set to true by default (Firefox bug 1795953).layout.css.trig.enabled preference set to true by default.
This allows the use of sin(), cos(), tan(), asin(), acos(), atan(), and atan2() functions (Firefox bug 1774589, Firefox bug 1787070).<calc-constant> type is implemented to allow for well-known constants such as pi and e within math functions (Firefox bug 1682444, Firefox bug 1787070).layout.css.container-queries.enabled preference, which is set to false by default.
Setting this preference to true allows the use of cqw, cqh, cqi, cqb, cqmin, and cqmax units of length which are relative to the size of a query container.
For more information on these units, see the CSS Container Queries documentation (Firefox bug 1744231).font-variant-emoji property is now supported via the layout.css.font-variant-emoji.enabled preference, which is set to false by default. This property allows you to set a default presentation style for displaying emojis (Firefox bug 1461589).No notable changes
Content-Security-Policy HTTP header directives style-src-elem and style-src-attr are now supported.
A server can use these to specify valid sources for stylesheet <style> elements and <link> elements with rel="stylesheet", and for styles applied to individual elements, respectively (Firefox bug 1529338).Content-Security-Policy HTTP header directives script-src-elem and script-src-attr are now supported.
A server can use these to specify valid sources for JavaScript <script> elements, and for inline script event handlers like onclick, respectively (Firefox bug 1529337).Content-Security-Policy violation reports now include effective-directive and status-code properties.
For more information, see Violation report syntax (Firefox bug 1192684).navigator.requestMIDIAccess() will prompt users with active MIDI devices to install a Site Permission Add-On, which is required to enable the API.
For more information see Firefox bug 1795025."warning" was renamed to "warn" (Firefox bug 1797115).script.evaluate and script.callFunction with a sandbox name equal to an empty string, the evaluation will now be done using the default realm (Firefox bug 1793589).browsingContext.domContentLoaded event (Firefox bug 1756610).tiltX, tiltY and twist properties of pointer actions for WebDriver:PerformActions (Firefox bug 1793832).WebDriver:GetElementText wasn't returning the element text for pretty-printed XML (Firefox bug 1794099).HTMLDocument is no longer serialized as a WebElement reference (Firefox bug 1793920).WebDriver:NewWindow now opens a window with an about:blank tab instead of about:newtab (Firefox bug 1533058).