How is CSS style inheritance implemented?

I don’t know if this is the place to ask this, but I wanted to ask if anyone could point me to the part of the engine’s codebase where computed values and inheritance are handled.

Thanks!