we (web engine): Experimental web browser project to understand the limits of Claude

Fix inline background insertion order in paint_text master

When both underline and background were present, bg_idx pointed to the underline rect instead of the DrawGlyphs command, causing the background to paint after the text. Capture glyph_idx before pushing any commands to ensure correct painter's order. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>


+5 -6
1 changed file