Add clampToContainer option to Position helper

_posFixed now resolves a clamp rect (viewport by default; the nearest
containing-block rect when clampToContainer is set) and clamps position,
edges, and max-height against it. Fixes popups rendered under an ancestor
with transform/filter/contain:layout|paint, where position: fixed resolves
against that ancestor and the viewport is the wrong clamp edge.
This commit is contained in:
pk
2026-08-09 23:15:05 +02:00
parent d918a19387
commit 4158f88ae3
2 changed files with 78 additions and 20 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@tp/helpers",
"version": "2.12.1",
"version": "2.13.0",
"description": "",
"main": "closest.js",
"scripts": {