servo/components
Oriol Brufau ab270f3d52
layout: Never stretch indefinite intrinsic keywords other than auto (#34672)
Consider:
```html
<div style="position: relative; width: 50px; height: 50px; border: solid; margin: 5px">
  <div style="position: absolute; top: 0; bottom: 0; height: max-content">
    <canvas width="25" height="25" style="background: cyan; height: 100%"></canvas>
  </div>
</div>
```

In order to determine the inline min/max-content sizes, we need a
tentative block size as the input, which only takes extrinsic values
into account.

In this case `height: max-content` is intrinsic, so we were treating it
as `height: initial`, which would behave as a definite `height: stretch`.
Therefore, the canvas was able to resolve its percentage.

However, it seems weird to treat an explicitly intrinsic keyword in an
extrinsic way, and Blink doesn't do it. So now we treat the tentative
block size as indefinite, therefore the percentage behaves as auto.

This adds a new test, we were previously failing 6 subtests, now only 3.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2024-12-18 22:21:47 +00:00
..
allocator Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
background_hang_monitor Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
bluetooth Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
canvas Remove some unused dependencies (#34355) 2024-11-25 10:29:58 +00:00
compositing Add embedder event for preferred color scheme and respond to it in the LayoutThread (#34532) 2024-12-12 06:17:02 +00:00
config script: Add stub interface for AbortController. (#34519) 2024-12-10 07:31:04 +00:00
config_plugins add allow(non_camel_case_types) to generated pref structs (#33987) 2024-10-24 09:36:13 +00:00
constellation Replace HistoryEntryReplacement with NavigationHistoryBehavior from the navigation API (#34681) 2024-12-18 12:47:20 +00:00
deny_public_fields Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
devtools Fix devtools timeout with Firefox 133 (#34602) 2024-12-12 23:38:24 +00:00
dom_struct Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
domobject_derive Replace ShouldNotImplDomObject with NoDomObjectInDomObject (#33627) 2024-10-03 12:58:34 +00:00
fonts Don't trace SystemFontService loop (#34508) 2024-12-06 17:05:18 +00:00
geometry servoshell: Allow overriding screen resolution with a command-line argument (#34038) 2024-10-30 11:54:13 +00:00
hyper_serde Stop using time@0.1 in Servo (#33394) 2024-09-11 07:09:56 +00:00
jstraceable_derive Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
layout script: Manage <iframe> sizes in Window (#34643) 2024-12-16 15:05:33 +00:00
layout_2020 layout: Never stretch indefinite intrinsic keywords other than auto (#34672) 2024-12-18 22:21:47 +00:00
layout_thread script: Manage <iframe> sizes in Window (#34643) 2024-12-16 15:05:33 +00:00
layout_thread_2020 script: Manage <iframe> sizes in Window (#34643) 2024-12-16 15:05:33 +00:00
malloc_size_of script: No longer do explicit reflows for display (#34599) 2024-12-13 13:25:47 +00:00
media Remove some unused dependencies (#34355) 2024-11-25 10:29:58 +00:00
metrics Remove some unused dependencies (#34355) 2024-11-25 10:29:58 +00:00
net websocket: Revert use of h2 in websocket ALPN. (#34634) 2024-12-16 06:47:33 +00:00
pixels Optimized unmultiply_inplace to remove fp ops (#33582) 2024-09-30 19:39:27 +00:00
profile [NFC] Remove unused interval profiler events (#34285) 2024-11-19 07:18:52 +00:00
rand crypto: Begin SubtleCrypto implementation (#33628) 2024-10-08 03:51:08 +00:00
range Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
script Replace HistoryEntryReplacement with NavigationHistoryBehavior from the navigation API (#34681) 2024-12-18 12:47:20 +00:00
servo libservo: update stylo preferences in multiprocess mode. (#34661) 2024-12-17 09:02:50 +00:00
shared Replace HistoryEntryReplacement with NavigationHistoryBehavior from the navigation API (#34681) 2024-12-18 12:47:20 +00:00
url Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
webdriver_server Allow running testharness/testdriver/reftests in servodriver (#34550) 2024-12-11 19:18:44 +00:00
webgpu Update wgpu to better handle optional attachment load/store ops (#34646) 2024-12-16 18:58:53 +00:00