"The states are prohibited from passing ex post facto laws by clause 1 of Article I, Section 10. This is one of the relatively few restrictions that the United States Constitution made to both the power of the federal and state governments before the Fourteenth Amendment." - wikipedia
What California is doing is unconstitutional and they should be slapped, hard.