before text
below
baseline
above
after text
before text
below
above
after text
before text

h2 baseline

above
after text
before text
baseline

h2 below

after text
should align with the middle
of the grey box
should align below the bottom
of the black line
should align with the bottom
of the red box
before text
baseline
below
after text
should align with the middle
of the grey box
before text
absolute
baseline
after text
before text
baseline
below
after text
before text
above
baseline
above
after
text
before text
baseline
after text
bottom baseline top

h2 baseline

above
before text
The baseline is based on
the non-scrolled position;
this won't line up.
after text