When I started learning css, I genuinely though adding semicolon to the last property is wrong. My reasoning was: a) you are increasing size of your file for no reason b) you are making the browser look for a start of another property (which obviously isn't there, so it decreases performance)
One day I noticed javascript is automaticaly adding a semicolon at the end of line... and css does similiar thing.
View all comments
Show parent comment
69
u/[deleted] Apr 07 '20
Semicolon not required on last property in a block.
It is missing "position: relative" though.