pixel

The CSS absolute length unit px, defined as 1/96 of an inch and roughly one dot on a standard-density screen.

In more detail

A CSS pixel is not always one physical dot: high-density screens use several physical pixels per CSS pixel, a ratio called the device pixel ratio. Design tools usually give sizes in pixels, and token pipelines convert them to rem for the web. The same word also means one dot of an image, which is what visual regression tests compare.

Example

In the browser: A CSS pixel is a reference size, not always one physical dot: on a phone with a dense screen one CSS pixel may cover several device pixels. The rendering pipeline ends by painting and compositing pixels.

Related terms

Taught in

References