← Back to Emulation domain

Emulation.setDefaultBackgroundColorOverride

Sets or clears an override of the default background color of the frame. This override is used if the content does not specify one.

Domain: Emulation stable

Parameters

NameTypeDescription
color (optional)DOM.RGBARGBA of the default background color. If not specified, any existing override will be cleared.

Example Request

{
  "id": 1,
  "method": "Emulation.setDefaultBackgroundColorOverride"
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Emulation.setDefaultBackgroundColorOverride');
console.log(result);