Repository navigation
Commit c65964d
authored
Skip
Summary:
A `display: none` child is not a flex item, so it cannot supply its
container's baseline (css-flexbox-1 §8.5) or make its row a baseline
layout. `calculateBaseline` chose a hidden first child, whose zeroed-out
layout has a NaN measured height, and `isBaselineLayout` counted a hidden
`align-self: baseline` child.
`calculateBaseline` also read the line index of children that are not flex
items before skipping them. Only flex items are assigned to lines, so a
stale index from an earlier layout could end the search early.
Reviewed By: javache
Differential Revision: D135033729
Pull Request resolved: #60407display: none children when finding a flex container's baseline (#2107)1 parent 239667f commit c65964d
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| 73 | + | |
70 | 74 | | |
71 | 75 | | |
72 | 76 | | |
| |||
0 commit comments