aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/servo
diff options
context:
space:
mode:
Diffstat (limited to 'components/style/servo')
-rw-r--r--components/style/servo/selector_parser.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/style/servo/selector_parser.rs b/components/style/servo/selector_parser.rs
index 12060f3e738..784a839c800 100644
--- a/components/style/servo/selector_parser.rs
+++ b/components/style/servo/selector_parser.rs
@@ -150,6 +150,13 @@ impl PseudoElement {
self.is_precomputed()
}
+ /// Whether this pseudo-element skips flex/grid container
+ /// display-based fixup.
+ #[inline]
+ pub fn skip_item_based_display_fixup(&self) -> bool {
+ !self.is_before_or_after()
+ }
+
/// Whether this pseudo-element is precomputed.
#[inline]
pub fn is_precomputed(&self) -> bool {