aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/model.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/model.rs')
-rw-r--r--components/layout/model.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/layout/model.rs b/components/layout/model.rs
index bb9bb1736fc..f988ef370dd 100644
--- a/components/layout/model.rs
+++ b/components/layout/model.rs
@@ -502,6 +502,13 @@ impl ToGfxMatrix for ComputedMatrix {
}
}
+// Used to specify the logical direction.
+#[derive(Debug, Clone, Copy)]
+pub enum Direction {
+ Inline,
+ Block
+}
+
// https://drafts.csswg.org/css2/visudet.html#min-max-widths
// https://drafts.csswg.org/css2/visudet.html#min-max-heights
/// A min or max constraint