Part 4: Fix the case when changing the display from none.
Add one extra branch if we have before-change style but its display
is none, and the new style is not display:none. Also, we add an extra
subtest if we use the container query to change the display property.
Differential Revision: https://phabricator.services.mozilla.com/D208572
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1834876
gecko-commit: 4a70e54db9b5ed46ae8fc610bc4efed17a590c4f
gecko-reviewers: layout-reviewers, firefox-style-system-reviewers, emilio