In a combined x-ray diffraction and density functional theory based study the bonding properties of several halogenide boracites have been investigated. We show that DFT calculations reliably reproduce the small spontaneous deformations of non-cubic boracites and that they therefore can be used to predict pressure-induced structural changes. Specifically, we predict the compressibility and the pressure-induced deformation of Mg-Cl boracite. Earlier findings concerning an unusual bond length in Co-Cl boracite are challenged. The arrangement of the halogenide ions and metal cations along chains running through the structure is rationalized in terms of electronegativity differences. We also show that the substitution of the halogenide or metal ions has no significant effect on the B-O bonds.