Make for_maybe_position_relative take care of relative adjustment.

This commit is contained in:
Simon Sapin 2019-12-13 13:12:57 +01:00
parent b218957461
commit 58b7005a9b
6 changed files with 49 additions and 56 deletions

View file

@ -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>