I agree. And if a teacher or the principal finds the clothing offensive or disruptive to the work environment (a reminder: they ARE there to learn), the student will be sent home to change.
This would be excellent training for the real world work environment where exactly the same thing would happen.
Please define offensive or disruptive.
What you find offensive, others may find acceptable.
Lacking school uniforms, any non-revealing outfit should be acceptable.