Pretext Demo
+Masonry
++ A Pinterest-style layout with cards positioned in columns based on + predicted heights — computed without any DOM reads in the layout path. + Adjust the column count to see how Pretext handles the reflow. +
+ + +diff --git a/pages/demos/index.html b/pages/demos/index.html index a15f4efd..f8f07f30 100644 --- a/pages/demos/index.html +++ b/pages/demos/index.html @@ -134,7 +134,7 @@
A text-card occlusion demo where height prediction comes from Pretext instead of DOM reads.
+A text-card layout where height prediction comes from Pretext instead of DOM reads.
diff --git a/pages/demos/masonry.html b/pages/demos/masonry.html new file mode 100644 index 00000000..cdd44504 --- /dev/null +++ b/pages/demos/masonry.html @@ -0,0 +1,199 @@ + + + + + +Pretext Demo
++ A Pinterest-style layout with cards positioned in columns based on + predicted heights — computed without any DOM reads in the layout path. + Adjust the column count to see how Pretext handles the reflow. +
+ + +