This is currently implemented in Servo, but it is not a trivial problem. It was only added in the past several months, if I recall correctly (pcwalton will have to clarify). This is but a demonstration engine for educational purposes - kind of like Featherweight Java.