Rendered from phase7/allowed.md

Phase 7 — Allowed

This file is the gauge for everything in phase7/. Phase 7 builds on every tool allowed through Phase 6.

Learning goal

Position elements deliberately, preserve normal flow when appropriate, and control simple overlapping layers.

Inherited tools

Everything from ./phase6-allowed.html remains available.

New CSS properties

Allowed values

Positioning rules

  1. static is the default and ignores top, right, bottom, and left.
  2. relative keeps its original space in normal flow, then offsets the rendered box.
  3. A positioned element can establish the containing block for an absolutely positioned descendant.
  4. absolute leaves normal flow; reserve space when other content must not move underneath it.
  5. fixed is normally positioned relative to the viewport and can cover content while scrolling.
  6. sticky behaves like normal flow until an offset threshold such as top: 0 is reached.
  7. Ancestor overflow can change or prevent the expected sticky behavior.
  8. Source order controls which overlapping element paints later when no z-index changes the order.
  9. Use z-index only when overlap is intentional, and prefer a small documented scale.
  10. A z-index cannot escape its ancestor stacking context; avoid teaching large arbitrary numbers as a fix.

Not allowed

Pages