A capital gain on the sale of property located in CA is taxable by CA, even if the seller is a non-resident of CA. It is also taxable by the individual's state of residence at the time they receive the proceeds of the sale.
The resident state will give a credit for the tax paid to CA, so as to avoid double taxation.
**Answers are correct to the best of my ability but do not constitute tax or legal advice.