aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/table/construct.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2024-03-08 11:32:51 +0100
committerGitHub <noreply@github.com>2024-03-08 10:32:51 +0000
commit49ae9bb4422b6d72ebbeb67b59e9ac734e8363b5 (patch)
treeb2b0a0e4555d78cdb80e07858c480a8ec1f3d3c5 /components/layout_2020/table/construct.rs
parenta5a0e1cb3c339f9314777ebe18c88ca7c933b2c0 (diff)
downloadservo-49ae9bb4422b6d72ebbeb67b59e9ac734e8363b5.tar.gz
servo-49ae9bb4422b6d72ebbeb67b59e9ac734e8363b5.zip
layout: Fix the pseudo for anonymous tables (#31578)
Anonymous tables should not use legacy pseudos, as the legacy layout engine had them inherit lots of random properites that lead to bad layout in the new layout engine. Co-authored-by: Oriol Brufau <obrufau@igalia.com>
Diffstat (limited to 'components/layout_2020/table/construct.rs')
-rw-r--r--components/layout_2020/table/construct.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/components/layout_2020/table/construct.rs b/components/layout_2020/table/construct.rs
index fc9d3c3406b..fe419c04c71 100644
--- a/components/layout_2020/table/construct.rs
+++ b/components/layout_2020/table/construct.rs
@@ -84,9 +84,7 @@ impl Table {
.stylist
.style_for_anonymous::<Node::ConcreteElement>(
&context.shared_context().guards,
- // TODO: This should be updated for Layout 2020 once we've determined
- // which styles should be inherited for tables.
- &PseudoElement::ServoLegacyAnonymousTable,
+ &PseudoElement::ServoAnonymousTable,
&parent_info.style,
);
let anonymous_info = parent_info.new_replacing_style(anonymous_style.clone());