Skip to content

Commit 7d02f09

Browse files
committed
Remove position:fixed
This allows us to land position:static without completing the implementation of fixed position (which we will land later).
1 parent ba0758e commit 7d02f09

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/style/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,6 @@ pub enum Position {
265265
///
266266
/// WARNING: to opt-out of layouting entirely, you must use [`Display::None`] instead on your [`Style`] object.
267267
Absolute,
268-
/// The offset is computed relative to the viewport or transform boundary
269-
Fixed,
270268
}
271269

272270
impl Default for Position {
@@ -285,7 +283,7 @@ impl Position {
285283
/// Whether the element is positioned out-of-flow (absolute or fixed position)
286284
#[inline(always)]
287285
pub fn is_out_of_flow(self) -> bool {
288-
matches!(self, Self::Absolute | Self::Fixed)
286+
matches!(self, Self::Absolute)
289287
}
290288

291289
/// Whether the element is positioned in-flow (NOT absolute or fixed position)

0 commit comments

Comments
 (0)