I consider both of those to be a 'short form'
I think REGEX done with 4 passes should catch all (not tested)
margin\: 1em 2em 3em 4em;
F: margin:\b(.+?)\b(.+?)\b(.+?)\b(.+?)\;*
R: margin-top:\1; margin-right:\2; margin-bottom: \3; margin-left:\4;
Note: the 'short form' is not limited to
margin
I like Jellby's idea. Send it back as a 'defective EPUB reader'