fix border-boxing in FF and classify some log as debug log