From e05058d2b9b9a7fcf849418d83293ada19991de0 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Fri, 21 Jul 2017 14:09:41 -0400 Subject: [PATCH] Add property flags for which properties apply to certain pseudo-elements. r=emilio These flags can be used to flag properties that apply to ::first-letter, ::first-line, and ::placeholder Part 1 of the fix for Gecko bug 1382786 . --- components/style/properties/properties.mako.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index 5db0ec71ed4..6eeeb33f913 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -442,6 +442,12 @@ bitflags! { const ABSPOS_CB = 1 << 2, /// This shorthand property is an alias of another property. const SHORTHAND_ALIAS_PROPERTY = 1 << 3, + /// This longhand property applies to ::first-letter. + const APPLIES_TO_FIRST_LETTER = 1 << 4, + /// This longhand property applies to ::first-line. + const APPLIES_TO_FIRST_LINE = 1 << 5, + /// This longhand property applies to ::placeholder. + const APPLIES_TO_PLACEHOLDER = 1 << 6, } }