Fix: use regexp for matching style margin
Fix Bug: transition being overwrittened