recursal/MDN huggingface dataset:
CSSPrimitiveValue: getRectValue() method
========================================

**Deprecated:** This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

 The **`getRectValue()`** method of the
 `CSSPrimitiveValue` interface is used to get a rect value. If this CSS
 value doesn't contain a rect value, a `DOMException` is raised.
 Modification to the corresponding style property can be achieved using the
 `Rect` interface.


**Note:** This method was part of an attempt to create a typed CSS Object Model. This attempt has been abandoned, and most browsers do
 not implement it.


To achieve your purpose, you can use:

* the untyped CSS Object Model, widely supported, or
* the modern CSS Typed Object Model API, less supported and considered experimental.

Syntax
------


```js
getRectValue()
```

### Parameters

None.

### Return value

A `Rect` object representing the rect value.

### Exceptions

| **Type** | **Description** |
| --- | --- |
| `DOMException` | An `INVALID_ACCESS_ERR` is raised if the CSS value doesn't contain a Rect value. (i.e. this is not `CSS_RECT`). |

Examples
--------


```js
const cs = window.getComputedStyle(document.getElementById("clippedDiv"));
const cssValue = cs.getPropertyCSSValue("clip");
console.log(cssValue.getRectValue());
```

Specifications
--------------

 This feature was originally defined in the DOM Style Level 2 specification, but has been dropped from any
 standardization effort since then.

It has been superseded by a modern, but incompatible, CSS Typed Object Model API that is now on the standard track.

Browser compatibility
---------------------

BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.
CSSPrimitiveValue: getCounterValue() method
===========================================

**Deprecated:** This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

 The **`getCounterValue()`** method of the
 `CSSPrimitiveValue` interface is used to get the counter
 value. If this CSS value doesn't contain a counter value, a `DOMException`
 is raised. Modification to the corresponding style property can be achieved using the
 `Counter` interface.


**Note:** This method was part of an attempt to create a typed CSS Object Model. This attempt has been abandoned, and most browsers do
 not implement it.


To achieve your purpose, you can use:

* the untyped CSS Object Model, widely supported, or
* the modern CSS Typed Object Model API, less supported and considered experimental.

Syntax
------


```js
getCounterValue()
```

### Parameters

None.

### Return value

A `Counter` object representing the counter value.

### Exceptions

| **Type** | **Description** |
| --- | --- |
| `DOMException` | An `INVALID_ACCESS_ERR` is raised if the CSS value doesn't contain a `Counter` value (e.g. this is not `CSS_COUNTER`). |

Specifications
--------------

 This feature was originally defined in the DOM Style Level 2 specification, but has been dropped from any
 standardization effort since then.

It has been superseded by a modern, but incompatible, CSS Typed Object Model API that is now on the standard track.

Browser compatibility
---------------------

BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.
CSSPrimitiveValue: getStringValue() method
==========================================

**Deprecated:** This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

 The **`getStringValue()`** method of the
 `CSSPrimitiveValue` interface is used to get a string value. If this CSS
 value doesn't contain a string value, a `DOMException` is raised.


**Note:** This method was part of an attempt to create a typed CSS Object Model. This attempt has been abandoned, and most browsers do
 not implement it.


To achieve your purpose, you can use:

* the untyped CSS Object Model, widely supported, or
* the modern CSS Typed Object Model API, less supported and considered experimental.

Syntax
------


```js
getStringValue()
```

### Parameters

None.

### Return value

A `string` value.

### Exceptions

| **Type** | **Description** |
| --- | --- |
| `DOMException` | An `INVALID_ACCESS_ERR` is raised if the CSS value doesn't contain a string value. |

Examples
--------


```js
const cs = window.getComputedStyle(document.body);
const cssValue = cs.getPropertyCSSValue("display");
console.log(cssValue.getStringValue());
```

Specifications
--------------

 This feature was originally defined in the DOM Style Level 2 specification, but has been dropped from any
 standardization effort since then.

It has been superseded by a modern, but incompatible, CSS Typed Object Model API that is now on the standard track.

Browser compatibility
---------------------

BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.
DelayNode: delayTime property
=============================

The `delayTime` property of the `DelayNode` interface is an a-rate `AudioParam` representing the amount of delay to apply.

