From f03883774b005722ec7014f26beb300473c27e51 Mon Sep 17 00:00:00 2001 From: Cameron McCormack Date: Thu, 16 Jul 2020 22:04:21 +0000 Subject: [PATCH] style: Avoid exposing `appearance: range-thumb` to content. Differential Revision: https://phabricator.services.mozilla.com/D83433 --- components/style/values/specified/box.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/style/values/specified/box.rs b/components/style/values/specified/box.rs index 42d17b09e6b..ef53c7b4cfd 100644 --- a/components/style/values/specified/box.rs +++ b/components/style/values/specified/box.rs @@ -1622,7 +1622,8 @@ pub enum Appearance { RadioLabel, /// nsRangeFrame and its subparts Range, - RangeThumb, // FIXME: This should not be exposed to content. + #[parse(condition = "ParserContext::in_ua_or_chrome_sheet")] + RangeThumb, /// The resizer background area in a status bar for the resizer widget in /// the corner of a window. #[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]