What is the definition of “the baseline of parent box”?

前端 未结 4 1460
星月不相逢
星月不相逢 2021-02-19 05:05

I have trouble understanding the following excerpt from 10 Visual formatting model details – W3C.

The excerpt:

baseline: Align

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-19 06:11

    The spec tells you what the parent box refers to just a couple of paragraphs above:

    The following values only have meaning with respect to a parent inline element, or to the strut of a parent block container element.

    So the parent box refers to the box generated by the parent element, and you calculate the baseline of the parent box just like you would any other element.

提交回复
热议问题