Skip to content

listing-2.21.html & listing-2.22.html  #15

@Dexter1996777

Description

@Dexter1996777

Hello everyone!
Could you explain me please how calculation works in listing-2.21.html?

Does a browser first calculate font-size by multiplying default font-size 16 px by 2em, then a browser calculates line-height on the basis of calculated font size?

One more question, please.
In listing-2.22.html, line-height and font-size are calculated on the basis of default font-size (16px)?
As for line-height: 2em, em relates to the ancestor's () font-size (16px)?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions