user agent
The program that fetches and displays web content for a user, normally a web browser.
In more detail
Standards describe what the user agent must do, for example applying forced colors or building the accessibility tree. Browser engines differ in small rendering details, which is why visual tests pin one browser version.
Related terms
- forced colors mode — A browser mode, turned on by settings such as Windows Contrast Themes, that replaces a page's colours with a small palette the user chose.
- accessibility tree — A simplified version of the DOM tree that the browser builds for assistive technology, listing each element's role, name and state.
- Playwright — Microsoft's open-source tool for automating Chromium, Firefox and WebKit browsers, widely used for end-to-end and visual tests.
Taught in
- Dark Mode Strategies: System Preference, Class & High-Contrast — Design Systems & Component Engineering
- Visual Regression Testing: Playwright & Snapshot Differencing — Design Systems & Component Engineering