From 18a0c9b03335caa974c140f6d246ef411a29e280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Thu, 7 Mar 2019 00:14:06 +0100 Subject: [PATCH] style: followup: Add a comment as requested on Phabricator. --- components/style/values/specified/length.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/style/values/specified/length.rs b/components/style/values/specified/length.rs index 840991a0dac..acee43f4b38 100644 --- a/components/style/values/specified/length.rs +++ b/components/style/values/specified/length.rs @@ -994,6 +994,10 @@ impl NonNegativeLengthPercentage { pub type LengthOrNormal = Either; /// Either a `` or the `auto` keyword. +/// +/// Note that we use LengthPercentage just for convenience, since it pretty much +/// is everything we care about, but we could just add a similar LengthOrAuto +/// instead if we think getting rid of this weirdness is worth it. pub type LengthOrAuto = generics::LengthPercentageOrAuto; impl LengthOrAuto {