From ce86e81aa622f4bd60b18cce1a6cd727ade6bcb0 Mon Sep 17 00:00:00 2001 From: Jeremy Rose Date: Tue, 8 Feb 2022 03:59:28 -0800 Subject: [PATCH] docs: clarify meaning of cssOrigin (#32753) --- docs/api/web-contents.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index c5500d0acb8f..d4a1233c5976 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -1101,7 +1101,7 @@ Returns `string` - The user agent for this web page. * `css` string * `options` Object (optional) - * `cssOrigin` string (optional) - Can be either 'user' or 'author'; Specifying 'user' enables you to prevent websites from overriding the CSS you insert. Default is 'author'. + * `cssOrigin` string (optional) - Can be either 'user' or 'author'. Sets the [cascade origin](https://www.w3.org/TR/css3-cascade/#cascade-origin) of the inserted stylesheet. Default is 'author'. Returns `Promise` - A promise that resolves with a key for the inserted CSS that can later be used to remove the CSS via `contents.removeInsertedCSS(key)`.