I am a typographer giving a go at coding a website for a magazine.
I would like to know what does the line-height property refer to exactly when setting text. Is it the same as leading (distance from baseline to baseline)? Or, does it refer to the size of the text—in which case, does it measure the text based on its x-height, cap-height or descender to ascender and multiplies it by whatever the value of the property is?
I attached an image for those who may not be familiar with these typographic terms

Source: https://fonts.google.com/knowledge/glossary/line_height_leading