Line Count Algorithm Test Suite

This page tests the improved line counting algorithm with various complex HTML structures.

Fixed Font Size Mode

Test 1: Simple Text

This is a simple text block that should count as approximately 2-3 lines depending on the font size and container width.

Test 2: Nested HTML Structure (Previously Over-counted)

This is outer content.
This is inner content that was previously over-counted. And this span content too.
Back to outer content.

Test 3: Multiple Nested Sections

First paragraph of content.

Nested span content.
Deeply nested italic text. And bold text too.

Final paragraph content.

Test 4: Complex Mirrored Structure

Section A

Content for section A with some text.

Subsection content A.

Section B

Content for section B with similar structure.

Subsection content B.

Test 5: Edge Cases

Inline content

Actual content after empty elements.