[UI-side compositing] Add infrastructure to get scrollbar state in layout tests
<rdar://problem/107154212>
Pull request: https://github.com/WebKit/WebKit/pull/11890
Committed 262082@main (0d254e93fc60): <https://commits.webkit.org/262082@main> Reviewed commits have been landed. Closing PR #11890 and removing active labels.