Implements full text input lifecycle: rendering with UA stylesheet chrome, keyboard editing, blinking caret, selection highlighting, placeholder text, password masking, textarea multiline support, input/change event dispatch with InputEvent.inputType per Input Events Level 2, maxlength/readonly constraint enforcement, and 4 golden tests + 11 unit tests. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
38 lines
1.4 KiB
Plaintext
38 lines
1.4 KiB
Plaintext
LayoutBox node=#1 tag=html box=block
|
|
content: (0, 0, 800, 172)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
LayoutBox node=#3 tag=body box=block
|
|
content: (8, 8, 784, 156)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 8 8 8 8
|
|
inline_context: 1 lines, height=156, max_width=309.05432
|
|
line[0]: rect=(8, 8, 309.05432, 156) fragments=1
|
|
frag[0]: rect=(8, 8, 306, 156) text=(none) start=false end=false
|
|
LayoutBox node=#4 tag=textarea box=inline-block
|
|
content: (11, 11, 300, 150)
|
|
padding: 2 2 2 2
|
|
border: 1 1 1 1
|
|
margin: 0 0 0 0
|
|
inline_context: 2 lines, height=38.4, max_width=56.387665
|
|
line[0]: rect=(11, 11, 56.387665, 19.2) fragments=2
|
|
frag[0]: rect=(11, 12.6, 28.193832, 16) text="Line" start=false end=false
|
|
frag[1]: rect=(46.24229, 12.6, 21.145374, 16) text="one" start=false end=false
|
|
line[1]: rect=(11, 30.2, 56.387665, 19.2) fragments=2
|
|
frag[0]: rect=(11, 31.800001, 28.193832, 16) text="Line" start=false end=false
|
|
frag[1]: rect=(46.24229, 31.800001, 21.145374, 16) text="two" start=false end=false
|
|
LayoutBox node=#4 tag=anonymous box=anon
|
|
content: (0, 0, 0, 0)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
text: "Line one\nLine two"
|
|
LayoutBox node=#6 tag=anonymous box=anon
|
|
content: (0, 0, 3.0543318, 16)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
text: " "
|