Bug 969413 - Make the edit mode bottom margin rule apply only to the relevant elements r=julienw

(cherry picked from commit a0d1ec4a065613b4d8f10e3d07a0163631e0ebe8)