mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
layout: Implement partial support for inline absolute containing blocks.
Improves the position of the down arrows on google.com SERPs.
This commit is contained in:
parent
9f85370885
commit
676f7014e8
7 changed files with 145 additions and 35 deletions
|
@ -2273,6 +2273,11 @@ impl Fragment {
|
|||
}
|
||||
false
|
||||
}
|
||||
|
||||
/// Returns true if this node is absolutely positioned.
|
||||
pub fn is_absolutely_positioned(&self) -> bool {
|
||||
self.style.get_box().position == position::T::absolute
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Debug for Fragment {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue