What's the difference between a block-level box and a principal block-level box?

后端 未结 2 1521
-上瘾入骨i
-上瘾入骨i 2020-12-15 01:10

To cite the spec:

Block-level boxes are boxes that participate in a block formatting context. Each block-level element generates a principal block-l

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-15 01:36

    principal block is essentially what your 'markup' represents, for mechanical purposes, some 'principal' elements needs other elements to be rendered correctly, those are some-kind of 'artifacts' needed by a browser to display extra ( a scroll bar from a textarea for example )

提交回复
热议问题