I had something similar, then I dug into it and found that my CSS was not specified correctly. After looking into the spec, I realized that what I thought Firefox was doing wrong, was actually the correct behavior. Chrome and Edge just covered up my mistake is all.