The following media query has been working reliably for me with receipt printers:
@media print and (max-width: 10cm) { }
On a somewhat related note: Unfortunately, this isn't working (customers have to manually set margins to none or minimal)
@page { margin: 0; }
Happy coding