mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Auto merge of #7498 - pcwalton:inline-absolute-containing-blocks, r=mbrubeck
layout: Implement partial support for inline absolute containing blocks. Improves the position of the down arrows on google.com SERPs. r? @mbrubeck <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7498) <!-- Reviewable:end -->
This commit is contained in:
commit
e46499a5df
7 changed files with 145 additions and 35 deletions
|
@ -2272,6 +2272,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