aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/conversions.rs
diff options
context:
space:
mode:
authorOriol Brufau <obrufau@igalia.com>2024-12-10 12:12:28 +0100
committerGitHub <noreply@github.com>2024-12-10 11:12:28 +0000
commite10e989abb884f3c83a5c35d4c1b1be887ec0bb1 (patch)
tree6c58c3247d565cbc09f8a61b5a6811a893248935 /components/script/conversions.rs
parent2b8a8f74985300e7a2407384f60fc304922a05a5 (diff)
downloadservo-e10e989abb884f3c83a5c35d4c1b1be887ec0bb1.tar.gz
servo-e10e989abb884f3c83a5c35d4c1b1be887ec0bb1.zip
Don't transfer indefinite `height: stretch` to inline axis (#34557)
Consider this testcase: ```html <canvas style="aspect-ratio: 1; height: stretch; background: cyan" width="200" height="100"></canvas> ``` To compute the intrinsic inline sizes we were treating `height: stretch` as the natural height (100px) and then transferring that to the inline axis through the preferred aspect ratio. So the element was 100px wide. However, an indefinite `stretch` should be treated as an automatic size, which wouldn't be transferred to the inline axis. The fix actually makes the code slightly simpler. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Diffstat (limited to 'components/script/conversions.rs')
0 files changed, 0 insertions, 0 deletions