From my research it seems that a green card holder who sells a property outside the U.S. would be required to pay capital gains tax. Can they avoid the tax by selling it to their spouse (U.S. citizen) prior to applying for a green card? It's their intention to sell soon thereafter, however the new purchase price would be close to the selling price, thereby almost all capital gains?