This is illegal in Spain since October 1st of this year
This is due to a new regulation stating that the amber light cannot overlap with the green light for pedestrians. Since October 1st, local authorities have been required to change their traffic light sequences; otherwise, they face fines.