servo/components
Oriol Brufau 202cac900d
layout: Restrict stretch alignment to flex items with computed auto size (#36288)
We were allowing `align-self: stretch` to stretch flex items whose cross
size behaves as `auto`, including cyclic percentages.

However, https://github.com/w3c/csswg-drafts/issues/4525 resolved that
stretching should only happen when the cross size computes to `auto`.

So this patch exposes this information in `ContentBoxSizesAndPBM`, and
refactors the flexbox stretching logic.

Fixes: #36285

Testing:
 - `/css/css-flexbox/quirks-auto-block-size-with-percentage-item.html`
 - `/css/css-flexbox/stretch-requires-computed-auto-size.html`

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2025-04-04 10:15:40 +00:00
..
allocator Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
background_hang_monitor Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
bluetooth Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
canvas canvas: Implement line dash setters and getters (#36257) 2025-04-01 11:22:00 +00:00
compositing Separate WebviewManager from Webview in compositor and constellation (#36302) 2025-04-04 07:34:19 +00:00
config libservo: Remove a couple EmbedderMethods (#36276) 2025-04-01 22:59:50 +00:00
constellation webgpu: Add a webgpu_traits crate (#36320) 2025-04-04 08:06:07 +00:00
deny_public_fields
devtools devtools: Fix id collisions by using incrementing counters (#35971) 2025-04-01 09:00:40 +00:00
dom_struct script: Feature-gate all crown support. (#35055) 2025-01-18 21:36:15 +00:00
domobject_derive Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
fonts Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
geometry
hyper_serde Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
jstraceable_derive
layout_2020 layout: Restrict stretch alignment to flex items with computed auto size (#36288) 2025-04-04 10:15:40 +00:00
layout_thread_2020 Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
malloc_size_of Cleanup Stylo dependencies (#36046) 2025-03-19 08:53:26 +00:00
media Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
metrics Made MAX_TASK_NS u128. Also removed a superfluous into(). Both were required to fix #36122 with nightly 1.85.0 (4d91de4e4 2025-02-17). (#36169) 2025-03-27 10:02:53 +00:00
net Webdriver delete cookie (#36306) 2025-04-04 05:24:47 +00:00
pixels Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
profile Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
rand Migrate to the 2024 edition (#35755) 2025-03-13 10:28:11 +00:00
range
script webgpu: Add a webgpu_traits crate (#36320) 2025-04-04 08:06:07 +00:00
script_bindings Move generated bindings to script_bindings (#36323) 2025-04-04 06:45:08 +00:00
servo Support single-value <select> elements (#35684) 2025-04-03 12:11:55 +00:00
shared webgpu: Add a webgpu_traits crate (#36320) 2025-04-04 08:06:07 +00:00
timers Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
url Eliminate to_shmem dependency from servo_url (#35897) 2025-03-11 00:33:39 +00:00
webdriver_server Webdriver delete cookie (#36306) 2025-04-04 05:24:47 +00:00
webgpu webgpu: Add a webgpu_traits crate (#36320) 2025-04-04 08:06:07 +00:00
webxr Use Window in new methods instead of GlobalScope for interfaces with … (#36133) 2025-04-02 14:50:56 +00:00