Skip to content

Commit 350738a

Browse files
committed
[css-layout-api] Add more text for Boxes to README.md
1 parent ec4dca4 commit 350738a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

css-layout-api/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,15 @@ interface Fragment {
8585
};
8686
```
8787

88+
One important thing to note is that you can't change the `inlineSize` or `blockSize` of a fragment
89+
once have received it from a child layout. The _only_ thing you can change is it's position (with
90+
`inlineStart` or `blockStart`) relative to the parent.
91+
92+
See below for a description of baselines.
93+
94+
The `unpositionedBoxes` attribute is a list of `Box`es which couldn't be positioned by the child.
95+
The current layout can choose to layout and position these, or it can pass them up to it's parent.
96+
8897
#### The `ConstraintSpace`
8998

9099
A `ConstraintSpace` is a 2D representation of the layout space given to a layout. A constraint space
@@ -332,6 +341,10 @@ children into a "Tracks" data structure for layout.
332341

333342
TODO: add API proposal here.
334343

344+
#### Baselines
345+
346+
TODO: add explaination why we need a more powerful API than just offset here.
347+
335348
### Performing Layout
336349

337350
The Layout API is best described with a simple dummy example:

0 commit comments

Comments
 (0)