diff options
author | Martin Robinson <mrobinson@igalia.com> | 2023-10-19 15:43:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-19 13:43:55 +0000 |
commit | fd31da9102497cfaf5265bbab17df4424a8a1078 (patch) | |
tree | 1433f9c69456146ab4045fdd4a379f9b87185b6f /components/layout_2020/flexbox/construct.rs | |
parent | 634a5d9cf5cf45eaa284a8b4dfb0e1cdf75e08e6 (diff) | |
download | servo-fd31da9102497cfaf5265bbab17df4424a8a1078.tar.gz servo-fd31da9102497cfaf5265bbab17df4424a8a1078.zip |
Anonymous boxes that wrap inlines should not inherit overflow (#30579)
In legacy layout, anonymous text wrappers were inheriting the `overflow`
and `text-overflow` properties. This results in the creation of extra
clipping for these anonymous wrappers which could clip away floats. We
will likely implement `text-overflow` differently in non-legacy layout.
This change marks all legacy layout pseudo elements as "legacy" and also
adds a new pseudo element for non-legacy layout that does not inherit
`overflow`.
Fixes #30562.
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
Diffstat (limited to 'components/layout_2020/flexbox/construct.rs')
-rw-r--r-- | components/layout_2020/flexbox/construct.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout_2020/flexbox/construct.rs b/components/layout_2020/flexbox/construct.rs index c775fccd153..cc2abc6630c 100644 --- a/components/layout_2020/flexbox/construct.rs +++ b/components/layout_2020/flexbox/construct.rs @@ -132,7 +132,7 @@ where .stylist .style_for_anonymous::<Node::ConcreteElement>( &self.context.shared_context().guards, - &style::selector_parser::PseudoElement::ServoText, + &style::selector_parser::PseudoElement::ServoAnonymousBox, &self.info.style, ), ) |