mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
Our change to generate spans in PaintableWithLines from fragments also broke drawing the caret for empty <input>s and <textarea>s, since spans was empty in that case. Fix this by moving caret drawing to PaintableWithLines, and only invoking it if we have a cursor position set.
10 lines
238 B
HTML
10 lines
238 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<input value="hello" style="width: 100px" />
|
|
<script>
|
|
test(() => {
|
|
document.querySelector("input").focus();
|
|
println(internals.dumpDisplayList());
|
|
});
|
|
</script>
|