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.
6
7/// Specified values for the `caption-side` property.
8///
9/// Note that despite having "physical" names, these are actually interpreted
10/// according to the table's writing-mode: Top and Bottom are treated as
11/// block-start and -end respectively.
12///
13/// https://drafts.csswg.org/css-tables/#propdef-caption-side
14#[allow(missing_docs)]
15#[derive(
16 Clone,
17 Copy,
18 Debug,
19 Eq,
20 FromPrimitive,
21 MallocSizeOf,
22 Ord,
23 Parse,
24 PartialEq,
25 PartialOrd,
26 SpecifiedValueInfo,
27 ToComputedValue,
28 ToCss,
29 ToResolvedValue,
30 ToShmem,
31)]
32#[repr(u8)]
33pub enum CaptionSide {
34 Top,
35 Bottom,
36}