Results 41 - 60 of 1,033

Syntax

The basic goal of the Cascading Stylesheet (CSS) language is to allow a browser engine to paint elements of the page with specific features, like colors, positioning, or decorations. The CSS syntax reflects this goal and its basic building blocks are:
Beginner beginner CSS Guide Web

Using CSS variables

CSS Variables are entities defined by CSS authors which contain specific values to be reused throughout a document. They are set using custom property notation (e.g. --main-color: black;) and are accessed using the var() function (e.g. color: var(--main-color);) .
CSS CSS Variables Guide Web

HTMLMediaElement.audioTracks

The HTMLMediaElement.audioTracks property is an AudioTrackList that represents the list of AudioTrack objects contained in the element.
API HTML DOM Property Web

Performance.clearMarks()

The clearMarks() method removes the named mark from the browser's performance entry buffer. If the method is called with no arguments, all performance entries with an entry type of "mark" will be removed from the performance entry buffer.
API Method Reference Web Performance

Performance.clearMeasures()

The clearMeasures() method removes the named measure from the browser's performance entry buffer. If the method is called with no arguments, all performance entries with an entry type of "measure" will be removed from the performance entry buffer.
API Method Reference Web Performance

Performance.clearResourceTimings()

The clearResourceTimings() method removes all performance entries with an entryType of "resource" from the browser's performance data buffer and sets the size of the performance data buffer to zero. To set the size of the browser's performance data buffer, use the Performance.setResourceTimingBufferSize() method.
API Method Reference Web Performance

Performance.getEntries()

The getEntries() method returns a list of PerformanceEntry objects for a given filter. The list's members (entries) can be created by making performance marks or measures (for example by calling the mark() method) at explicit points in time.
API Method Reference Web Performance

Performance.getEntriesByName()

The getEntriesByName() method returns a list of PerformanceEntry objects for the given name and type. The list's members (entries) can be created by making performance marks or measures (for example by calling the mark() method) at explicit points in time.
API Method Reference Web Performance

Performance.getEntriesByType()

The getEntriesByType() method returns a list of PerformanceEntry objects for a given type. The list's members (entries) can be created by making performance marks or measures (for example by calling the mark() method) at explicit points in time.
API Method Reference Web Performance

Performance.mark()

The mark() method creates a timestamp in the browser's performance entry buffer with the given name. The application defined timestamp can be retrieved by one of the Performance interface's getEntries*() methods (getEntries(), getEntriesByName() or getEntriesByType()).
API Method Reference Web Performance

Performance.measure()

The measure() method creates a named timestamp in the browser's performance entry buffer between two specified marks (known as the start mark and end mark, respectively). The named timestamp is referred to as a measure.
API Method Reference Web Performance

Performance.onresourcetimingbufferfull

The onresourcetimingbufferfull property is an event handler that will be called when the resourcetimingbufferfull event is fired. This event is fired when the browser's resource timing performance buffer is full.
API Property Reference Web Peformance

Performance.setResourceTimingBufferSize()

The setResourceTimingBufferSize() method sets the browser's resource timing buffer size to the specified number of "resource" performance entry type objects.
API Method Reference Web Performance

Using the Performance API

A fundamental requirement of web performance is a precise and consistent definition of time. The DOMHighResTimeStamp type (a double) is used by all performance interfaces to hold such time values. Additionally, there must be a way to create a timestamp for a specific point in time; this is done with the now() method.
Guide performance Performance Web Performance

PerformanceEntry

The PerformanceEntry object encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image).
API Interface Reference Web Performance

PerformanceEntry.duration

The duration property returns a timestamp that is the duration of the performance entry.
API Property Reference Web Performance

PerformanceEntry.entryType

The entryType property returns the performance entry's type. The valid entryType values are:
API Property Reference Web Performance

PerformanceEntry.name

The name property returns the name given to a performance entry when the entry was created (for example by calling performance.mark()).
API Property Reference Web Performance

PerformanceEntry.startTime

The startTime property returns the first recorded timestamp of the performance entry.
API Property Reference Web Performance

PerformanceEntry.toJSON()

The toJSON() method is a serializer; it returns a JSON representation of the performance entry object.
API Method Reference Web Performance