layout: Add very basic support for showing text in input boxes (#32365)

This only paints text in input fields. Selection and cursor are still
not painted.

In addition to adding this feature, the change also updates the
user-agent.css with the latest from the HTML specification. Extra
padding and extraneous settings (such as a bogus line-height and
min-height) are also removed from servo.css. This leads to some new
passes.

There are some new passes, this introduces failures as inserting text
reveals issues that were hidden before. Notably:

- failures in `/html/editing/editing-0/spelling-and-grammar-checking/`:
  We do not support spell-checking.
- Most of the rest of the new failures are missing features of input
  boxes that are also missing in legacy layout.
This commit is contained in:
Martin Robinson 2024-06-20 12:13:50 +02:00 committed by GitHub
parent 3d6accbbe3
commit 44064b1439
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
65 changed files with 225 additions and 204 deletions

View file

@ -1,2 +0,0 @@
[text-transform.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[textarea-padding-bend-overlaps-content-001.tentative.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[textarea-padding-bstart-moves-content-001.tentative.html]
expected: FAIL

View file

@ -316,3 +316,21 @@
[<input type="button" value="x" style="overflow: scroll; appearance: none;">]
expected: FAIL
[<input type="range" style="overflow: visible; appearance: auto;">]
expected: FAIL
[<input type="range" style="overflow: visible; appearance: none;">]
expected: FAIL
[<input type="color" value="#000000" style="overflow: visible; appearance: auto;">]
expected: FAIL
[<input type="color" value="#000000" style="overflow: visible; appearance: none;">]
expected: FAIL
[<input type="image" src="data:(png)" alt="x" style="overflow: visible; appearance: auto;">]
expected: FAIL
[<input type="image" src="data:(png)" alt="x" style="overflow: visible; appearance: none;">]
expected: FAIL

View file

@ -7,6 +7,3 @@
[align-items:stretch should work]
expected: FAIL
[align-items:flex-start should work]
expected: FAIL

View file

@ -1,2 +0,0 @@
[input-type-button-newline-2.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[input-type-button-newline.html]
expected: FAIL

View file

@ -8,9 +8,6 @@
[number: Explicit height and auto width]
expected: FAIL
[number: Text caret is taller than the placeholder]
expected: FAIL
[number: Text caret is shorter than the placeholder]
expected: FAIL

View file

@ -0,0 +1,2 @@
[input-checkbox-switch-rtl.tentative.html]
expected: FAIL