`delayTime` is expressed in seconds, its minimal value is `0`, and its maximum value is defined by the `maxDelayTime` argument of the `BaseAudioContext.createDelay` method that created it.

**Note:** Though the `AudioParam` returned is read-only, the value it represents is not.

Value
-----

An `AudioParam`.

Examples
--------

See `BaseAudioContext.createDelay()` for example code.

Specifications
--------------

| Specification |
| --- |
| Web Audio API # dom-delaynode-delaytime |

Browser compatibility
---------------------

BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.

See also
--------

* Using the Web Audio API
DelayNode: DelayNode() constructor
==================================

 The **`DelayNode()`**
 constructor of the Web Audio API
 creates a new `DelayNode` object with a delay-line; an AudioNode
 audio-processing module that causes a delay between the arrival of an input data, and
 its propagation to the output.

Syntax
------


```js
new DelayNode(context)
new DelayNode(context, options)
```

### Parameters

`context`

A reference to an `AudioContext` or `OfflineAudioContext`.

`options` Optional

An object specifying the delay node options. Can contain the following members:

`delayTime`

 The initial delay time for the node, in seconds. The
 default is `0`.


`maxDelayTime`

 The maximum delay time for the node, in seconds.
 Defaults to `1`.


`channelCount`

 Represents an integer used to determine how many channels are used when up-mixing and down-mixing connections to any inputs to the node. (See
 `AudioNode.channelCount` for more information.) Its usage and precise
 definition depend on the value of `channelCountMode`.


`channelCountMode`

 Represents an enumerated value describing the way channels must be matched between
 the node's inputs and outputs. (See `AudioNode.channelCountMode` for more
 information including default values.)


`channelInterpretation`

 Represents an enumerated value describing the meaning of the channels. This
 interpretation will define how audio up-mixing and down-mixing will happen.
 The possible values are `"speakers"` or `"discrete"`. (See
 `AudioNode.channelCountMode` for more information including default
 values.)



### Return value

A new `DelayNode` object instance.

Examples
--------


```js
const audioCtx = new AudioContext();
const delayNode = new DelayNode(audioCtx, {
  delayTime: 0.5,
  maxDelayTime: 2,
});
```

Specifications
--------------

| Specification |
| --- |
| Web Audio API # dom-delaynode-constructor-delaynode |

Browser compatibility
---------------------

BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.
GeolocationCoordinates: speed property
======================================

**Secure context:** This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The **`speed`** read-only property of the `GeolocationCoordinates` interface is a `double` representing the velocity of the device in meters per second. This value is `null` if the implementation is not able to measure it.

Value
-----

A `double` representing the velocity of the device in meters per second.

Specifications
--------------

| Specification |
| --- |
| Geolocation API # speed-attribute |

Browser compatibility
---------------------

BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.

See also
--------

* Using the Geolocation API
* `GeolocationCoordinates`
GeolocationCoordinates: latitude property
=========================================

**Secure context:** This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The **`latitude`** read-only property of the `GeolocationCoordinates` interface is a `double` representing the latitude of the position in decimal degrees.

Value
-----

A `double` representing the latitude of the position in decimal degrees.

Specifications
--------------

| Specification |
| --- |
| Geolocation API # latitude-longitude-and-accuracy-attributes |

Browser compatibility
---------------------

BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.

See also
--------

* Using the Geolocation API
* `GeolocationCoordinates`
GeolocationCoordinates: altitudeAccuracy property
=================================================

**Secure context:** This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The **`altitudeAccuracy`** read-only property of the `GeolocationCoordinates` interface is a strictly positive `double` representing the accuracy, with a 95% confidence level, of the `altitude` expressed in meters. This value is `null` if the implementation doesn't support measuring altitude.

Value
-----

 A positive `double` representing the accuracy, with a 95% confidence level,
 of the `altitude` expressed in meters.

Specifications
--------------

| Specification |
| --- |
| Geolocation API # altitude-and-altitudeaccuracy-attributes |

Browser compatibility
---------------------

BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.

See also
--------

* Using the Geolocation API
* `GeolocationCoordinates`
GeolocationCoordinates: heading property
========================================

