Not true. Mexico gave Texas a dispensation on slavery. And Texas declared independence along with something like 5 other Mexican states, including Yucatan and Zacatecas due to Santa Anna tearing up the Constitution and making himself a dictator. Did Yucatan declare independence over slavery? How about Zacatecas?