puppeteer/new-docs/puppeteer.protocol.css.getbackgroundcolorsresponse.md

21 lines
1.4 KiB
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Protocol](./puppeteer.protocol.md) &gt; [CSS](./puppeteer.protocol.css.md) &gt; [GetBackgroundColorsResponse](./puppeteer.protocol.css.getbackgroundcolorsresponse.md)
## Protocol.CSS.GetBackgroundColorsResponse interface
<b>Signature:</b>
```typescript
export interface GetBackgroundColorsResponse
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [backgroundColors](./puppeteer.protocol.css.getbackgroundcolorsresponse.backgroundcolors.md) | string\[\] | 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). |
| [computedFontSize](./puppeteer.protocol.css.getbackgroundcolorsresponse.computedfontsize.md) | string | The computed font size for this node, as a CSS computed value string (e.g. '12px'). |
| [computedFontWeight](./puppeteer.protocol.css.getbackgroundcolorsresponse.computedfontweight.md) | string | The computed font weight for this node, as a CSS computed value string (e.g. 'normal' or '100'). |