From e5a2a359bbed00d71224df92117f34a2cb3a7de5 Mon Sep 17 00:00:00 2001 From: Shihua Zheng Date: Fri, 23 Jul 2021 13:10:31 -0700 Subject: [PATCH] Enforce top/bottom sticky ad size limit (#35370) --- extensions/amp-ad/0.1/amp-ad.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/amp-ad/0.1/amp-ad.css b/extensions/amp-ad/0.1/amp-ad.css index 33a167dc46bd..cd9dd24b1df3 100644 --- a/extensions/amp-ad/0.1/amp-ad.css +++ b/extensions/amp-ad/0.1/amp-ad.css @@ -153,6 +153,7 @@ amp-ad[sticky] { amp-ad[sticky='top'] { width: 100% !important; + max-height: 20% !important; background: #fff; padding-bottom: 5px; } @@ -160,7 +161,7 @@ amp-ad[sticky='top'] { amp-ad[sticky='bottom'] { max-width: 100%; width: 100% !important; - max-height: 20%; + max-height: 20% !important; padding-bottom: env(safe-area-inset-bottom, 0px); background: #fff; bottom: 0;