[css-grid] Use synthesized border-box baseline for grid items without… · w3c/csswg-drafts@15fe334 (original) (raw)
`@@ -2174,24 +2174,17 @@ Flex Container Baselines
`
2174
2174
` the shared alignment baseline of those flex items.
`
2175
2175
``
2176
2176
` 2. Otherwise, if the flex container has at least one flex item,
`
2177
``
`-
and its first/last flex item has a baseline
`
2178
``
`-
parallel to the flex container's main axis,
`
2179
2177
` the flex container's first/last main-axis baseline set
`
2180
2178
` is generated from
`
2181
``
`-
its alignment baseline.
`
2182
``
-
2183
``
`-
- Otherwise, the flex container has no natural first/last main-axis baseline set,
`
2184
``
`-
and a synthesized first/last baseline set, if needed,
`
2185
``
`-
is synthesized
`
2186
``
`-
from the first/last item's border box,
`
2187
``
`-
or, failing that, from the flex container's content box.
`
``
2179
`+
the alignment baseline of the first/last flex item.
`
``
2180
`+
(If that item has no alignment baseline
`
``
2181
`+
parallel to the flex container's main axis,
`
``
2182
`+
then one is first synthesized
`
``
2183
`+
from its border edges.)
`
2188
2184
``
2189
``
`-
`
``
2185
`+
- Otherwise, the flex container has no first/last main-axis baseline set,
`
``
2186
`+
and one is synthesized if needed
`
``
2187
`+
according to the rules of its alignment context.
`
2195
2188
``
2196
2189
`
`
2197
2190
` lt="cross-axis baseline set|first cross-axis baseline set|last cross-axis baseline set">
`
`@@ -2202,16 +2195,18 @@ Flex Container Baselines
`
2202
2195
` its baselines are determined as follows:
`
2203
2196
``
2204
2197
` 1. If the flex container has at least one flex item,
`
2205
``
`-
and its first/last flex item has a first/last baseline set
`
2206
``
`-
parallel to the flex container's cross axis,
`
2207
2198
` the flex container's first/last cross-axis baseline set
`
2208
``
`-
is that baseline set.
`
``
2199
`+
is generated from
`
``
2200
`+
the alignment baseline of the first/last flex item.
`
``
2201
`+
(If that item has no alignment baseline
`
``
2202
`+
parallel to the flex container's cross axis,
`
``
2203
`+
then one is first synthesized
`
``
2204
`+
from its border edges.)
`
``
2205
+
``
2206
`+
- Otherwise, the flex container has no first/last main-axis baseline set,
`
``
2207
`+
and one is synthesized if needed
`
``
2208
`+
according to the rules of its alignment context.
`
2209
2209
``
2210
``
`-
- Otherwise, the flex container has no natural cross-axis baseline set,
`
2211
``
`-
and a synthesized first/last baseline set, if needed,
`
2212
``
`-
is synthesized
`
2213
``
`-
from the first/last item's border box,
`
2214
``
`-
or, failing that, from the flex container's content box.
`
2215
2210
`
`
2216
2211
``
2217
2212
` When calculating the baseline according to the above rules,
`