**Secure context:** This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The **`heading`** read-only property of the `GeolocationCoordinates` interface is a `double` representing the direction in which the device is traveling. This value, specified in degrees, indicates how far off from heading due north the device is. `0` degrees represents true north, and the direction is determined clockwise (which means that east is `90` degrees and west is `270` degrees). If `GeolocationCoordinates.speed` is `0`, `heading` is `NaN`. If the device is not able to provide heading information, this value is `null`.

Value
-----

A `double` representing the direction in which the device is traveling.

Specifications
--------------

| Specification |
| --- |
| Geolocation API # heading-attribute |

Browser compatibility
---------------------

BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.

See also
--------

* Using the Geolocation API
* `GeolocationCoordinates`
GeolocationCoordinates: accuracy property
=========================================

**Secure context:** This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The **`accuracy`** read-only property of the `GeolocationCoordinates` interface is a strictly positive `double` representing the accuracy, with a 95% confidence level, of the `GeolocationCoordinates.latitude` and `GeolocationCoordinates.longitude` properties expressed in meters.

Value
-----

 A positive `double` representing the accuracy, with a 95% confidence level,
 of the `GeolocationCoordinates.latitude` and
 `GeolocationCoordinates.longitude` properties expressed in meters.

Specifications
--------------

| Specification |
| --- |
| Geolocation API # latitude-longitude-and-accuracy-attributes |

Browser compatibility
---------------------

BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.

See also
--------

* Using the Geolocation API
* `GeolocationCoordinates`
GeolocationCoordinates: altitude property
=========================================

**Secure context:** This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The **`altitude`** read-only property of the `GeolocationCoordinates` interface is a `double` representing the altitude of the position in meters above the WGS84 ellipsoid (which defines the nominal sea level surface). This value is `null` if the implementation cannot provide this data.

Value
-----

 A `double` representing the altitude of the position in meters above the WGS84
 ellipsoid.

Specifications
--------------

| Specification |
| --- |
| Geolocation API # altitude-and-altitudeaccuracy-attributes |

Browser compatibility
---------------------

BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.

See also
--------

* Using the Geolocation API
* The `GeolocationCoordinates` interface it belongs to.
* National Imagery and Mapping Agency Technical Report 8350.2, Third Edition (WGS84)
BeforeInstallPromptEvent: prompt() method
=========================================

**Experimental:** **This is an experimental technology**  
Check the Browser compatibility table carefully before using this in production.

**Non-standard:** This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

 The **`prompt()`** method of the `BeforeInstallPromptEvent` interface allows a developer to show the
 install prompt at a time of their own choosing. Typically this will be called in the event handler for the app's custom install UI.

This method must be called in the event handler for a user action (such as a button click) and may only be called once on a given `BeforeInstallPromptEvent` instance.

Syntax
------


```js
prompt()
```

### Parameters

None.

### Return value

A `Promise` resolving to an object containing the following properties:

`outcome` 
Experimental

Non-standard

A string indicating whether the user chose to install the app or not. It must be one of the following values:

* `"accepted"`: The user installed the app.
* `"dismissed"`: The user did not install the app.

`platform` 
Experimental

Non-standard

If the user chose to install the app, this is a string naming the selected platform, which is one of the values from the `BeforeInstallPromptEvent.platforms` property. If the user chose not to install the app, this is an empty string.

Examples
--------

See the example for the `BeforeInstallPromptEvent` interface.

Browser compatibility
---------------------

BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.

See also
--------

* Making PWAs installable
* How to provide your own in-app install experience on web.dev (2021)
BeforeInstallPromptEvent: BeforeInstallPromptEvent() constructor
================================================================

**Experimental:** **This is an experimental technology**  
Check the Browser compatibility table carefully before using this in production.

**Non-standard:** This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

The **`BeforeInstallPromptEvent()`** constructor creates a new `BeforeInstallPromptEvent` object.

Syntax
------


```js
new BeforeInstallPromptEvent(type)
new BeforeInstallPromptEvent(type, eventInitDict)
```

### Parameters

`type`

A string with the name of the event, set to `beforeinstallpromptevent`.

`eventInitDict` Optional

