If you are attending as a guest then you may wear whatever pants you want. If you are afraid of being out of place you can always ask the bride or the groom. However, if you are part of the wedding party you definitely should run it by the bride or the groom.