The equivalent is for a print designer to design something in Illustrator for a certain size and type of paper and never actually printing the design on that paper to see how it turns out.
I'm in the school of thought that a web designer should know HTML/CSS and how browsers render those elements as a web page. They don't necessarily need front-end developer level knowledge, but if they don't at least know the basics of how browsers work then they'll always try designs that are not workable.
Personally, if I ran a web design curriculum, I would require HTML/CSS education first, then start on design. But it's often the reverse, or worse in that designers are taught all kinds of different avenues of design, but web design is that kid in the corner no one picks for dodgeball. I've interviewed many a designer with nice school projects but not one web project in the portfolio.