servo/tests/wpt/meta/css/cssom-view
Martin Robinson ebfb5b1abb
libservo: Make Servo (and servoshell) more resilient against extreme sizes (#39204)
Make several changes which should address panics and inconsistent
behavior around attempts to set extreme sizes:

1. Limit the minimum size of the `RenderingContext` to 1 pixel by 1
   pixel. This should address problems where users of the API try to
   directly set the size to a zero or negative dimension. In addition,
   improve the documentation around `WebView::resize` to mention this.
2. Clamp values sent in the `WebViewDelegate::request_resize_to` method
   to be at least 1x1. This prevents Servo from sending nonsense values
   to embedders. Improve documentation in this method.
3. In servoshell:
    - More consistently clamp inner and outer window size values.
    - Clamp all resize values to the available screen size, so that
      large screen sizes aren't processed directly.

Testing: This change fixes an existing WPT and adds two new API tests.
Fixes: #36763.
Fixes: #36841.
Fixes: #39141.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2025-09-09 12:51:30 +00:00
..
parsing
checkVisibility.html.ini Include non-shadowdom children of shadow hosts in style calculation (#34298) 2024-11-20 19:28:35 +00:00
cssom-getBoundingClientRect-003.html.ini
cssom-getBoxQuads-001.html.ini
cssom-getBoxQuads-002.html.ini
cssom-view-img-attributes-001.html.ini
Element-currentCSSZoom.html.ini Update web-platform-tests to revision b'16f18d8135a80e89f2e910ca7548999fa2f7937e' (#31951) 2024-03-31 05:15:08 +00:00
elementFromPoint.html.ini script: Implement scrollIntoView (#38230) 2025-08-06 08:08:25 +00:00
elementFromPosition.html.ini
elementsFromPoint-inline-vlr-rtl.html.ini
elementsFromPoint-inline-vrl-ltr.html.ini
elementsFromPoint-inline-vrl-rtl.html.ini
elementsFromPoint-shadowroot.html.ini Enable Shadow DOM for tests (#34299) 2024-11-20 05:57:50 +00:00
elementsFromPoint-svg-text.html.ini
elementsFromPoint-svg.html.ini
elementsFromPoint-table.html.ini layout: Properly parent table-row and table-row-group (#31619) 2024-03-14 10:33:42 +00:00
elementsFromPoint.html.ini script: support inline SVG by serializing the subtree (#38188) 2025-08-11 11:07:59 +00:00
getBoundingClientRect-newline.html.ini Sync WPT with upstream (13-04-2025) (#36488) 2025-04-13 02:52:15 +00:00
getBoundingClientRect-shy.html.ini layout: Implement node geometry queries against BoxTree's Fragment (#36663) 2025-04-25 13:38:05 +00:00
getBoundingClientRect-zoom.html.ini Update web-platform-tests to revision b'5049a31d2a7eebd7bca08317e56664021a8bd36c' (#31085) 2024-01-14 04:22:04 +00:00
getClientRects-br-vlr-rtl.html.ini
getClientRects-br-vrl-ltr.html.ini
getClientRects-br-vrl-rtl.html.ini
getClientRects-zoom.html.ini layout: Add basic support for getClientRects() queries (#31696) 2024-03-15 17:20:47 +00:00
HTMLBody-ScrollArea_quirksmode.html.ini Implement document.scrollingElement (#35994) 2025-05-05 12:50:42 +00:00
idlharness.html.ini script/layout: Implement HTMLElement.scrollParent (#39110) 2025-09-03 18:52:15 +00:00
image-x-y-zoom.html.ini Sync WPT with upstream (28-01-2024) (#31204) 2024-01-28 18:33:58 +00:00
inheritance.html.ini
interrupt-hidden-smooth-scroll.html.ini Update web-platform-tests to revision b'8686b7a6d288d3b2c22b5ddb5a21773619b22b85' (#34202) 2024-11-10 01:42:44 +00:00
matchMedia.html.ini Update web-platform-tests to revision b'ebe057a1153d34042bac1ff3dc944220876f69ec' (#33116) 2024-08-19 07:45:30 +00:00
MediaQueryList-addListener-handleEvent.html.ini layout: Allow same ScriptThread <iframe>s to be resized synchronously (#34656) 2024-12-17 09:37:52 +00:00
MediaQueryList-addListener-removeListener.html.ini layout: Allow same ScriptThread <iframe>s to be resized synchronously (#34656) 2024-12-17 09:37:52 +00:00
offsetParent-fixed.html.ini Sync WPT with upstream (03-08-2025) (#38434) 2025-08-03 01:48:15 +00:00
offsetParent_element_test.html.ini
offsetTop-offsetLeft-with-zoom.html.ini Sync WPT with upstream (25-12-2023) (#30938) 2023-12-26 08:08:45 +00:00
offsetTopLeft-trailing-space-inline.html.ini
outer-svg.html.ini layout: Improve sizing for inline SVG (#38603) 2025-08-12 12:45:15 +00:00
overflow-hidden-smooth-scroll-crash.html.ini Make Crashtests with test-wait wait (#33344) 2024-09-10 15:19:18 +00:00
position-sticky-root-scroller-with-scroll-behavior.html.ini
range-bounding-client-rect-with-display-contents.html.ini
range-bounding-client-rect-with-nested-text.html.ini Update web-platform-tests to revision b'16f18d8135a80e89f2e910ca7548999fa2f7937e' (#31951) 2024-03-31 05:15:08 +00:00
range-client-rects-surrogate-indexing.html.ini Sync WPT with upstream (20-07-2025) (#38178) 2025-07-20 15:11:10 +00:00
screen-detached-frame.html.ini Sync WPT with upstream (12-11-2023) (#30724) 2023-11-15 05:55:31 +00:00
screenLeftTop.html.ini
scroll-behavior-default-css.html.ini Update web-platform-tests to revision b'a85f0dfe538b9cb894388a65dba7a2a21db050c7' (#30879) 2023-12-17 11:15:38 +00:00
scroll-behavior-element.html.ini script: Implement scrollIntoView (#38230) 2025-08-06 08:08:25 +00:00
scroll-behavior-main-frame-root.html.ini script: Implement scrollIntoView (#38230) 2025-08-06 08:08:25 +00:00
scroll-behavior-main-frame-window.html.ini Implement document.scrollingElement (#35994) 2025-05-05 12:50:42 +00:00
scroll-behavior-scrollintoview-nested.html.ini Update web-platform-tests to revision b'a85f0dfe538b9cb894388a65dba7a2a21db050c7' (#30879) 2023-12-17 11:15:38 +00:00
scroll-behavior-smooth-navigation.html.ini Sync WPT with upstream (10-07-2025) (#37974) 2025-07-10 03:09:13 +00:00
scroll-behavior-smooth-positions.html.ini script: Implement scrollIntoView (#38230) 2025-08-06 08:08:25 +00:00
scroll-behavior-smooth.html.ini Update web-platform-tests to revision b'a85f0dfe538b9cb894388a65dba7a2a21db050c7' (#30879) 2023-12-17 11:15:38 +00:00
scroll-behavior-subframe-root.html.ini script: Implement scrollIntoView (#38230) 2025-08-06 08:08:25 +00:00
scroll-behavior-subframe-window.html.ini Implement document.scrollingElement (#35994) 2025-05-05 12:50:42 +00:00
scroll-zoom.html.ini Sync WPT with upstream (11-02-2024) (#31309) 2024-02-11 08:01:56 +00:00
scrollIntoView-fixed-outside-of-viewport.html.ini Update web-platform-tests to revision b'fc557e215e11221c91de4f283539725ef2f35928' (#35741) 2025-03-02 12:18:38 +00:00
scrollIntoView-fixed.html.ini script: Use HTMLElement.scrollParent to implement Element.scrollIntoView (#39144) 2025-09-07 21:44:11 +00:00
scrollIntoView-horizontal-tb-writing-mode-and-rtl-direction.html.ini
scrollIntoView-multiple-nested.html.ini script: Implement scrollIntoView (#38230) 2025-08-06 08:08:25 +00:00
scrollIntoView-multiple.html.ini script: Implement scrollIntoView (#38230) 2025-08-06 08:08:25 +00:00
scrollIntoView-scrolling-container.html.ini Sync WPT with upstream (13-06-2025) (#37436) 2025-06-13 14:15:36 +00:00
scrollIntoView-scrollMargin.html.ini
scrollIntoView-scrollPadding.html.ini
scrollIntoView-sideways-lr-writing-mode-and-rtl-direction.html.ini
scrollIntoView-sideways-lr-writing-mode.html.ini
scrollIntoView-sideways-rl-writing-mode-and-rtl-direction.html.ini
scrollIntoView-sideways-rl-writing-mode.html.ini
scrollIntoView-smooth.html.ini script: Implement scrollIntoView (#38230) 2025-08-06 08:08:25 +00:00
scrollIntoView-stuck.tentative.html.ini
scrollIntoView-svg-shape.html.ini
scrollIntoView-vertical-lr-writing-mode-and-rtl-direction.html.ini
scrollIntoView-vertical-lr-writing-mode.html.ini script: Implement scrollIntoView (#38230) 2025-08-06 08:08:25 +00:00
scrollIntoView-vertical-rl-writing-mode.html.ini
scrollintoview-zero-height-item.html.ini Update web-platform-tests to revision b'3634d5a63f2fa3969616396d95537c91c3348fe5' (#32959) 2024-08-07 10:15:56 +00:00
scrollLeft-of-scroller-with-wider-scrollbar.html.ini
scrollLeftTop.html.ini script: Get scroll offsets from layout (#37509) 2025-06-20 09:39:12 +00:00
scrollParent-shadow-tree.html.ini script/layout: Implement HTMLElement.scrollParent (#39110) 2025-09-03 18:52:15 +00:00
scrollWidthHeight-negative-margin-002.html.ini Fix scrollWidthHeight-negative-margin-002.html (#37721) 2025-06-26 12:08:30 +00:00
scrollWidthHeight.xht.ini
scrollWidthHeightWhenNotScrollable.xht.ini Update web-platform-tests to revision b'38623a53d6598cb7aab4be8a810102b352a652df' (#34622) 2024-12-15 03:52:07 +00:00
smooth-scroll-in-load-event.html.ini Sync WPT with upstream (03-03-2024) (#31482) 2024-03-03 09:03:40 +00:00
smooth-scroll-nonstop.html.ini Update web-platform-tests to revision b'c23b0ad587af296087067b48a2f2101233589a8f' (#35869) 2025-03-09 01:39:16 +00:00
smooth-scrollIntoView-with-smooth-fragment-scroll.html.ini Update web-platform-tests to revision b'f46bf6aa167e2838a8b93501a1a998ffde90d879' (#32581) 2024-06-23 06:21:30 +00:00
subpixel-sizes-and-offsets.tentative.html.ini Don't use cached client_rect() when a reflow is needed (#31210) 2024-01-29 14:59:36 +00:00
table-scroll-props.html.ini layout: Account for transform in scrollable overflow (#36138) 2025-04-29 09:37:27 +00:00
window-scroll-arguments.html.ini Sync WPT with upstream (20-07-2025) (#38178) 2025-07-20 15:11:10 +00:00