From eefa893f5a08aa0ea8f801f6a2456d65da7254f7 Mon Sep 17 00:00:00 2001 From: Ray Lin Date: Tue, 21 Feb 2017 10:13:48 +0800 Subject: [PATCH] Bug 1326141 - Make .collapse property affect height computation. r=MattN MozReview-Commit-ID: BE5U8iKhYsO --HG-- extra : rebase_source : c5a12ab8bdc20c0635592bff1568ecd6598199b9 --- browser/extensions/formautofill/content/formautofill.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/browser/extensions/formautofill/content/formautofill.css b/browser/extensions/formautofill/content/formautofill.css index 0ac405e7cf4e..78d10b0946f9 100644 --- a/browser/extensions/formautofill/content/formautofill.css +++ b/browser/extensions/formautofill/content/formautofill.css @@ -12,6 +12,12 @@ -moz-binding: url("chrome://formautofill/content/formautofill.xml#autocomplete-profile-listitem"); } +/* Treat @collpased="true" as display: none similar to how it is for XUL elements. + * https://developer.mozilla.org/en-US/docs/Web/CSS/visibility#Values */ +#PopupAutoComplete > richlistbox > richlistitem[originaltype="autofill-profile"][collapsed="true"] { + display: none; +} + #PopupAutoComplete[firstresultstyle="autofill-profile"] { min-width: 150px !important; }