Normally a contract will say that the seller is selling the property "free and clear of all liens and encumbrances" In other words any back taxes mortgages etc get cleaned up at settlement from the SELLERS funds.
However it is whatever you can negotiate. I often offer the seller a net price and then I pay the back taxes etc. I then try to negotiate any bills that are due and I get the advantage of any savings.