css position position-try-order

✔️ position-try-order CSS Style Property

המאפיין position-try-order קובע את סדר הניסיון של המיקומים החלופיים ב-anchor positioning.
הערה: השינוי נראה רק בשילוב עם anchor positioning מלא.

דוגמא: הגדרת מיקומי גיבוי לאלמנטים ממוקמי-עוגן כאשר הם חורגים מגבולות ה-viewport.
הערה: יש לגלול את אזור הדמו כדי לראות את האפקט.

Demo Panel:
Anchor
Styled by Claude
CSS: 111
HTML: 222
Syntax:

Valid values:
  • most-width, most-height, most-block-size, most-inline-size, normal

Js Syntax: element.style.positionTryOrder

תאימות דפדפנים