diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2019-12-08 11:41:29 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2019-12-10 15:11:53 +0100 |
commit | 53ce7140059c07019489fc0eae522e9f76fcb08b (patch) | |
tree | 32c28d98361a714f1862758d60cc7e4b9e5883f2 /components/layout_2020/flow/float.rs | |
parent | a17db217a18e8646c4e8c64b81533469ecbd2580 (diff) | |
download | servo-53ce7140059c07019489fc0eae522e9f76fcb08b.tar.gz servo-53ce7140059c07019489fc0eae522e9f76fcb08b.zip |
Fix a “Accessing content size that was not requested” panic
Percentage `width` are treated as `auto` for the purpose of
min/max-content computation, so they also need to be considered
when testing “wether width is auto”
Diffstat (limited to 'components/layout_2020/flow/float.rs')
-rw-r--r-- | components/layout_2020/flow/float.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout_2020/flow/float.rs b/components/layout_2020/flow/float.rs index 2acc2095004..df9cbbaf514 100644 --- a/components/layout_2020/flow/float.rs +++ b/components/layout_2020/flow/float.rs @@ -33,7 +33,7 @@ impl FloatBox { display_inside: DisplayInside, contents: Contents<impl NodeExt<'dom>>, ) -> Self { - let content_sizes = ContentSizesRequest::inline_if(style.inline_size_is_auto()); + let content_sizes = ContentSizesRequest::inline_if(!style.inline_size_is_length()); Self { contents: IndependentFormattingContext::construct( context, |