htui 0.2.0

A terminal HTML/CSS renderer with an embedded JavaScript engine — build interactive TUIs from HTML, CSS and JS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! `align-self` resolution.

use super::super::values::AlignItems;

/// `align-self` resolution result.
///
/// The CSS property is either the keyword `auto` (inherit the parent's
/// `align-items`) or any of the [`AlignItems`] values. Modeled as a sum
/// type so the layout doesn't need to re-parse the raw value.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum AlignSelf {
    /// Inherit the container's `align-items`.
    Auto,
    /// Explicit cross-axis alignment for this item.
    Value(AlignItems),
}