From cda4e6d75143a9f71182fb20c199ed18dbef4891 Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Tue, 27 Mar 2018 11:51:08 +1100 Subject: [PATCH] Add comment for overflow-{x,y} applying to ::placeholder. --- components/style/properties/longhand/box.mako.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/style/properties/longhand/box.mako.rs b/components/style/properties/longhand/box.mako.rs index d0da5476bfe..e606f081c6c 100644 --- a/components/style/properties/longhand/box.mako.rs +++ b/components/style/properties/longhand/box.mako.rs @@ -205,6 +205,8 @@ ${helpers.single_keyword("-servo-overflow-clip-box", "padding-box content-box", %> // FIXME(pcwalton, #2742): Implement scrolling for `scroll` and `auto`. +// +// We allow it to apply to placeholders for UA sheets, which set it !important. ${helpers.single_keyword("overflow-x", "visible hidden scroll auto", animation_value_type="discrete", extra_gecko_values="-moz-hidden-unscrollable", @@ -215,6 +217,8 @@ ${helpers.single_keyword("overflow-x", "visible hidden scroll auto", servo_restyle_damage = "reflow")} // FIXME(pcwalton, #2742): Implement scrolling for `scroll` and `auto`. +// +// We allow it to apply to placeholders for UA sheets, which set it !important. <%helpers:longhand name="overflow-y" animation_value_type="discrete" flags="APPLIES_TO_PLACEHOLDER", spec="https://drafts.csswg.org/css-overflow/#propdef-overflow-y"