• Home
  • Raw
  • Download

Lines Matching full:cross

36     /// The cross-alignment of this item
93 /// A temporary value for the cross offset
111 /// The dimensions of the cross-axis
113 /// The relative offset of the cross-axis
242 // 2. Determine the available main and cross space for the flex items in compute_preliminary()
297 // 9.4. Cross Size Determination in compute_preliminary()
299 // 7. Determine the hypothetical cross size of each item. in compute_preliminary()
310 // 8. Calculate the cross size of each flex line. in compute_preliminary()
319 // note the cross size of the line they’re in as the item’s strut size, and restart in compute_preliminary()
325 // calculating the cross size of the lines, if any line’s cross size is less than the in compute_preliminary()
326 // largest strut size among all the collapsed items in the line, set its cross size to in compute_preliminary()
333 // 11. Determine the used cross size of each flex item. in compute_preliminary()
343 // 9.6. Cross-Axis Alignment in compute_preliminary()
345 // 13. Resolve cross-axis auto margins (also includes 14). in compute_preliminary()
349 // 15. Determine the flex container’s used cross size. in compute_preliminary()
559 /// Determine the available main and cross space for the flex items.
563 /// - [**Determine the available main and cross space for the flex items**](https://www.w3.org/TR/c…
608 /// - a definite cross size,
610 /// then the flex base size is calculated from its inner cross size and the flex item’s intrins…
617 … If a cross size is needed to determine the main size (e.g. when the flex item’s main size is …
618 /// in this calculation use fit-content as the flex item’s cross size. The flex base size i…
636 let cross_axis_parent_size = constants.node_inner_size.cross(dir); in determine_flex_base_size()
641 let child_min_cross = child.min_size.cross(dir).maybe_add(cross_axis_margin_sum); in determine_flex_base_size()
642 let child_max_cross = child.max_size.cross(dir).maybe_add(cross_axis_margin_sum); in determine_flex_base_size()
645 let cross_axis_available_space: AvailableSpace = match available_space.cross(dir) { in determine_flex_base_size()
662 if child.align_self == AlignSelf::Stretch && ckd.cross(dir).is_none() { in determine_flex_base_size()
688 // a used flex basis of content, and a definite cross size, in determine_flex_base_size()
690 // cross size and the flex item’s intrinsic aspect ratio. in determine_flex_base_size()
718 // If a cross size is needed to determine the main size (e.g. when the in determine_flex_base_size()
719 // flex item’s main size is in its block axis) and the flex item’s cross size in determine_flex_base_size()
721 // flex item’s cross size. The flex base size is the item’s resulting main size. in determine_flex_base_size()
768 … // be set to their usual values in the cross axis so that wrapping content can wrap correctly. in determine_flex_base_size()
1004 let cross_axis_parent_size = constants.node_inner_size.cross(dir); in determine_container_main_size()
1008 … let child_min_cross = item.min_size.cross(dir).maybe_add(cross_axis_margin_sum); in determine_container_main_size()
1009 … let child_max_cross = item.max_size.cross(dir).maybe_add(cross_axis_margin_sum); in determine_container_main_size()
1011 .cross(dir) in determine_container_main_size()
1020 … if item.align_self == AlignSelf::Stretch && ckd.cross(dir).is_none() { in determine_container_main_size()
1333 /// Determine the hypothetical cross size of each item.
1335 /// # [9.4. Cross Size Determination](https://www.w3.org/TR/css-flexbox-1/#cross-sizing)
1337 /// - [**Determine the hypothetical cross size of each item**](https://www.w3.org/TR/css-flexbox-1/…
1353 .cross(constants.dir) in determine_hypothetical_cross_size()
1354 .maybe_clamp(child.min_size.cross(constants.dir), child.max_size.cross(constants.dir)) in determine_hypothetical_cross_size()
1358 .cross(constants.dir) in determine_hypothetical_cross_size()
1359 .maybe_clamp(child.min_size.cross(constants.dir), child.max_size.cross(constants.dir)) in determine_hypothetical_cross_size()
1378 .maybe_clamp(child.min_size.cross(constants.dir), child.max_size.cross(constants.dir)) in determine_hypothetical_cross_size()
1397 …// Only compute baselines for flex rows because we only support baseline alignment in the cross ax… in calculate_children_base_lines()
1457 /// Calculate the cross size of each flex line.
1459 /// # [9.4. Cross Size Determination](https://www.w3.org/TR/css-flexbox-1/#cross-sizing)
1461 /// - [**Calculate the cross size of each flex line**](https://www.w3.org/TR/css-flexbox-1/#algo-cr…
1464 // If the flex container is single-line and has a definite cross size, in calculate_cross_size()
1465 // the cross size of the flex line is the flex container’s inner cross size. in calculate_cross_size()
1466 if !constants.is_wrap && node_size.cross(constants.dir).is_some() { in calculate_cross_size()
1468 let cross_min_size = constants.min_size.cross(constants.dir); in calculate_cross_size()
1469 let cross_max_size = constants.max_size.cross(constants.dir); in calculate_cross_size()
1471 .cross(constants.dir) in calculate_cross_size()
1480 // align-self is baseline, and whose cross-axis margins are both non-auto. Find the in calculate_cross_size()
1482 // cross-start edge, and the largest of the distances between each item’s baseline in calculate_cross_size()
1483 // and its hypothetical outer cross-end edge, and sum these two values. in calculate_cross_size()
1486 // outer hypothetical cross size. in calculate_cross_size()
1488 // 3. The used cross-size of the flex line is the largest of the numbers found in the in calculate_cross_size()
1500 … max_baseline - child.baseline + child.hypothetical_outer_size.cross(constants.dir) in calculate_cross_size()
1502 child.hypothetical_outer_size.cross(constants.dir) in calculate_cross_size()
1508 …iner is single-line, then clamp the line’s cross-size to be within the container’s computed min an… in calculate_cross_size()
1512 let cross_min_size = constants.min_size.cross(constants.dir); in calculate_cross_size()
1513 let cross_max_size = constants.max_size.cross(constants.dir); in calculate_cross_size()
1524 /// # [9.4. Cross Size Determination](https://www.w3.org/TR/css-flexbox-1/#cross-sizing)
1526 …R/css-flexbox-1/#algo-line-stretch). If the flex container has a definite cross size, align-conten…
1527 /// and the sum of the flex lines' cross sizes is less than the flex container’s inner cross si…
1528 …rease the cross size of each flex line by equal amounts such that the sum of their cross sizes exa…
1533 let cross_min_size = constants.min_size.cross(constants.dir); in handle_align_content_stretch()
1534 let cross_max_size = constants.max_size.cross(constants.dir); in handle_align_content_stretch()
1536 .cross(constants.dir) in handle_align_content_stretch()
1543 … let total_cross_axis_gap = sum_axis_gaps(constants.gap.cross(constants.dir), flex_lines.len()); in handle_align_content_stretch()
1554 /// Determine the used cross size of each flex item.
1556 /// # [9.4. Cross Size Determination](https://www.w3.org/TR/css-flexbox-1/#cross-sizing)
1558 …used cross size of each flex item**](https://www.w3.org/TR/css-flexbox-1/#algo-stretch). If a flex…
1559cross-axis margins are auto, the used outer cross size is the used cross size of its flex line, c…
1560 /// Otherwise, the used cross size is the item’s hypothetical cross size.
1562 …ch, redo layout for its contents, treating this used size as its definite cross size so that perce…
1581 && child_style.size().cross(constants.dir) == Dimension::Auto in determine_used_cross_size()
1598 child.min_size.cross(constants.dir), in determine_used_cross_size()
1599 max_size_ignoring_aspect_ratio.cross(constants.dir), in determine_used_cross_size()
1602 child.hypothetical_inner_size.cross(constants.dir) in determine_used_cross_size()
1608 child.target_size.cross(constants.dir) + child.margin.cross_axis_sum(constants.dir), in determine_used_cross_size()
1684 /// Resolve cross-axis `auto` margins.
1686 /// # [9.6. Cross-Axis Alignment](https://www.w3.org/TR/css-flexbox-1/#cross-alignment)
1688 /// - [**Resolve cross-axis `auto` margins**](https://www.w3.org/TR/css-flexbox-1/#algo-cross-margi…
1689 /// If a flex item has auto cross-axis margins:
1691 /// - If its outer cross size (treating those auto margins as zero) is less than the cross size…
1694 /// - Otherwise, if the block-start or inline-start margin (whichever is in the cross axis) is …
1695 /// Set the opposite margin so that the outer cross size of the item equals the cross size …
1703 let free_space = line_cross_size - child.outer_target_size.cross(constants.dir); in resolve_cross_axis_auto_margins()
1726 // 14. Align all flex items along the cross-axis. in resolve_cross_axis_auto_margins()
1733 /// Align all flex items along the cross-axis.
1735 /// # [9.6. Cross-Axis Alignment](https://www.w3.org/TR/css-flexbox-1/#cross-alignment)
1737 /// - [**Align all flex items along the cross-axis**](https://www.w3.org/TR/css-flexbox-1/#algo-cro…
1738 /// if neither of the item's cross-axis margins are `auto`.
1787 /// Determine the flex container’s used cross size.
1789 /// # [9.6. Cross-Axis Alignment](https://www.w3.org/TR/css-flexbox-1/#cross-alignment)
1791 /// - [**Determine the flex container’s used cross size**](https://www.w3.org/TR/css-flexbox-1/#alg…
1793 /// - If the cross size property is a definite size, use that, clamped by the used min and max
1795 …// - Otherwise, use the sum of the flex lines' cross sizes, clamped by the used min and max cr…
1803 let total_cross_axis_gap = sum_axis_gaps(constants.gap.cross(constants.dir), flex_lines.len()); in determine_container_cross_size()
1807 let cross_scrollbar_gutter = constants.scrollbar_gutter.cross(constants.dir); in determine_container_cross_size()
1808 let min_cross_size = constants.min_size.cross(constants.dir); in determine_container_cross_size()
1809 let max_cross_size = constants.max_size.cross(constants.dir); in determine_container_cross_size()
1811 .cross(constants.dir) in determine_container_cross_size()
1825 /// # [9.6. Cross-Axis Alignment](https://www.w3.org/TR/css-flexbox-1/#cross-alignment)
1831 let gap = constants.gap.cross(constants.dir); in align_flex_lines_per_align_content()
1833 …let free_space = constants.inner_container_size.cross(constants.dir) - total_cross_size - total_cr… in align_flex_lines_per_align_content()
2211 // Apply cross-axis alignment in perform_absolute_layout_on_absolute_children()
2212 …// let free_cross_space = free_space.cross(constants.dir) - resolved_margin.cross_axis_sum(constan… in perform_absolute_layout_on_absolute_children()
2216 constants.container_size.cross(constants.dir) in perform_absolute_layout_on_absolute_children()
2218 - constants.scrollbar_gutter.cross(constants.dir) in perform_absolute_layout_on_absolute_children()
2219 - final_size.cross(constants.dir) in perform_absolute_layout_on_absolute_children()
2235 constants.container_size.cross(constants.dir) in perform_absolute_layout_on_absolute_children()
2237 - final_size.cross(constants.dir) in perform_absolute_layout_on_absolute_children()
2241 (constants.container_size.cross(constants.dir) in perform_absolute_layout_on_absolute_children()
2244 - final_size.cross(constants.dir) in perform_absolute_layout_on_absolute_children()