An object with a single optional property `platforms`, which is an array of strings, listing the platforms on which the event will be dispatched.

Specifications
--------------

#### No specification found

No specification data found for `api.BeforeInstallPromptEvent.BeforeInstallPromptEvent`.  
Check for problems with this page or contribute a missing `spec_url` to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.

Browser compatibility
---------------------

BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.

See also
--------

* Making PWAs installable
* How to provide your own in-app install experience on web.dev (2021)
BeforeInstallPromptEvent: userChoice property
=============================================

**Experimental:** **This is an experimental technology**  
Check the Browser compatibility table carefully before using this in production.

**Non-standard:** This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

The **`userChoice`** property of the `BeforeInstallPromptEvent` interface represents the installation choice that the user made, when they were prompted to install the app.

Value
-----

A `Promise` which resolves to an object containing two properties:

`outcome` 
Experimental

Non-standard

A string indicating whether the user chose to install the app or not. It must be one of the following values:

* `"accepted"`: The user installed the app.
* `"dismissed"`: The user did not install the app.

`platform` 
Experimental

Non-standard

If the user chose to install the app, this is a string naming the selected platform, which is one of the values from the `BeforeInstallPromptEvent.platforms` property. If the user chose not to install the app, this is an empty string.

Browser compatibility
---------------------

BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.

See also
--------

* Making PWAs installable
* How to provide your own in-app install experience on web.dev (2021)
BeforeInstallPromptEvent: platforms property
============================================

**Experimental:** **This is an experimental technology**  
Check the Browser compatibility table carefully before using this in production.

**Non-standard:** This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

The **`platforms`** property of the `BeforeInstallPromptEvent` interface lists the platforms on which the event was dispatched. This is provided for user agents that want to present a choice of versions to the user such as, for example, "web" or "play" which would allow the user to choose between a web version or an Android version.

Value
-----

An array of strings, in which each string identifies a target platform for the installation.

Browser compatibility
---------------------

BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.

See also
--------

* Making PWAs installable
* How to provide your own in-app install experience on web.dev (2021)
StyleSheetList: item() method
=============================

The **`item()`** method of the `StyleSheetList` interface returns a single `CSSStyleSheet` object.

Syntax
------


```js
item(index)
```

### Parameters

`index`

An integer which is the index of the item in the collection to be returned.

### Return value

A `CSSStyleSheet` object, or `null` if one does not exist for this index.

Examples
--------

In the following example, a for loop prints each individual `CSSStyleSheet` object to the console, by calling `item` with the value of `i`.


```js
let list = document.styleSheets;

for (let i = 0; i < list.length; i++) {
  console.log(list.item(i));
}
```

Specifications
--------------

| Specification |
| --- |
| CSS Object Model (CSSOM) # dom-stylesheetlist-item |

Browser compatibility
---------------------

BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.
StyleSheetList: length property
===============================

The **`length`** read-only property of the `StyleSheetList` interface returns the number of `CSSStyleSheet` objects in the collection.

Value
-----

An integer indicating the number of items in the collection.

Examples
--------

In the following example, `length` is printed to the console, and also used in a for loop to print each individual `CSSStyleSheet` object to the console.


```js
let length = document.styleSheets.length;
console.log(length);

for (let i = 0; i < length; i++) {
  console.log(document.styleSheets[i]);
}
```

Specifications
--------------

| Specification |
| --- |
| CSS Object Model (CSSOM) # dom-stylesheetlist-length |

Browser compatibility
---------------------

BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.
XSLTProcessor: reset() method
=============================

The `reset()` method of the `XSLTProcessor` interface removes all parameters (`<xsl:param>`) and the XSLT stylesheet from the processor. The `XSLTProcessor` will then be in its original state when it was created.

Syntax
------


```js
reset()
```

### Parameters

None.

### Return value

None (`undefined`).

Examples
--------

Specifications
--------------

| Specification |
| --- |
| DOM Standard # dom-xsltprocessor-reset |

Browser compatibility
---------------------

BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.

See also
--------

* `XSLTProcessor.getParameter()`
* `XSLTProcessor.setParameter()`
* `XSLTProcessor.removeParameter()`
* `XSLTProcessor.clearParameters()`