Files
servo/tests/html
Martin Robinson bfccb3ec41 layout: Improve and make consistent the look of various form controls (#42085)
This change makes a variety of changes to form controls to improve their
appearance. In general, they now look more similar to Chrome and
Firefox:

- Padding is added everywhere
- Checkboxes and radio buttons are more centered in their containers
  and they no longer affect the baseline of their surroundings.
- Buttons react when hovered and clicked.
- Form control styles are organized a bit.
- More controls have a style making it obvious they are disabled.

There's more work to do here, but it is saved for followup changes
- Checkbox checks are not well positioned -- they should likely be an
image.
- More work is necessary to ensure that the controls look consistent at
all font sizes and that font sizes from the surrounding content do not
leak in.
 
Testing: This change causes some WPT tests to start passing some to
start failing,
due to the fact that we do not properly implement all of the behavior of
form controls.

Failures:
 - `/css/css-flexbox/stretch-flex-item-checkbox-input.html` and
`/css/css-flexbox/stretch-flex-item-checkbox-input.html`: These test the
  behavior of checkboxes and radio buttons in flex containers, but since
  we do not have a Shadow DOM or custom rendering for our controls, we
  must limit the height and width of the controls. Further refinement
  is necessary here to get this working properly, though it only affects
  controls in flex.
- `/css/css-grid/subgrid/subgrid-button.html`,
  `/css/css-transforms/transform-input-002.html`,
`/html/rendering/widgets/button-layout/scrollbars.html`: These two seem
to be
  minor subpixel variations in the output.
-
`/html/rendering/widgets/baseline-alignment-and-overflow.tentative.html`:
This tests uspecified behavior about where baselines come from in
controls.
  We do not implement this yet.
-
`/pointerevents/pointerevent_lostpointercapture_for_disconnected_shadow_host.html`:
We do not support the `lostpointercapture` event so I suspect this is
just
  timing out in a slightly different way.

Fixes: #34969.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2026-01-27 10:28:00 +00:00
..
2018-08-24 12:22:19 -07:00
2017-07-05 22:38:29 +02:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2017-02-13 14:58:10 +01:00
2014-09-08 20:21:42 -06:00
2018-02-22 21:34:53 +05:30
2019-05-09 15:24:18 -04:00
2014-09-08 20:21:42 -06:00
2014-12-18 12:54:02 -05:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2015-08-06 09:45:11 -07:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2018-03-18 13:31:44 +01:00
2018-02-22 21:34:53 +05:30
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2017-02-13 14:35:52 +01:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-12-18 12:54:02 -05:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2014-09-08 20:21:42 -06:00
2018-02-22 21:34:53 +05:30