- Sprite sheet
- A single image file containing multiple smaller images packed together into a grid or sequence. In web development, CSS background-position offsets are used to display individual sprites by shifting which portion of the sheet is visible within a fixed-size element.
- background-position
- A CSS property specifying the offset of a background image within its element's box. For sprite sheets, background-position is set to a negative x and y value that shifts the sheet so only the desired sprite is visible within the element's defined width and height.
- Texture atlas
- A single image file containing multiple textures or sprites, used by GPU rendering pipelines (WebGL, Unity, Phaser, etc.) to reduce the number of texture sampler switches during drawing. Functionally identical to a CSS sprite sheet, but accessed via UV coordinates rather than CSS background-position offsets.
- Packing algorithm
- The algorithm used to arrange multiple sprites into the smallest possible sheet. Row-based packing places sprites sequentially across rows, advancing to a new row when a row is full. More complex bin-packing algorithms allow tighter arrangements but produce less predictable layouts.
- HTTP/1.1 multiplexing
- Under HTTP/1.1, browsers open a limited number of parallel TCP connections per domain (typically 6). Each image requires its own request, meaning 30 icons block other resources behind connection limits. CSS sprite sheets combine all icons into one request, eliminating this bottleneck. HTTP/2 solved this with true request multiplexing.
- DPR (Device Pixel Ratio)
- The ratio of physical screen pixels to logical CSS pixels on a display. A DPR of 1 means one CSS pixel equals one physical pixel. A DPR of 2 (retina) means one CSS pixel is rendered by 4 physical pixels. Non-integer DPRs like 1.5 or 2.5 are common on Android and can cause sub-pixel bleed in tightly packed sprite sheets without padding.