From bcbe89a0f6a3627ef7bb01be848134beb834b11c Mon Sep 17 00:00:00 2001 From: paulmeyer Date: Wed, 10 Dec 2014 16:43:48 -0800 Subject: [PATCH] Added documentation for the |allowtransparency| webview attribute. Previously it was missing from the webview tag documentation. Review URL: https://codereview.chromium.org/791163002 Cr-Commit-Position: refs/heads/master@{#307807} --- .../common/extensions/docs/templates/intros/webview_tag.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/chrome/common/extensions/docs/templates/intros/webview_tag.html b/chrome/common/extensions/docs/templates/intros/webview_tag.html index c9d07b363724..3355230958e3 100644 --- a/chrome/common/extensions/docs/templates/intros/webview_tag.html +++ b/chrome/common/extensions/docs/templates/intros/webview_tag.html @@ -106,13 +106,23 @@ onload = function() {

+

allowtransparency

+
+
<webview id="foo" src="http://www.google.com/" style="width:640px; height:480px" allowtransparency="on"></webview>
+
+
+

+ If "on", transparent elements within the webview will be shown as transparent. Without allowtransparency enabled, there will be no transparency within the webview, even if elements exist that are specified as transparent. +

+
+

autosize

<webview id="foo" src="http://www.google.com/" style="width:640px; height:480px" autosize="on" minwidth="576" minheight="432"></webview>

- If "on", the webview will container will automatically resize within the bounds specified + If "on", the webview container will automatically resize within the bounds specified by the attributes minwidth, minheight, maxwidth, and maxheight. These contraints do not impact the webview UNLESS autosize is enabled. -- 2.11.4.GIT