Skip to content
Permalink
Browse files

Add property flags for which properties apply to certain pseudo-eleme…

…nts. 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 <https://bugzilla.mozilla.org/show_bug.cgi?id=1382786>.
  • Loading branch information
bzbarsky committed Jul 21, 2017
1 parent d1ac8b2 commit e05058d2b9b9a7fcf849418d83293ada19991de0
Showing with 6 additions and 0 deletions.
  1. +6 −0 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,
}
}

0 comments on commit e05058d

Please sign in to comment.
You can’t perform that action at this time.