puppeteer/new-docs/puppeteer.protocol.css.getbackgroundcolorsresponse.backgroundcolors.md
2020-07-13 14:01:35 +01:00

971 B

Home > puppeteer > Protocol > CSS > GetBackgroundColorsResponse > backgroundColors

Protocol.CSS.GetBackgroundColorsResponse.backgroundColors property

The range of background colors behind this element, if it contains any visible text. If no visible text is present, this will be undefined. In the case of a flat background color, this will consist of simply that color. In the case of a gradient, this will consist of each of the color stops. For anything more complicated, this will be an empty array. Images will be ignored (as if the image had failed to load).

Signature:

backgroundColors?: string[];