Skip to content

Commit 17a8309

Browse files
committed
update readme to match new box hierarchy
1 parent ec4ee32 commit 17a8309

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,11 @@ class HTMLElement {
545545
546546
class Box {
547547
isInline(): this is Inline;
548-
isBlockContainer(): this is BlockContainer;
549548
isFormattingBox(): this is FormattingBox;
549+
isBlockContainerOfInlines(): this is BlockContainerOfInlines;
550+
isBlockContainerOfBlocks(): this is BlockContainerOfBlocks;
551+
isReplacedBox(): this is ReplacedBox;
552+
isBlockContainer(): this is BlockContainer;
550553
getBorderArea(): BoxArea;
551554
getPaddingArea(): BoxArea;
552555
getContentArea(): BoxArea;
@@ -556,10 +559,14 @@ class Inline extends Box;
556559
557560
abstract class FormattingBox extends Box;
558561
559-
class BlockContainer extends FormattingBox;
562+
class BlockContainerOfInlines extends FormattingBox;
563+
564+
class BlockContainerOfBlocks extends FormattingBox;
560565
561566
class ReplacedBox extends FormattingBox;
562567
568+
type BlockContainer = BlockContainerOfInlines | BlockContainerOfBlocks;
569+
563570
class BoxArea {
564571
x: number;
565572
y: number;

0 commit comments

Comments
 (0)