mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
Make for_maybe_position_relative
take care of relative adjustment.
This commit is contained in:
parent
b218957461
commit
58b7005a9b
6 changed files with 49 additions and 56 deletions
|
@ -55,6 +55,9 @@ impl computed_value::T {
|
|||
pub fn is_absolutely_positioned(self) -> bool {
|
||||
matches!(self, Self::Absolute | Self::Fixed)
|
||||
}
|
||||
pub fn is_relative(self) -> bool {
|
||||
self == Self::Relative
|
||||
}
|
||||
}
|
||||
</%helpers:single_keyword>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue