mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
style: Don't perform parent display-based style fixups on most pseudos.
This commit is contained in:
parent
b701d726f2
commit
d4c507ce6d
3 changed files with 16 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue