style/values/specified/
table.rs

1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5//! Specified types for CSS values related to tables.
6use crate::derives::*;
7
8/// Specified values for the `caption-side` property.
9///
10/// Note that despite having "physical" names, these are actually interpreted
11/// according to the table's writing-mode: Top and Bottom are treated as
12/// block-start and -end respectively.
13///
14/// https://drafts.csswg.org/css-tables/#propdef-caption-side
15#[allow(missing_docs)]
16#[derive(
17    Clone,
18    Copy,
19    Debug,
20    Eq,
21    FromPrimitive,
22    MallocSizeOf,
23    Ord,
24    Parse,
25    PartialEq,
26    PartialOrd,
27    SpecifiedValueInfo,
28    ToComputedValue,
29    ToCss,
30    ToResolvedValue,
31    ToShmem,
32    ToTyped,
33)]
34#[repr(u8)]
35pub enum CaptionSide {
36    Top,
37    Bottom,
38}