To add what @marqzho said, that is correct. Also for appreciated prop on date of gift, it's carryover holding period as well.
Example on devalued gifted loss: I bought stock for 100 (my basis = A/B), gifted to you when the FMV of the stock was 80, and you decided to sell the stock for 110. Since my A/B < FMV, your selling price (SP) will determine the tax effects:
110 SP (SP >A/B)
Use original A/B to determine gain. $10 long-term cap gain
100 thru 80 SP (A/B greater than or equal to SP greater than or equal to FMV)
No gain or loss
70 SP (SP < FMV)
Use FMV basis to determine loss. $10 short-term cap loss
I think this applies to property transactions as well. Now if you are talking about related-party prop transactions, there's a slight tweak to the calculation.