Truly independent web browser
LibWeb: Lay out MathML elements with a MathML formatting context
Andreas Kling5515270f4da4
diff --git a/Libraries/LibWeb/CSS/StyleEngineInput.cpp b/Libraries/LibWeb/CSS/StyleEngineInput.cppindex cd5230da658..99b8c8add5e 100644--- a/Libraries/LibWeb/CSS/StyleEngineInput.cpp+++ b/Libraries/LibWeb/CSS/StyleEngineInput.cpp@@ -49,6 +49,7 @@#include <LibWeb/Layout/ImageProvider.h>#include <LibWeb/Layout/LayoutRustBridge.h>#include <LibWeb/Layout/RenderDocument.h>+#include <LibWeb/MathML/TagNames.h>#include <LibWeb/SVG/SVGClipPathElement.h>#include <LibWeb/SVG/SVGElement.h>#include <LibWeb/SVG/SVGGraphicsElement.h>@@ -1135,7 +1136,79 @@ enum ElementConstructionFact : u32 {ConstructedAsDocumentElement = 1 << 6,IsSvgResourceElement = 1 << 7,IsSvgGeometryElement = 1 << 8,+ // The layout algorithm a MathML element's tag name selects, as a MathMLLayoutKind in these bits.+ MathMLLayoutKindShift = 16,+ MathMLLayoutKindMask = 0x1f << MathMLLayoutKindShift,};++// The layout algorithm a MathML element's tag name selects when its display is block math or inline math.+// Mirrors Rust `MathLayoutKind`.+enum class MathMLLayoutKind : u32 {+ NotMathML,+ Mrow,+ Math,+ Token,+ Mo,+ Mspace,+ Mfrac,+ Msqrt,+ Mroot,+ Msub,+ Msup,+ Msubsup,+ Munder,+ Mover,+ Munderover,+ Mmultiscripts,+ Mprescripts,+ None,+ Mpadded,+};++static MathMLLayoutKind mathml_layout_kind(DOM::Element const& element)+{+ if (element.namespace_uri() != Namespace::MathML)+ return MathMLLayoutKind::NotMathML;+ namespace TagNames = MathML::TagNames;+ auto const& name = element.local_name();+ if (name == TagNames::math)+ return MathMLLayoutKind::Math;+ if (first_is_one_of(name, TagNames::mi, TagNames::mn, TagNames::ms, TagNames::mtext, TagNames::annotation, TagNames::annotation_xml))+ return MathMLLayoutKind::Token;+ if (name == TagNames::mo)+ return MathMLLayoutKind::Mo;+ if (name == TagNames::mspace)+ return MathMLLayoutKind::Mspace;+ if (name == TagNames::mfrac)+ return MathMLLayoutKind::Mfrac;+ if (name == TagNames::msqrt)+ return MathMLLayoutKind::Msqrt;+ if (name == TagNames::mroot)+ return MathMLLayoutKind::Mroot;+ if (name == TagNames::msub)+ return MathMLLayoutKind::Msub;+ if (name == TagNames::msup)+ return MathMLLayoutKind::Msup;+ if (name == TagNames::msubsup)+ return MathMLLayoutKind::Msubsup;+ if (name == TagNames::munder)+ return MathMLLayoutKind::Munder;+ if (name == TagNames::mover)+ return MathMLLayoutKind::Mover;+ if (name == TagNames::munderover)+ return MathMLLayoutKind::Munderover;+ if (name == TagNames::mmultiscripts)+ return MathMLLayoutKind::Mmultiscripts;+ if (name == TagNames::mprescripts)+ return MathMLLayoutKind::Mprescripts;+ if (name == "none"sv)+ return MathMLLayoutKind::None;+ if (name == TagNames::mpadded)+ return MathMLLayoutKind::Mpadded;+ // https://w3c.github.io/mathml-core/#new-display-math-value+ // Unknown MathML elements behave the same as the <mrow> element.+ return MathMLLayoutKind::Mrow;+}u32 element_box_type_adjustment_facts(DOM::Element const& element){bool is_html_element = element.namespace_uri() == Namespace::HTML;@@ -1251,6 +1324,7 @@ static u32 element_construction_facts(DOM::Element const& element)set(element.is_document_element(), ElementConstructionFact::ConstructedAsDocumentElement);set(svg_element && svg_element->is_resource_element(), ElementConstructionFact::IsSvgResourceElement);set(element.is_svg_geometry_element(), ElementConstructionFact::IsSvgGeometryElement);+ facts |= to_underlying(mathml_layout_kind(element)) << ElementConstructionFact::MathMLLayoutKindShift;return facts;}diff --git a/Libraries/LibWeb/Rust/src/css/computed_value_views.rs b/Libraries/LibWeb/Rust/src/css/computed_value_views.rsindex 49cf662be7d..417270c3a76 100644--- a/Libraries/LibWeb/Rust/src/css/computed_value_views.rs+++ b/Libraries/LibWeb/Rust/src/css/computed_value_views.rs@@ -483,6 +483,7 @@ scalar_accessors! {font_descent: f32 => font_descent,font_x_height: f32 => font_x_height,font_zero_advance: f32 => font_zero_advance,+ math_style: u8 => math_style,}alignment: {webkit_box_orient: u8 => webkit_box_orient,diff --git a/Libraries/LibWeb/Rust/src/css/style/bridge.rs b/Libraries/LibWeb/Rust/src/css/style/bridge.rsindex f392cde1074..9ac961e9dcc 100644--- a/Libraries/LibWeb/Rust/src/css/style/bridge.rs+++ b/Libraries/LibWeb/Rust/src/css/style/bridge.rs@@ -754,6 +754,9 @@ pub mod element_construction_fact {pub const IS_DOCUMENT_ELEMENT: u32 = 1 << 6;pub const IS_SVG_RESOURCE_ELEMENT: u32 = 1 << 7;pub const IS_SVG_GEOMETRY_ELEMENT: u32 = 1 << 8;+ /// The layout algorithm a MathML element's tag name selects, as a `MathLayoutKind` in these bits.+ pub const MATHML_LAYOUT_KIND_SHIFT: u32 = 16;+ pub const MATHML_LAYOUT_KIND_MASK: u32 = 0x1f << MATHML_LAYOUT_KIND_SHIFT;}/// Which principal box an element asks for before its computed style has a say. The element's owndiff --git a/Libraries/LibWeb/Rust/src/layout/block_formatting_context.rs b/Libraries/LibWeb/Rust/src/layout/block_formatting_context.rsindex 4e65be93820..e06d8f8dd89 100644--- a/Libraries/LibWeb/Rust/src/layout/block_formatting_context.rs+++ b/Libraries/LibWeb/Rust/src/layout/block_formatting_context.rs@@ -655,6 +655,7 @@ impl<'pass> BlockFormattingContext<'pass> {formatting_context::FormattingContextType::Block| formatting_context::FormattingContextType::Flex| formatting_context::FormattingContextType::Grid+ | formatting_context::FormattingContextType::Math))}diff --git a/Libraries/LibWeb/Rust/src/layout/formatting_context.rs b/Libraries/LibWeb/Rust/src/layout/formatting_context.rsindex a01dceb6bb0..906a68471c4 100644--- a/Libraries/LibWeb/Rust/src/layout/formatting_context.rs+++ b/Libraries/LibWeb/Rust/src/layout/formatting_context.rs@@ -868,6 +868,7 @@ pub enum FormattingContextType {Grid,Table,Svg,+ Math,ReplacedWithChildren,InternalReplaced,InternalDummy,@@ -1139,6 +1140,7 @@ enum FormattingContextImplementation<'pass> {Grid(Box<grid_formatting_context::GridFormattingContext<'pass>>),Table(Box<table_formatting_context::TableFormattingContext<'pass>>),Svg(Box<svg_formatting_context::SvgFormattingContext<'pass>>),+ Math(Box<math_formatting_context::MathFormattingContext<'pass>>),ReplacedWithChildren,InternalReplaced,InternalDummy,@@ -1192,9 +1194,18 @@ pub(crate) fn formatting_context_type_created_by_node_data(if display.is_some_and(|display| display.is_grid_inside()) {return Some(FormattingContextType::Grid);}- if display.is_some_and(|display| display.is_math_inside())- || node_facts::node_creates_block_formatting_context(data, style, parent_is_flex_or_grid_container)- {+ // https://w3c.github.io/mathml-core/#new-display-math-value+ // MathML elements with a computed display value equal to block math or inline math control box generation and+ // layout according to their tag name.+ // NB: A box with inline children is a token element, or holds no MathML children, and lays them out in a block+ // formatting context.+ if display.is_some_and(|display| display.is_math_inside()) {+ if node_facts::has_flag(data, NodeFlag::ChildrenAreInline) {+ return Some(FormattingContextType::Block);+ }+ return Some(FormattingContextType::Math);+ }+ if node_facts::node_creates_block_formatting_context(data, style, parent_is_flex_or_grid_container) {return Some(FormattingContextType::Block);}if node_facts::has_flag(data, NodeFlag::ChildrenAreInline)@@ -1216,11 +1227,15 @@ pub(crate) fn formatting_context_type_created_by_node_data(}pub(crate) fn formatting_context_type_created_by_box(facts: NodeFacts<'_>) -> Option<FormattingContextType> {- formatting_context_type_created_by_node_data(+ let fc_type = formatting_context_type_created_by_node_data(facts.data(),facts.computed_values_view_if_styled(),facts.parent_is_flex_or_grid_container(),- )+ );+ if fc_type == Some(FormattingContextType::Math) && !facts.uses_math_layout() {+ return Some(FormattingContextType::Block);+ }+ fc_type}fn create_formatting_context_implementation<'pass>(@@ -1244,6 +1259,9 @@ fn create_formatting_context_implementation<'pass>(FormattingContextType::Svg => {FormattingContextImplementation::Svg(Box::new(svg_formatting_context::SvgFormattingContext::new(run)))}+ FormattingContextType::Math => {+ FormattingContextImplementation::Math(Box::new(math_formatting_context::MathFormattingContext::new(run)))+ }FormattingContextType::ReplacedWithChildren => FormattingContextImplementation::ReplacedWithChildren,FormattingContextType::InternalReplaced => FormattingContextImplementation::InternalReplaced,FormattingContextType::InternalDummy => FormattingContextImplementation::InternalDummy,@@ -1293,6 +1311,11 @@ pub(crate) fn independent_root_automatic_block_size(return automatic_content_block_size_of_completed_run.unwrap_or_default();}let style = StyleValues::for_node(callbacks, node);+ // https://w3c.github.io/mathml-core/#layout-algorithms+ // After calculating the line-ascent and line-descent of a math content box, its block size is set to their sum.+ if style.display().is_math_inside() {+ return automatic_content_block_size_of_completed_run.unwrap_or_default();+ }if style.display().is_flex_inside()&& let Some(automatic_content_block_size_reported_by_completed_run) =automatic_content_block_size_of_completed_run@@ -1971,6 +1994,17 @@ fn execute_formatting_context_run(context.run(run, body_input);ChildLayoutResult::default()}+ FormattingContextImplementation::Math(context) => {+ context.run(run, body_input);+ let baselines = context.derived_baselines_of_root_box();+ store_derived_baselines(run.records.used_values(run.box_), baselines);+ ChildLayoutResult {+ automatic_content_inline_size: context.automatic_content_inline_size(),+ automatic_content_block_size: context.automatic_content_block_size(),+ baselines,+ ..ChildLayoutResult::default()+ }+ }FormattingContextImplementation::ReplacedWithChildren => {replaced_with_children_formatting_context::layout_replaced_with_children(run, body_input)}@@ -2113,6 +2147,9 @@ fn execute_formatting_context_run(FormattingContextImplementation::Grid(context) => {context.parent_did_dimension();}+ FormattingContextImplementation::Math(context) => {+ context.parent_did_dimension();+ }FormattingContextImplementation::Svg(_) | FormattingContextImplementation::ReplacedWithChildren => {}FormattingContextImplementation::InternalReplaceddiff --git a/Libraries/LibWeb/Rust/src/layout/layout_node_arena.rs b/Libraries/LibWeb/Rust/src/layout/layout_node_arena.rsindex 5baf102152e..450dd050a63 100644--- a/Libraries/LibWeb/Rust/src/layout/layout_node_arena.rs+++ b/Libraries/LibWeb/Rust/src/layout/layout_node_arena.rs@@ -1279,6 +1279,8 @@ pub(crate) struct LayoutNodeArena {pub(super) searchable_text: Option<Vec<super::text_queries::MappedText>>,replaced_content_facts: Vec<ReplacedContentFactsSlot>,raw_table_column_spans: RefCell<HashMap<NodeSlotId, u32>>,+ /// The layout kind of each row built for a MathML element, from its tag name.+ math_layout_kinds: RefCell<HashMap<NodeSlotId, super::math_formatting_context::MathLayoutKind>>,replaced_paint_facts: RefCell<Arc<crate::painting::replaced_paint_facts::ReplacedPaintFactsTable>>,layer_image_paint_facts: RefCell<Arc<crate::painting::layer_image_paint_facts::LayerImagePaintFactsTable>>,svg_paint_resources: crate::painting::svg_paint_resources::SvgPaintResources,@@ -1394,6 +1396,7 @@ impl LayoutNodeArena {searchable_text: None,replaced_content_facts: Vec::new(),raw_table_column_spans: RefCell::default(),+ math_layout_kinds: RefCell::default(),replaced_paint_facts: RefCell::default(),layer_image_paint_facts: RefCell::default(),svg_paint_resources: crate::painting::svg_paint_resources::SvgPaintResources::default(),@@ -1750,6 +1753,7 @@ impl LayoutNodeArena {self.in_flow_block_cache_store.remove_entry(index);self.remove_layout_update_flag_node(id);self.raw_table_column_spans.get_mut().remove(&id);+ self.math_layout_kinds.get_mut().remove(&id);if self.replaced_paint_facts.get_mut().contains_key(&id) {Arc::make_mut(self.replaced_paint_facts.get_mut()).remove(&id);}@@ -3944,6 +3948,11 @@ impl LayoutNodeArena {self.with_style_store(|engine| engine.element_construction_facts(style_node))});data.set_flags(super::node_facts::construction_flags(kind, false, construction_facts));+ let math_layout_kind =+ super::math_formatting_context::MathLayoutKind::from_construction_facts(construction_facts);+ if math_layout_kind != super::math_formatting_context::MathLayoutKind::NotMathML {+ self.math_layout_kinds.borrow_mut().insert(slot, math_layout_kind);+ }if let Some(style_node) = style_node {self.stamp_dom_paint_facts(slot, style_node);// The name the document knows the row's node by. The mirror publishes one for an@@ -4576,6 +4585,11 @@ impl LayoutNodeArena {if parent_style.is_some_and(|style| super::node_facts::node_lays_out_in_columns(parent_data, style)) {facts |= AncestorFact::ParentLaysOutInColumns as u8;}+ if parent_style.is_some_and(|style| style.display().is_math_inside())+ && self.math_layout_kind(parent).uses_math_layout()+ {+ facts |= AncestorFact::ParentUsesMathLayout as u8;+ }if parent_style.is_none_or(|style| {!style.is_floating() && (style.display().is_flow_inside() || style.display().is_flow_root_inside())}) {@@ -5194,6 +5208,15 @@ impl LayoutNodeArena {effective_spans_changed || previous_raw_column_span.unwrap_or(1) != spans.raw_column_span}+ /// The layout algorithm the MathML element a row is built for selects by its tag name.+ pub(crate) fn math_layout_kind(&self, id: NodeSlotId) -> super::math_formatting_context::MathLayoutKind {+ self.math_layout_kinds+ .borrow()+ .get(&id)+ .copied()+ .unwrap_or(super::math_formatting_context::MathLayoutKind::NotMathML)+ }+pub(crate) fn raw_table_column_span(&self, id: NodeSlotId) -> u32 {// data() validates that id names a live slot with a matching generation.self.data(id);diff --git a/Libraries/LibWeb/Rust/src/layout/math_formatting_context.rs b/Libraries/LibWeb/Rust/src/layout/math_formatting_context.rsnew file mode 100644index 00000000000..3b8a9365e32--- /dev/null+++ b/Libraries/LibWeb/Rust/src/layout/math_formatting_context.rs@@ -0,0 +1,567 @@+/*+ * Copyright (c) 2026-present, the Ladybird developers.+ *+ * SPDX-License-Identifier: BSD-2-Clause+ */++// https://w3c.github.io/mathml-core/#layout-algorithms++use super::*;++/// The layout algorithm a MathML element's tag name selects when its computed display is block math or inline math.+/// Mirrors the C++ `MathMLLayoutKind`, which the element's construction facts carry.+#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]+#[repr(u8)]+pub(crate) enum MathLayoutKind {+ #[default]+ NotMathML,+ Mrow,+ Math,+ Token,+ Mo,+ Mspace,+ Mfrac,+ Msqrt,+ Mroot,+ Msub,+ Msup,+ Msubsup,+ Munder,+ Mover,+ Munderover,+ Mmultiscripts,+ Mprescripts,+ None,+ Mpadded,+}++impl MathLayoutKind {+ pub(crate) fn from_construction_facts(facts: u32) -> Self {+ use crate::css::style::bridge::element_construction_fact::{MATHML_LAYOUT_KIND_MASK, MATHML_LAYOUT_KIND_SHIFT};+ match (facts & MATHML_LAYOUT_KIND_MASK) >> MATHML_LAYOUT_KIND_SHIFT {+ 1 => Self::Mrow,+ 2 => Self::Math,+ 3 => Self::Token,+ 4 => Self::Mo,+ 5 => Self::Mspace,+ 6 => Self::Mfrac,+ 7 => Self::Msqrt,+ 8 => Self::Mroot,+ 9 => Self::Msub,+ 10 => Self::Msup,+ 11 => Self::Msubsup,+ 12 => Self::Munder,+ 13 => Self::Mover,+ 14 => Self::Munderover,+ 15 => Self::Mmultiscripts,+ 16 => Self::Mprescripts,+ 17 => Self::None,+ 18 => Self::Mpadded,+ _ => Self::NotMathML,+ }+ }++ /// Whether boxes of this kind lay out their children with a MathML layout algorithm. Token elements lay out their+ /// text as a block box.+ pub(crate) fn uses_math_layout(self) -> bool {+ !matches!(self, Self::NotMathML | Self::Token | Self::Mo)+ }+}++/// An in-flow child box after its layout. The ascent and descent are measured from the alphabetic baseline to the+/// line-over and line-under edges of the child's margin box.+#[derive(Clone, Copy)]+struct Child {+ node: Node,+ inline_size: CssPixels,+ ascent: CssPixels,+ descent: CssPixels,+}++/// Where a child's margin box goes: its line-left offset, and how far its alphabetic baseline is shifted from the+/// alphabetic baseline of the math content towards the line-under.+#[derive(Clone, Copy, Default)]+struct ChildPosition {+ line_left_offset: CssPixels,+ baseline_shift: CssPixels,+}++/// The metrics of a math content box and the positions of its in-flow children.+#[derive(Default)]+struct MathContent {+ inline_size: CssPixels,+ ascent: CssPixels,+ descent: CssPixels,+ positions: Vec<ChildPosition>,+}++/// Font parameters used by math layout. Without an OpenType MATH table, these are the fallback values described in+/// https://w3c.github.io/mathml-core/#layout-constants-mathconstants+struct MathConstants {+ axis_height: CssPixels,+ default_rule_thickness: CssPixels,+ x_height: CssPixels,+ em: CssPixels,+}++impl MathConstants {+ fn for_style(style: &StyleValues<'_>) -> Self {+ let em = style.font_size();+ let x_height = CssPixels::nearest_value_for_f32(style.font_x_height());+ Self {+ // axisHeight: MATH.MathConstants.axisHeight or half OS/2.sxHeight if the constant is not available.+ axis_height: x_height / 2,+ // Default rule thickness: post.underlineThickness or Default fallback constant if the constant is not+ // available.+ // FIXME: Use post.underlineThickness of the first available font.+ // AD-HOC: Until then, use 0.05em, a typical underline thickness, rather than the Default fallback constant+ // of 0, which would make every gap based on the rule thickness disappear.+ default_rule_thickness: em.scaled(0.05),+ x_height,+ em,+ }+ }+}++pub(super) struct MathFormattingContext<'pass> {+ run: FormattingContextRun<'pass>,+ content: MathContent,+ derived_baselines_of_root_box: DerivedBaselines,+}++impl<'pass> MathFormattingContext<'pass> {+ pub(super) fn new(run: &FormattingContextRun<'pass>) -> Self {+ Self {+ run: FormattingContextRun {+ previous_line_data: None,+ ..run.clone()+ },+ content: MathContent::default(),+ derived_baselines_of_root_box: DerivedBaselines::default(),+ }+ }++ fn style(&self, node: Node) -> StyleValues<'pass> {+ StyleValues::for_node(&self.run.callbacks, node)+ }++ fn facts(&self, node: Node) -> NodeFacts<'_> {+ NodeFacts::new(&self.run.callbacks, node)+ }++ fn kind(&self, node: Node) -> MathLayoutKind {+ self.run.callbacks.arena().math_layout_kind(node)+ }++ fn in_flow_children(&self) -> Vec<Node> {+ // https://w3c.github.io/mathml-core/#css-styling+ // The float property does not create floating of elements whose parent's computed display value is block+ // math or inline math, and does not take them out-of-flow.+ self.run+ .callbacks+ .children(self.run.box_)+ .filter(|&child| {+ let facts = self.facts(child);+ facts.is_box()+ && !facts.is_absolutely_positioned()+ && !self.run.callbacks.can_skip_is_anonymous_text_run(child)+ })+ .collect()+ }++ fn layout_child(&self, child: Node, constraints: ContainingBlockConstraints) -> Child {+ let run = &self.run;+ run.records.create_used_values(&run.callbacks, child, constraints);+ // NB: MathML layout does not break lines, so each child is laid out at its max-content inline size, as an+ // atomic box whose block size follows from its content.+ let input = LayoutInput::new(+ AvailableSpace {+ inline_size: AvailableSize::MaxContent,+ block_size: AvailableSize::Indefinite,+ },+ constraints,+ ParticipationInParentFormattingContext::AtomicInline,+ );+ let used = run.records.used_values(child);+ let baselines =+ match formatting_context::layout_inside_child(run, None, None, child, run.layout_mode, input, true) {+ ChildLayoutOutcome::Created(result) => result.baselines,+ ChildLayoutOutcome::ReenterCurrent | ChildLayoutOutcome::Skipped => used.content_baselines_from_cells(),+ };+ let collapsed = used.uses_collapsing_borders_model.get();+ let block_size = used.margin_box_block_size(collapsed);+ // NB: A box without a baseline is aligned by its line-under margin edge.+ let ascent = baselines+ .first+ .map_or(block_size, |baseline| used.margin_box_top(collapsed) + baseline);+ Child {+ node: child,+ inline_size: used.margin_box_inline_size(collapsed),+ ascent,+ descent: block_size - ascent,+ }+ }++ pub(super) fn run(&mut self, run: &FormattingContextRun<'pass>, layout_input: LayoutInput) {+ let root = run.box_;+ let kind = self.kind(root);+ let constraints = run+ .sizing()+ .constraints_for_child_context(root, layout_input.containing_block_constraints);+ let children: Vec<Child> = self+ .in_flow_children()+ .into_iter()+ .map(|child| self.layout_child(child, constraints))+ .collect();++ let root_style = self.style(root);+ let constants = MathConstants::for_style(&root_style);+ let content = match (kind, children.len()) {+ (MathLayoutKind::Mfrac, 2) => self.layout_fraction(&children, &constants, &root_style),+ (MathLayoutKind::Msub, 2) => layout_scripts(&children[0], Some(&children[1]), None, &constants),+ (MathLayoutKind::Msup, 2) => layout_scripts(&children[0], None, Some(&children[1]), &constants),+ (MathLayoutKind::Msubsup, 3) => {+ layout_scripts(&children[0], Some(&children[1]), Some(&children[2]), &constants)+ }+ (MathLayoutKind::Munder, 2) => layout_underover(&children[0], Some(&children[1]), None, &constants),+ (MathLayoutKind::Mover, 2) => layout_underover(&children[0], None, Some(&children[1]), &constants),+ (MathLayoutKind::Munderover, 3) => {+ layout_underover(&children[0], Some(&children[1]), Some(&children[2]), &constants)+ }+ _ => layout_row(&children),+ };++ // https://w3c.github.io/mathml-core/#layout-algorithms+ // If a different size is specified for the content box, that size is used instead and the inline-start and+ // block-start edges of the math content box are aligned with the ones of the content box, unless otherwise+ // specified in a specific layout algorithm.+ let root_used = run.records.used_values(root);+ let content_box_inline_size = root_used.content_inline_size.get();+ let centers_math_content = match kind {+ // If the computed display property is equal to block math then that math content box is rendered+ // horizontally centered within the content box.+ MathLayoutKind::Math => self.facts(root).display().is_block_outside(),+ // The math content box is placed within the content box so that their block-start edges are aligned and+ // the middles of these edges are at the same position.+ MathLayoutKind::Mfrac | MathLayoutKind::Munder | MathLayoutKind::Mover | MathLayoutKind::Munderover => true,+ _ => false,+ };+ let content_box_is_known = run.layout_mode == LayoutMode::Normal && root_used.has_definite_inline_size();+ let is_rtl = root_style.direction() == direction::RTL;+ let mut math_content_line_left = CssPixels::default();+ if content_box_is_known {+ if centers_math_content {+ math_content_line_left = (content_box_inline_size - content.inline_size) / 2;+ } else if is_rtl {+ math_content_line_left = content_box_inline_size - content.inline_size;+ }+ }++ for (child, position) in children.iter().zip(content.positions.iter()) {+ let used = run.records.used_values(child.node);+ let collapsed = used.uses_collapsing_borders_model.get();+ let line_left_offset = if is_rtl {+ content.inline_size - position.line_left_offset - child.inline_size+ } else {+ position.line_left_offset+ };+ let margin_box_top = content.ascent + position.baseline_shift - child.ascent;+ let offset = FfiCssPixelPoint {+ x: math_content_line_left + line_left_offset + used.margin_left.get() + used.border_box_left(collapsed),+ y: margin_box_top + used.margin_box_top(collapsed),+ };+ formatting_context::place_child(run, child.node, offset, None);+ }++ self.derived_baselines_of_root_box = DerivedBaselines {+ first: Some(content.ascent),+ last: Some(content.ascent),+ };+ self.content = content;+ }++ // https://w3c.github.io/mathml-core/#fraction-with-nonzero-line-thickness+ fn layout_fraction(&self, children: &[Child], constants: &MathConstants, style: &StyleValues<'_>) -> MathContent {+ let numerator = &children[0];+ let denominator = &children[1];+ let is_display_style = style.math_style() == math_style::NORMAL;+ // FIXME: Support the linethickness attribute.+ let line_thickness = constants.default_rule_thickness;+ let half_thickness = line_thickness / 2;+ let axis_height = constants.axis_height;+ // NB: FractionNumeratorShiftUp and FractionDenominatorShiftDown fall back to 0.+ let (numerator_gap_min, denominator_gap_min) = if is_display_style {+ (+ constants.default_rule_thickness * 3usize,+ constants.default_rule_thickness * 3usize,+ )+ } else {+ (constants.default_rule_thickness, constants.default_rule_thickness)+ };++ // The inline size of the math content is the maximum between the inline size of the numerator's margin box+ // and the inline size of the denominator's margin box.+ let inline_size = numerator.inline_size.max(denominator.inline_size);++ // NumeratorShift is the maximum between FractionNumeratorShiftUp and the AxisHeight + half the fraction line+ // thickness + FractionNumeratorGapMin + the ink line-descent of the numerator's margin box.+ let numerator_shift =+ CssPixels::default().max(axis_height + half_thickness + numerator_gap_min + numerator.descent);+ // DenominatorShift is the maximum between FractionDenominatorShiftDown and half the fraction line thickness ++ // FractionDenominatorGapMin + the ink line-ascent of the denominator's margin box − the AxisHeight.+ let denominator_shift =+ CssPixels::default().max(half_thickness + denominator_gap_min + denominator.ascent - axis_height);++ let ascent = (numerator_shift + numerator.ascent)+ .max(denominator.ascent - denominator_shift)+ .max(axis_height + half_thickness);+ let descent = (numerator.descent - numerator_shift)+ .max(denominator_shift + denominator.descent)+ .max(half_thickness - axis_height)+ .max(CssPixels::default());++ MathContent {+ inline_size,+ ascent,+ descent,+ positions: vec![+ ChildPosition {+ line_left_offset: (inline_size - numerator.inline_size) / 2,+ baseline_shift: -numerator_shift,+ },+ ChildPosition {+ line_left_offset: (inline_size - denominator.inline_size) / 2,+ baseline_shift: denominator_shift,+ },+ ],+ }+ }++ pub(super) fn parent_did_dimension(&self) {+ if self.run.layout_mode != LayoutMode::Normal {+ return;+ }+ let root_used = self.run.records.used_values(self.run.box_);+ for child in self.run.callbacks.children(self.run.box_) {+ let facts = self.facts(child);+ if !facts.is_box() || !facts.is_absolutely_positioned() {+ continue;+ }+ let static_position_rect = abspos_inputs::StaticPositionRect {+ rect: geometry::LogicalRect {+ offset: Default::default(),+ size: geometry::LogicalSize {+ inline_size: root_used.content_inline_size.get(),+ block_size: root_used.content_block_size.get(),+ },+ },+ inline_alignment: abspos_inputs::StaticPositionAlignment::Start,+ block_alignment: abspos_inputs::StaticPositionAlignment::Start,+ alignment_derives_from_own_computed_values: false,+ is_known: true,+ };+ formatting_context::register_contained_abspos_child(+ &self.run.callbacks,+ self.run.fragments.as_deref(),+ self.run.box_,+ child,+ static_position_rect,+ None,+ );+ }+ }++ pub(super) fn derived_baselines_of_root_box(&self) -> DerivedBaselines {+ self.derived_baselines_of_root_box+ }++ pub(super) fn automatic_content_inline_size(&self) -> CssPixels {+ self.content.inline_size+ }++ pub(super) fn automatic_content_block_size(&self) -> CssPixels {+ self.content.ascent + self.content.descent+ }+}++// https://w3c.github.io/mathml-core/#layout-of-mrow+fn layout_row(children: &[Child]) -> MathContent {+ // FIXME: Add the lspace and rspace of embellished operators, and handle italic correction.+ let mut inline_offset = CssPixels::default();+ let mut ascent = CssPixels::default();+ let mut descent = CssPixels::default();+ let mut positions = Vec::with_capacity(children.len());+ for child in children {+ // Set the inline offset of the child to inline-offset and its block offset such that the alphabetic baseline+ // of the child is aligned with the alphabetic baseline.+ positions.push(ChildPosition {+ line_left_offset: inline_offset,+ baseline_shift: CssPixels::default(),+ });+ // Increment inline-offset by the inline size of the child's margin box.+ inline_offset += child.inline_size;+ // The line-ascent (respectively line-descent) of the math content is the maximum of the line-ascents+ // (respectively line-descents) of all the in-flow children's margin boxes.+ ascent = ascent.max(child.ascent);+ descent = descent.max(child.descent);+ }+ MathContent {+ inline_size: inline_offset,+ ascent,+ descent,+ positions,+ }+}++// https://w3c.github.io/mathml-core/#subscripts-and-superscripts-msub-msup-msubsup+fn layout_scripts(+ base: &Child,+ subscript: Option<&Child>,+ superscript: Option<&Child>,+ constants: &MathConstants,+) -> MathContent {+ // FIXME: Use the italic correction of the base and the MATH table constants of the font.+ // spaceAfterScript: MATH.MathConstants.spaceAfterScript or 1/24em if the constant is not available.+ let space_after_script = constants.em.scaled(1.0 / 24.0);+ // subscriptTopMax: ⅘ × OS/2.sxHeight if the constant is not available.+ let subscript_top_max = constants.x_height.scaled(0.8);+ // superscriptBottomMin: ¼ × OS/2.sxHeight if the constant is not available.+ let superscript_bottom_min = constants.x_height.scaled(0.25);+ // superscriptBottomMaxWithSubscript: ⅘ × OS/2.sxHeight if the constant is not available.+ let superscript_bottom_max_with_subscript = constants.x_height.scaled(0.8);+ // subSuperscriptGapMin: 4 × default rule thickness if the constant is not available.+ let sub_superscript_gap_min = constants.default_rule_thickness * 4usize;+ // FIXME: SubscriptShiftDown and SuperscriptShiftUp fall back to OS/2.ySubscriptYOffset and+ // OS/2.ySuperscriptYOffset, which are not available, so they are 0 here.+ // NB: SuperscriptShiftUpCramped, SubscriptBaselineDropMin and SuperscriptBaselineDropMax fall back to the Default+ // fallback constant, which is 0.++ // SubShift is the maximum between SubscriptShiftDown, the ink line-ascent of the subscript's margin box −+ // SubscriptTopMax, and SubscriptBaselineDropMin + the ink line-descent of the msub base's margin box.+ let mut sub_shift = subscript.map(|subscript| {+ CssPixels::default()+ .max(subscript.ascent - subscript_top_max)+ .max(base.descent)+ });+ // SuperShift is the maximum between SuperscriptShiftUp (or SuperscriptShiftUpCramped), SuperscriptBottomMin ++ // the ink line-descent of the superscript's margin box, and the ink line-ascent of the msup base's margin box −+ // SuperscriptBaselineDropMax.+ let mut super_shift = superscript.map(|superscript| {+ CssPixels::default()+ .max(superscript_bottom_min + superscript.descent)+ .max(base.ascent)+ });++ if let (Some(subscript), Some(superscript), Some(sub), Some(sup)) =+ (subscript, superscript, sub_shift.as_mut(), super_shift.as_mut())+ {+ // SubSuperGap is the gap between the two scripts along the block axis.+ let sub_super_gap = (*sub - subscript.ascent) + (*sup - superscript.descent);+ if sub_super_gap < sub_superscript_gap_min {+ // Let Δ be SuperscriptBottomMaxWithSubscript − (SuperShift − the ink line-descent of the msubsup+ // superscript's margin box). If Δ > 0 then set Δ to the minimum between Δ and SubSuperscriptGapMin −+ // SubSuperGap and increase SuperShift (and so SubSuperGap too) by Δ.+ let mut delta = superscript_bottom_max_with_subscript - (*sup - superscript.descent);+ let mut gap = sub_super_gap;+ if delta > CssPixels::default() {+ delta = delta.min(sub_superscript_gap_min - gap);+ *sup += delta;+ gap += delta;+ }+ // Let Δ be SubSuperscriptGapMin − SubSuperGap. If Δ > 0 then increase SubscriptShift by Δ.+ let delta = sub_superscript_gap_min - gap;+ if delta > CssPixels::default() {+ *sub += delta;+ }+ }+ }++ let mut ascent = base.ascent;+ let mut descent = base.descent;+ let mut positions = vec![ChildPosition::default()];+ let mut inline_size = base.inline_size;+ if let (Some(subscript), Some(sub)) = (subscript, sub_shift) {+ ascent = ascent.max(subscript.ascent - sub);+ descent = descent.max(subscript.descent + sub);+ positions.push(ChildPosition {+ line_left_offset: base.inline_size,+ baseline_shift: sub,+ });+ inline_size = inline_size.max(base.inline_size + subscript.inline_size + space_after_script);+ }+ if let (Some(superscript), Some(sup)) = (superscript, super_shift) {+ ascent = ascent.max(superscript.ascent + sup);+ descent = descent.max(superscript.descent - sup);+ positions.push(ChildPosition {+ line_left_offset: base.inline_size,+ baseline_shift: -sup,+ });+ inline_size = inline_size.max(base.inline_size + superscript.inline_size + space_after_script);+ }+ MathContent {+ inline_size,+ ascent,+ descent,+ positions,+ }+}++// https://w3c.github.io/mathml-core/#underscripts-and-overscripts-munder-mover-munderover+fn layout_underover(+ base: &Child,+ underscript: Option<&Child>,+ overscript: Option<&Child>,+ constants: &MathConstants,+) -> MathContent {+ // FIXME: Handle accents, large operators and operators stretchy along the inline axis.+ // underbarVerticalGap and overbarVerticalGap: 3 × default rule thickness if the constant is not available.+ let under_shift = constants.default_rule_thickness * 3usize;+ let over_shift = constants.default_rule_thickness * 3usize;+ // underbarExtraDescender and overbarExtraAscender: default rule thickness if the constant is not available.+ let under_extra_descender = constants.default_rule_thickness;+ let over_extra_ascender = constants.default_rule_thickness;++ // NB: The children are centered on the same vertical axis.+ let inline_size = [Some(base), underscript, overscript]+ .into_iter()+ .flatten()+ .map(|child| child.inline_size)+ .max()+ .unwrap_or_default();+ let centered = |child: &Child| (inline_size - child.inline_size) / 2;++ let mut ascent = base.ascent;+ let mut descent = base.descent;+ let mut positions = vec![ChildPosition {+ line_left_offset: centered(base),+ baseline_shift: CssPixels::default(),+ }];+ if let Some(underscript) = underscript {+ // AD-HOC: The underscript's margin box is placed UnderShift below the base's margin box, so that UnderShift is+ // the gap between them, rather than placing the alphabetic baseline of the underscript UnderShift+ // below the line-under edge of the base, which would make it overlap the base.+ let shift = base.descent + under_shift + underscript.ascent;+ descent = descent.max(shift + underscript.descent + under_extra_descender);+ positions.push(ChildPosition {+ line_left_offset: centered(underscript),+ baseline_shift: shift,+ });+ }+ if let Some(overscript) = overscript {+ // AD-HOC: The overscript's margin box is placed OverShift above the base's margin box, so that OverShift is+ // the gap between them, rather than placing the alphabetic baseline of the overscript OverShift above+ // the line-over edge of the base, which would make it overlap the base.+ let shift = base.ascent + over_shift + overscript.descent;+ ascent = ascent.max(shift + overscript.ascent + over_extra_ascender);+ positions.push(ChildPosition {+ line_left_offset: centered(overscript),+ baseline_shift: -shift,+ });+ }+ MathContent {+ inline_size,+ ascent,+ descent,+ positions,+ }+}diff --git a/Libraries/LibWeb/Rust/src/layout/mod.rs b/Libraries/LibWeb/Rust/src/layout/mod.rsindex 187b3de820e..91a8cdfa141 100644--- a/Libraries/LibWeb/Rust/src/layout/mod.rs+++ b/Libraries/LibWeb/Rust/src/layout/mod.rs@@ -36,6 +36,7 @@ mod layout_pass;pub(crate) mod line_box;pub(crate) mod line_box_fragment;pub(crate) mod line_builder;+pub(crate) mod math_formatting_context;pub mod node_data;pub(crate) mod node_facts;pub(crate) mod tree_shape;diff --git a/Libraries/LibWeb/Rust/src/layout/node_data.rs b/Libraries/LibWeb/Rust/src/layout/node_data.rsindex bcc52e42640..206dc696c0f 100644--- a/Libraries/LibWeb/Rust/src/layout/node_data.rs+++ b/Libraries/LibWeb/Rust/src/layout/node_data.rs@@ -236,6 +236,8 @@ pub(crate) enum AncestorFact {/// An anonymous box whose nearest non-anonymous ancestor puts an ellipsis on overflowing lines.InheritsTextOverflowEllipsis = 1 << 5,ParentLaysOutInColumns = 1 << 6,+ /// The parent lays out its children with a MathML layout algorithm.+ ParentUsesMathLayout = 1 << 7,}#[derive(Clone, Copy, Debug, Eq, PartialEq)]diff --git a/Libraries/LibWeb/Rust/src/layout/node_facts.rs b/Libraries/LibWeb/Rust/src/layout/node_facts.rsindex bd324ee2017..8e9308a08dd 100644--- a/Libraries/LibWeb/Rust/src/layout/node_facts.rs+++ b/Libraries/LibWeb/Rust/src/layout/node_facts.rs@@ -478,6 +478,11 @@ pub(crate) fn node_creates_block_formatting_context({return true;}+ // NB: MathML layout lays out each of its in-flow children as an atomic box, so a block container among them,+ // like an anonymous wrapper around text, establishes an independent formatting context.+ if has_ancestor_fact(data, AncestorFact::ParentUsesMathLayout) && display.is_block_outside() {+ return true;+ }}if has_flag(data, NodeFlag::IsHtmlHtmlElement)|| data.kind.get() == NodeKind::FieldSetBox@@ -1112,6 +1117,11 @@ impl<'pass> NodeFacts<'pass> {has_flag(self.data(), NodeFlag::UsesButtonLayout)}+ /// Whether the box is generated for a MathML element whose tag name selects a MathML layout algorithm.+ pub(crate) fn uses_math_layout(&self) -> bool {+ self.callbacks.arena().math_layout_kind(self.node).uses_math_layout()+ }+// https://drafts.csswg.org/css2/#propdef-vertical-align// Applies to: inline-level and table-cell elementspub(crate) fn vertical_align_applies(&self) -> bool {diff --git a/Libraries/LibWeb/Rust/src/layout/trace.rs b/Libraries/LibWeb/Rust/src/layout/trace.rsindex e4e16c3d7fa..e0aa624301c 100644--- a/Libraries/LibWeb/Rust/src/layout/trace.rs+++ b/Libraries/LibWeb/Rust/src/layout/trace.rs@@ -204,6 +204,7 @@ impl LayoutTrace {FormattingContextType::Grid => "grid",FormattingContextType::Table => "table",FormattingContextType::Svg => "svg",+ FormattingContextType::Math => "math",FormattingContextType::ReplacedWithChildren => "replaced-with-children",FormattingContextType::InternalReplaced => "internal-replaced",FormattingContextType::InternalDummy => "internal-dummy",diff --git a/Libraries/LibWeb/Rust/src/layout/tree_builder.rs b/Libraries/LibWeb/Rust/src/layout/tree_builder.rsindex 0b005851a75..2403b7263f7 100644--- a/Libraries/LibWeb/Rust/src/layout/tree_builder.rs+++ b/Libraries/LibWeb/Rust/src/layout/tree_builder.rs@@ -2043,7 +2043,11 @@ fn update_principal_node_descendants(let content_visibility_hidden = host.content_visibility_is_hidden(update.style_node);let (layout_node_can_have_children, layout_node_is_replaced_box_with_children) = {let layout_node_data = host.data(layout_node);- let can_have_children = node_facts::node_can_have_children(layout_node_data);+ // https://w3c.github.io/mathml-core/#space-mspace+ // The mspace empty element represents a blank space of any desired size, as set by its attributes.+ // NB: Its children therefore generate no boxes.+ let can_have_children = node_facts::node_can_have_children(layout_node_data)+ && host.arena().math_layout_kind(layout_node) != super::math_formatting_context::MathLayoutKind::Mspace;(can_have_children,node_facts::kind_is_replaced_box(layout_node_data.kind.get()) && can_have_children,@@ -3566,6 +3570,17 @@ fn node_is_out_of_flow(host: &TreeBuilderHost<'_>, node: LayoutNode) -> bool {node_facts::node_is_out_of_flow(host.data(node), host.style(node))}+fn node_is_out_of_flow_child_of(host: &TreeBuilderHost<'_>, parent: LayoutNode, node: LayoutNode) -> bool {+ if !node_is_out_of_flow(host, node) {+ return false;+ }+ // https://w3c.github.io/mathml-core/#css-styling+ // The float property does not create floating of elements whose parent's computed display value is block math or+ // inline math, and does not take them out-of-flow.+ let parent_lays_out_math = host.style(parent).is_some_and(|style| style.display().is_math_inside());+ !parent_lays_out_math || host.style(node).is_some_and(|style| style.is_absolutely_positioned())+}+fn node_has_replaced_element_table_display_adjustment(host: &TreeBuilderHost<'_>, node: LayoutNode) -> bool {node_facts::has_flag(host.data(node), NodeFlag::IsReplacedElement)&& host.style(node).is_some_and(|style| {@@ -4194,7 +4209,7 @@ fn insertion_parent_for_block_node(let new_parent_data = host.data(new_parent);// If the block is out-of-flow,- if node_is_out_of_flow(host, node) {+ if node_is_out_of_flow_child_of(host, new_parent, node) {let last_child = host.last_child(new_parent);assert!(!last_child.is_invalid());let last_child_data = host.data(last_child);@@ -4215,8 +4230,10 @@ fn insertion_parent_for_block_node(true}));let new_parent_display = host.style(new_parent).map(|style| style.display());+ // NB: Flex, grid and MathML layout lay out each of their children as its own box.if appends_after_existing_children- && !new_parent_display.is_some_and(|display| display.is_flex_inside() || display.is_grid_inside())+ && !new_parent_display+ .is_some_and(|display| display.is_flex_inside() || display.is_grid_inside() || display.is_math_inside())&& !node_is_generated_for_pseudo_element(last_child_data)&& node_facts::has_flag(last_child_data, NodeFlag::Anonymous)&& node_facts::has_flag(last_child_data, NodeFlag::ChildrenAreInline)@@ -4367,7 +4384,7 @@ fn insert_node_into_inline_or_block_ancestor(if is_inline_outside {// After inserting an inline-level box into a parent, mark the parent as having inline children.host.set_children_are_inline(insertion_point, true);- } else if !node_is_out_of_flow(host, node_slot) {+ } else if !node_is_out_of_flow_child_of(host, insertion_point, node_slot) {// Inline-flow parents keep their inline children flag; their IFC may contain interrupting blocks.if !node_is_inline_outside(host, insertion_point)|| !hostdiff --git a/Libraries/LibWeb/Rust/src/painting/layout_tree_dump.rs b/Libraries/LibWeb/Rust/src/painting/layout_tree_dump.rsindex ed826f98c5d..11384790490 100644--- a/Libraries/LibWeb/Rust/src/painting/layout_tree_dump.rs+++ b/Libraries/LibWeb/Rust/src/painting/layout_tree_dump.rs@@ -284,6 +284,7 @@ fn formatting_context_name(formatting_context_type: FormattingContextType) -> OpFormattingContextType::Grid => Some("GFC"),FormattingContextType::Table => Some("TFC"),FormattingContextType::Svg => Some("SVG"),+ FormattingContextType::Math => Some("MathFC"),_ => None,}}diff --git a/Tests/LibWeb/Layout/expected/css-namespace-tag-name-selector.txt b/Tests/LibWeb/Layout/expected/css-namespace-tag-name-selector.txtindex 5720f0c818c..8518e20d18d 100644--- a/Tests/LibWeb/Layout/expected/css-namespace-tag-name-selector.txt+++ b/Tests/LibWeb/Layout/expected/css-namespace-tag-name-selector.txt@@ -11,7 +11,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenSVGTextBox <text> at [20,16.015625] [0+0+0 198.90625 0+0+0] [0+0+0 80 0+0+0] children: inlineTextNode <#text> (not painted)TextNode <#text> (not painted)- BlockContainer <math> at [319,127] [0+1+0 102 0+1+0] [0+1+0 102 0+1+0] [BFC] children: not-inline+ BlockContainer <math> at [319,127] [0+1+0 102 0+1+0] [0+1+0 102 0+1+0] [MathFC] children: not-inlineBlockContainer <a> at [320,128] [0+1+0 100 0+1+0] [0+1+0 100 0+1+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 5, rect: [320,128 99.484375x40] baseline: 32"Hello"diff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/fractions/frac-1.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/fractions/frac-1.txtindex 00120d68558..d9d2cfe98a6 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/fractions/frac-1.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/fractions/frac-1.txt@@ -2,9 +2,9 @@ Harness status: OKFound 5 tests-5 Fail-Fail Fraction axis is aligned on the math axis-Fail Vertical positions of numerator and denominator-Fail Horizontal alignments of numerator and denominator-Fail Dimension of mfrac elements-Fail Preferred width of mfrac elements\ No newline at end of file+5 Pass+Pass Fraction axis is aligned on the math axis+Pass Vertical positions of numerator and denominator+Pass Horizontal alignments of numerator and denominator+Pass Dimension of mfrac elements+Pass Preferred width of mfrac elements\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mpadded/legacy-orthogonal-pseudo-units.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mpadded/legacy-orthogonal-pseudo-units.txtindex 1b2d444028e..8ef035c40c6 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mpadded/legacy-orthogonal-pseudo-units.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mpadded/legacy-orthogonal-pseudo-units.txt@@ -2,11 +2,11 @@ Harness status: OKFound 7 tests-7 Fail-Fail 200%height is not allowed on width-Fail 200%depth is not allowed on width-Fail 200%height is not allowed on lspace-Fail 200%depth is not allowed on lspace-Fail 200%width is not allowed on height-Fail 200%width is not allowed on depth-Fail 200%width is not allowed on voffset\ No newline at end of file+7 Pass+Pass 200%height is not allowed on width+Pass 200%depth is not allowed on width+Pass 200%height is not allowed on lspace+Pass 200%depth is not allowed on lspace+Pass 200%width is not allowed on height+Pass 200%width is not allowed on depth+Pass 200%width is not allowed on voffset\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mpadded/mpadded-percentage-002.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mpadded/mpadded-percentage-002.txtindex a8457879ccc..4d936769c54 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mpadded/mpadded-percentage-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mpadded/mpadded-percentage-002.txt@@ -2,9 +2,9 @@ Harness status: OKFound 5 tests-5 Fail-Fail width='200%' is interpreted as the default value-Fail height='200%' is interpreted as the default value-Fail depth='200%' is interpreted as the default value-Fail lspace='200%' is interpreted as the default value-Fail voffset='200%' is interpreted as the default value\ No newline at end of file+5 Pass+Pass width='200%' is interpreted as the default value+Pass height='200%' is interpreted as the default value+Pass depth='200%' is interpreted as the default value+Pass lspace='200%' is interpreted as the default value+Pass voffset='200%' is interpreted as the default value\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/inferred-mrow-baseline.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/inferred-mrow-baseline.txtindex d879decf3b3..55f3aafa921 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/inferred-mrow-baseline.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/inferred-mrow-baseline.txt@@ -2,7 +2,8 @@ Harness status: OKFound 14 tests-14 Fail+1 Pass+13 FailFail baseline alignment inside MrowFail baseline alignment inside SqrtFail baseline alignment inside Style@@ -12,7 +13,7 @@ Fail baseline alignment inside MathFail baseline alignment inside MencloseFail baseline alignment inside MpaddedFail baseline alignment inside Unknown-Fail baseline alignment inside Mtd+Pass baseline alignment inside MtdFail baseline alignment inside NoneFail baseline alignment inside MprescriptsFail baseline alignment inside Mfenceddiff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/legacy-mrow-like-elements-001.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/legacy-mrow-like-elements-001.txtindex 3959a63d12a..1f1f11afbb1 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/legacy-mrow-like-elements-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/legacy-mrow-like-elements-001.txt@@ -2,20 +2,20 @@ Harness status: OKFound 16 tests-16 Fail-Fail Element is laid out as an mrow with only first child displayed (id=semantics)-Fail Computed display of children (id=semantics)-Fail Element is laid out as an mrow with only first child displayed (id=semantics-annotations)-Fail Computed display of children (id=semantics-annotations)-Fail Element is laid out as an mrow with only first child displayed (id=maction)-Fail Computed display of children (id=maction)-Fail Element is laid out as an mrow with only first child displayed (id=maction-toggle)-Fail Computed display of children (id=maction-toggle)-Fail Element is laid out as an mrow with only first child displayed (id=maction-toggle-selection)-Fail Computed display of children (id=maction-toggle-selection)-Fail Element is laid out as an mrow with only first child displayed (id=maction-statusline)-Fail Computed display of children (id=maction-statusline)-Fail Element is laid out as an mrow with only first child displayed (id=maction-tooltip)-Fail Computed display of children (id=maction-tooltip)-Fail Element is laid out as an mrow with only first child displayed (id=maction-input)-Fail Computed display of children (id=maction-input)\ No newline at end of file+16 Pass+Pass Element is laid out as an mrow with only first child displayed (id=semantics)+Pass Computed display of children (id=semantics)+Pass Element is laid out as an mrow with only first child displayed (id=semantics-annotations)+Pass Computed display of children (id=semantics-annotations)+Pass Element is laid out as an mrow with only first child displayed (id=maction)+Pass Computed display of children (id=maction)+Pass Element is laid out as an mrow with only first child displayed (id=maction-toggle)+Pass Computed display of children (id=maction-toggle)+Pass Element is laid out as an mrow with only first child displayed (id=maction-toggle-selection)+Pass Computed display of children (id=maction-toggle-selection)+Pass Element is laid out as an mrow with only first child displayed (id=maction-statusline)+Pass Computed display of children (id=maction-statusline)+Pass Element is laid out as an mrow with only first child displayed (id=maction-tooltip)+Pass Computed display of children (id=maction-tooltip)+Pass Element is laid out as an mrow with only first child displayed (id=maction-input)+Pass Computed display of children (id=maction-input)\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/legacy-mstyle-attributes.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/legacy-mstyle-attributes.txtindex be2c27311de..6fc323f80ba 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/legacy-mstyle-attributes.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/legacy-mstyle-attributes.txt@@ -2,14 +2,13 @@ Harness status: OKFound 9 tests-1 Pass-8 Fail-Fail Legacy mstyle attributes do not apply to mspace+9 Pass+Pass Legacy mstyle attributes do not apply to mspacePass Legacy mstyle attributes do not apply to mfrac-Fail Legacy mstyle attributes do not apply to mo-Fail Legacy mstyle attributes do not apply to menclose-Fail Legacy mstyle attributes do not apply to ms-Fail Legacy mstyle attributes do not apply to mpadded-Fail Legacy mstyle attributes do not apply to mover-Fail Legacy mstyle attributes do not apply to munder-Fail Legacy mstyle attributes do not apply to munderover\ No newline at end of file+Pass Legacy mstyle attributes do not apply to mo+Pass Legacy mstyle attributes do not apply to menclose+Pass Legacy mstyle attributes do not apply to ms+Pass Legacy mstyle attributes do not apply to mpadded+Pass Legacy mstyle attributes do not apply to mover+Pass Legacy mstyle attributes do not apply to munder+Pass Legacy mstyle attributes do not apply to munderover\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/merror-001.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/merror-001.txtindex 77198914e54..5f977c80284 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/merror-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/merror-001.txt@@ -2,7 +2,6 @@ Harness status: OKFound 2 tests-1 Pass-1 Fail+2 PassPass Default CSS properties on merror-Fail Bounding box is the same as mrow + 1px border\ No newline at end of file+Pass Bounding box is the same as mrow + 1px border\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/mrow-fallback-001.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/mrow-fallback-001.txtindex 94cc50d2de2..3f262f2edbc 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/mrow-fallback-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/mrow-fallback-001.txt@@ -2,52 +2,51 @@ Harness status: OKFound 47 tests-9 Pass-38 Fail+47 PassPass Invalid <mfrac> should lay out as an mrow (count == 0)-Fail Invalid <mfrac> should lay out as an mrow (count == 1)-Fail Invalid <mfrac> should lay out as an mrow (count == 3)-Fail Invalid <mfrac> should lay out as an mrow (count == 4)-Fail Invalid <mfrac> should lay out as an mrow (count == 5)+Pass Invalid <mfrac> should lay out as an mrow (count == 1)+Pass Invalid <mfrac> should lay out as an mrow (count == 3)+Pass Invalid <mfrac> should lay out as an mrow (count == 4)+Pass Invalid <mfrac> should lay out as an mrow (count == 5)Pass Invalid <mroot> should lay out as an mrow (count == 0)-Fail Invalid <mroot> should lay out as an mrow (count == 1)-Fail Invalid <mroot> should lay out as an mrow (count == 3)-Fail Invalid <mroot> should lay out as an mrow (count == 4)-Fail Invalid <mroot> should lay out as an mrow (count == 5)+Pass Invalid <mroot> should lay out as an mrow (count == 1)+Pass Invalid <mroot> should lay out as an mrow (count == 3)+Pass Invalid <mroot> should lay out as an mrow (count == 4)+Pass Invalid <mroot> should lay out as an mrow (count == 5)Pass Invalid <munder> should lay out as an mrow (count == 0)-Fail Invalid <munder> should lay out as an mrow (count == 1)-Fail Invalid <munder> should lay out as an mrow (count == 3)-Fail Invalid <munder> should lay out as an mrow (count == 4)-Fail Invalid <munder> should lay out as an mrow (count == 5)+Pass Invalid <munder> should lay out as an mrow (count == 1)+Pass Invalid <munder> should lay out as an mrow (count == 3)+Pass Invalid <munder> should lay out as an mrow (count == 4)+Pass Invalid <munder> should lay out as an mrow (count == 5)Pass Invalid <mover> should lay out as an mrow (count == 0)-Fail Invalid <mover> should lay out as an mrow (count == 1)-Fail Invalid <mover> should lay out as an mrow (count == 3)-Fail Invalid <mover> should lay out as an mrow (count == 4)-Fail Invalid <mover> should lay out as an mrow (count == 5)+Pass Invalid <mover> should lay out as an mrow (count == 1)+Pass Invalid <mover> should lay out as an mrow (count == 3)+Pass Invalid <mover> should lay out as an mrow (count == 4)+Pass Invalid <mover> should lay out as an mrow (count == 5)Pass Invalid <munderover> should lay out as an mrow (count == 0)-Fail Invalid <munderover> should lay out as an mrow (count == 1)-Fail Invalid <munderover> should lay out as an mrow (count == 2)-Fail Invalid <munderover> should lay out as an mrow (count == 4)-Fail Invalid <munderover> should lay out as an mrow (count == 5)+Pass Invalid <munderover> should lay out as an mrow (count == 1)+Pass Invalid <munderover> should lay out as an mrow (count == 2)+Pass Invalid <munderover> should lay out as an mrow (count == 4)+Pass Invalid <munderover> should lay out as an mrow (count == 5)Pass Invalid <msub> should lay out as an mrow (count == 0)-Fail Invalid <msub> should lay out as an mrow (count == 1)-Fail Invalid <msub> should lay out as an mrow (count == 3)-Fail Invalid <msub> should lay out as an mrow (count == 4)-Fail Invalid <msub> should lay out as an mrow (count == 5)+Pass Invalid <msub> should lay out as an mrow (count == 1)+Pass Invalid <msub> should lay out as an mrow (count == 3)+Pass Invalid <msub> should lay out as an mrow (count == 4)+Pass Invalid <msub> should lay out as an mrow (count == 5)Pass Invalid <msup> should lay out as an mrow (count == 0)-Fail Invalid <msup> should lay out as an mrow (count == 1)-Fail Invalid <msup> should lay out as an mrow (count == 3)-Fail Invalid <msup> should lay out as an mrow (count == 4)-Fail Invalid <msup> should lay out as an mrow (count == 5)+Pass Invalid <msup> should lay out as an mrow (count == 1)+Pass Invalid <msup> should lay out as an mrow (count == 3)+Pass Invalid <msup> should lay out as an mrow (count == 4)+Pass Invalid <msup> should lay out as an mrow (count == 5)Pass Invalid <msubsup> should lay out as an mrow (count == 0)-Fail Invalid <msubsup> should lay out as an mrow (count == 1)-Fail Invalid <msubsup> should lay out as an mrow (count == 2)-Fail Invalid <msubsup> should lay out as an mrow (count == 4)-Fail Invalid <msubsup> should lay out as an mrow (count == 5)+Pass Invalid <msubsup> should lay out as an mrow (count == 1)+Pass Invalid <msubsup> should lay out as an mrow (count == 2)+Pass Invalid <msubsup> should lay out as an mrow (count == 4)+Pass Invalid <msubsup> should lay out as an mrow (count == 5)Pass Invalid <mmultiscripts> should lay out as an mrow (count == 0)-Fail Invalid <mmultiscripts> should lay out as an mrow (count == 2)-Fail Invalid <mmultiscripts> should lay out as an mrow (count == 4)-Fail Invalid <mmultiscripts> should lay out as an mrow (count == 7)-Fail Invalid <mmultiscripts> should lay out as an mrow (count == 9)-Fail Invalid <mmultiscripts> should lay out as an mrow (first in-flow child is an <mprescripts>)-Fail Invalid <mmultiscripts> should lay out as an mrow (one of the even number of children after the first <mprescripts> is an <mprescripts>)\ No newline at end of file+Pass Invalid <mmultiscripts> should lay out as an mrow (count == 2)+Pass Invalid <mmultiscripts> should lay out as an mrow (count == 4)+Pass Invalid <mmultiscripts> should lay out as an mrow (count == 7)+Pass Invalid <mmultiscripts> should lay out as an mrow (count == 9)+Pass Invalid <mmultiscripts> should lay out as an mrow (first in-flow child is an <mprescripts>)+Pass Invalid <mmultiscripts> should lay out as an mrow (one of the even number of children after the first <mprescripts> is an <mprescripts>)\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/mrow-preferred-width.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/mrow-preferred-width.txtindex 4911d8abca0..ce95b7bed37 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/mrow-preferred-width.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/mrow/mrow-preferred-width.txt@@ -2,7 +2,8 @@ Harness status: OKFound 3 tests-3 Fail-Fail Preferred width of mrow with mspace children+1 Pass+2 Fail+Pass Preferred width of mrow with mspace childrenFail Preferred width of mrow with mn and mo childrenFail Preferred width of mrow with mn and embellished op children\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/operators/embellished-operator-dynamic-002.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/operators/embellished-operator-dynamic-002.txtindex 96f9eff0af5..05e66aa2e83 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/operators/embellished-operator-dynamic-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/operators/embellished-operator-dynamic-002.txt@@ -2,12 +2,13 @@ Harness status: OKFound 8 tests-8 Fail+4 Pass+4 FailFail container1: Initially an embellished operator-Fail container2: Initially not an embellished operator-Fail container1: No longer an embellished operator+Pass container2: Initially not an embellished operator+Pass container1: No longer an embellished operatorFail container2: Became an embellished operatorFail container3: Initially an embellished operator (testing space-like)-Fail container4/space-like: Initially not an embellished operator (testing space-like)-Fail container3: No longer an embellished operator (testing space-like)+Pass container4/space-like: Initially not an embellished operator (testing space-like)+Pass container3: No longer an embellished operator (testing space-like)Fail container4: Became an embellished operator (testing space-like)\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/operators/mo-no-vertical-adjustment-for-basic-binary-operators.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/operators/mo-no-vertical-adjustment-for-basic-binary-operators.txtindex bb633d4d7c5..3f3259704e4 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/operators/mo-no-vertical-adjustment-for-basic-binary-operators.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/operators/mo-no-vertical-adjustment-for-basic-binary-operators.txt@@ -2,5 +2,5 @@ Harness status: OKFound 1 tests-1 Fail-Fail Vertical alignment of basic binary operators is not adjusted.\ No newline at end of file+1 Pass+Pass Vertical alignment of basic binary operators is not adjusted.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/cramped-001.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/cramped-001.txtindex 52b8b50427c..b65d104f850 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/cramped-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/cramped-001.txt@@ -2,18 +2,19 @@ Harness status: OKFound 15 tests-15 Fail-Fail child of non-cramped element+5 Pass+10 Fail+Pass child of non-cramped elementFail child of cramped elementFail child of msqrtFail child of mrootFail child of mfracFail child of msub-Fail child of msup+Pass child of msupFail child of msubsup-Fail child of munder-Fail child of mover (non-accent overscript)-Fail child of munderover (non-accent overscript)+Pass child of munder+Pass child of mover (non-accent overscript)+Pass child of munderover (non-accent overscript)Fail accent child of mover (accent overscript)Fail accent child of munderover (accent overscript)Fail mmultiscriptsdiff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/empty-underover.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/empty-underover.txtindex 54b16298e52..76add1f5174 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/empty-underover.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/empty-underover.txt@@ -2,5 +2,5 @@ Harness status: OKFound 1 tests-1 Fail-Fail Size of empty script elements\ No newline at end of file+1 Pass+Pass Size of empty script elements\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/subsup-1.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/subsup-1.txtindex 75fb23c8037..69999a7935b 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/subsup-1.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/subsup-1.txt@@ -2,9 +2,10 @@ Harness status: OKFound 5 tests-5 Fail-Fail Respective horizontal positions+4 Pass+1 Fail+Pass Respective horizontal positionsFail Alignment of the base on the baseline-Fail Vertical position of scripts-Fail Width of scripted elements-Fail Height of scripted elements\ No newline at end of file+Pass Vertical position of scripts+Pass Width of scripted elements+Pass Height of scripted elements\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/subsup-2.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/subsup-2.txtindex 66187b49510..56adc48dd78 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/subsup-2.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/subsup-2.txt@@ -2,11 +2,11 @@ Harness status: OKFound 6 tests-1 Pass-5 Fail+2 Pass+4 FailFail Respective horizontal positionsFail Alignment of the base on the baselineFail Vertical position of scriptsFail Width of scripted elements-Fail Height of scripted elements+Pass Height of scripted elementsPass Size of empty elements\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/subsup-4.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/subsup-4.txtindex c650728b3b2..f30b9b8b242 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/subsup-4.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/subsup-4.txt@@ -2,6 +2,7 @@ Harness status: OKFound 2 tests-2 Fail+1 Pass+1 FailFail Alignment on the baseline for bases of different heights-Fail Vertical position of the scripts for bases of different heights\ No newline at end of file+Pass Vertical position of the scripts for bases of different heights\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/underover-1.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/underover-1.txtindex b7d78674d76..a23365c3ddb 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/underover-1.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/underover-1.txt@@ -2,9 +2,10 @@ Harness status: OKFound 5 tests-5 Fail+4 Pass+1 FailFail Alignment of the base on the baseline-Fail Horizontal alignments of base and scripts-Fail Relative vertical positions of base and scripts-Fail Width of scripted elements-Fail Height of scripted elements\ No newline at end of file+Pass Horizontal alignments of base and scripts+Pass Relative vertical positions of base and scripts+Pass Width of scripted elements+Pass Height of scripted elements\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/underover-parameters-3.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/underover-parameters-3.txtindex 6f8d28f2497..004d54f4b63 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/underover-parameters-3.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/underover-parameters-3.txt@@ -2,9 +2,10 @@ Harness status: OKFound 8 tests-8 Fail+1 Pass+7 FailFail Baseline alignment-Fail Heights of bases+Pass Heights of basesFail AccentBaseHeight, UnderbarExtraDescenderFail AccentBaseHeight, UnderbarVerticalGapFail AccentBaseHeight, OverbarExtraAscenderdiff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/underover-parameters-4.tentative.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/underover-parameters-4.tentative.txtindex 3573e116310..ffdc2cf1335 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/underover-parameters-4.tentative.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/scripts/underover-parameters-4.tentative.txt@@ -2,9 +2,10 @@ Harness status: OKFound 6 tests-6 Fail+1 Pass+5 FailFail Baseline alignment-Fail Heights of bases+Pass Heights of basesFail AccentBaseHeight, UnderbarExtraDescenderFail AccentBaseHeight, UnderbarVerticalGapFail AccentBaseHeight, OverbarExtraAscenderdiff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/spaces/mspace-width-height-001.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/spaces/mspace-width-height-001.txtindex 8cf88fe1ca6..997b9aa2ec8 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/spaces/mspace-width-height-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/spaces/mspace-width-height-001.txt@@ -2,8 +2,9 @@ Harness status: OKFound 4 tests-4 Fail+1 Pass+3 FailFail width attribute + width property-Fail height/depth attributes + height property+Pass height/depth attributes + height propertyFail height attribute + height propertyFail depth attribute + height property\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/spaces/space-1.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/spaces/space-1.txtindex fc18114dd42..62e41498276 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/spaces/space-1.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/spaces/space-1.txt@@ -2,14 +2,14 @@ Harness status: OKFound 9 tests-1 Pass-8 Fail-Fail Empty mspace-Fail Different widths+5 Pass+4 Fail+Pass Empty mspace+Pass Different widthsFail Different heights-Fail Different depths+Pass Different depthsFail Various combinations of height, depth and width.Pass Preferred width-Fail dynamic attributes (remove)+Pass dynamic attributes (remove)Fail dynamic attributes (attach)Fail dynamic attributes (modify)\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/tables/dynamic-table-001.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/tables/dynamic-table-001.txtindex 8c85147577a..2fe6020cb9f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/tables/dynamic-table-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/tables/dynamic-table-001.txt@@ -2,13 +2,13 @@ Harness status: OKFound 9 tests-9 Fail-Fail Filling an empty mtable element-Fail Filling empty mtr elements-Fail Filling empty mtd elements-Fail Filling an empty mtr element-Fail Filling an empty mtd element-Fail Adding missing elements-Fail Removing a row-Fail Removing a column-Fail Removing extra elements\ No newline at end of file+9 Pass+Pass Filling an empty mtable element+Pass Filling empty mtr elements+Pass Filling empty mtd elements+Pass Filling an empty mtr element+Pass Filling an empty mtd element+Pass Adding missing elements+Pass Removing a row+Pass Removing a column+Pass Removing extra elements\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/tables/table-001.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/tables/table-001.txtindex 57e311dc33a..7a8e62c37f7 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/tables/table-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/presentation-markup/tables/table-001.txt@@ -2,10 +2,11 @@ Harness status: OKFound 6 tests-6 Fail-Fail Layout of table-001-Fail Layout of table-002-Fail Layout of table-003+3 Pass+3 Fail+Pass Layout of table-001+Pass Layout of table-002+Pass Layout of table-003Fail Layout of table-011Fail Layout of table-012Fail Layout of table-013\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/floats/not-floating-001.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/floats/not-floating-001.txtindex ee1214879a3..07de3048335 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/floats/not-floating-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/floats/not-floating-001.txt@@ -2,29 +2,29 @@ Harness status: OKFound 24 tests-11 Pass-13 Fail+17 Pass+7 FailPass float child ignored in aFail float child ignored in mactionPass float child ignored in menclosePass float child ignored in merror-Fail float child ignored in mfrac+Pass float child ignored in mfracFail float child ignored in miPass float child ignored in mmultiscriptsFail float child ignored in mnFail float child ignored in mo-Fail float child ignored in mover+Pass float child ignored in moverPass float child ignored in mpaddedPass float child ignored in mphantom-Fail float child ignored in mroot+Pass float child ignored in mrootPass float child ignored in mrowFail float child ignored in msPass float child ignored in msqrtPass float child ignored in mstyle-Fail float child ignored in msub+Pass float child ignored in msubPass float child ignored in msubsup-Fail float child ignored in msup+Pass float child ignored in msupFail float child ignored in mtext-Fail float child ignored in munder+Pass float child ignored in munderPass float child ignored in munderoverFail float child ignored in semantics\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/ignored-properties-001.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/ignored-properties-001.txtindex 284248cb261..2c092803f79 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/ignored-properties-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/ignored-properties-001.txt@@ -2,48 +2,48 @@ Harness status: OKFound 260 tests-10 Pass-250 Fail-Fail a preferred width calculation is not affected by writing-mode: vertical-rl;-Fail a layout is not affected by writing-mode: vertical-rl;-Fail a preferred width calculation is not affected by white-space: normal;-Fail a layout is not affected by white-space: normal;-Fail a preferred width calculation is not affected by float: right;-Fail a layout is not affected by float: right;-Fail a preferred width calculation is not affected by align-content: end; justify-content: end;-Fail a layout is not affected by align-content: end; justify-content: end;-Fail a preferred width calculation is not affected by align-self: end; justify-self: end;-Fail a layout is not affected by align-self: end; justify-self: end;-Fail maction preferred width calculation is not affected by writing-mode: vertical-rl;-Fail maction layout is not affected by writing-mode: vertical-rl;-Fail maction preferred width calculation is not affected by white-space: normal;-Fail maction layout is not affected by white-space: normal;-Fail maction preferred width calculation is not affected by float: right;-Fail maction layout is not affected by float: right;-Fail maction preferred width calculation is not affected by align-content: end; justify-content: end;-Fail maction layout is not affected by align-content: end; justify-content: end;-Fail maction preferred width calculation is not affected by align-self: end; justify-self: end;-Fail maction layout is not affected by align-self: end; justify-self: end;-Fail menclose preferred width calculation is not affected by writing-mode: vertical-rl;-Fail menclose layout is not affected by writing-mode: vertical-rl;-Fail menclose preferred width calculation is not affected by white-space: normal;-Fail menclose layout is not affected by white-space: normal;-Fail menclose preferred width calculation is not affected by float: right;-Fail menclose layout is not affected by float: right;-Fail menclose preferred width calculation is not affected by align-content: end; justify-content: end;-Fail menclose layout is not affected by align-content: end; justify-content: end;-Fail menclose preferred width calculation is not affected by align-self: end; justify-self: end;-Fail menclose layout is not affected by align-self: end; justify-self: end;-Fail merror preferred width calculation is not affected by writing-mode: vertical-rl;-Fail merror layout is not affected by writing-mode: vertical-rl;-Fail merror preferred width calculation is not affected by white-space: normal;-Fail merror layout is not affected by white-space: normal;-Fail merror preferred width calculation is not affected by float: right;-Fail merror layout is not affected by float: right;-Fail merror preferred width calculation is not affected by align-content: end; justify-content: end;-Fail merror layout is not affected by align-content: end; justify-content: end;-Fail merror preferred width calculation is not affected by align-self: end; justify-self: end;-Fail merror layout is not affected by align-self: end; justify-self: end;+240 Pass+20 Fail+Pass a preferred width calculation is not affected by writing-mode: vertical-rl;+Pass a layout is not affected by writing-mode: vertical-rl;+Pass a preferred width calculation is not affected by white-space: normal;+Pass a layout is not affected by white-space: normal;+Pass a preferred width calculation is not affected by float: right;+Pass a layout is not affected by float: right;+Pass a preferred width calculation is not affected by align-content: end; justify-content: end;+Pass a layout is not affected by align-content: end; justify-content: end;+Pass a preferred width calculation is not affected by align-self: end; justify-self: end;+Pass a layout is not affected by align-self: end; justify-self: end;+Pass maction preferred width calculation is not affected by writing-mode: vertical-rl;+Pass maction layout is not affected by writing-mode: vertical-rl;+Pass maction preferred width calculation is not affected by white-space: normal;+Pass maction layout is not affected by white-space: normal;+Pass maction preferred width calculation is not affected by float: right;+Pass maction layout is not affected by float: right;+Pass maction preferred width calculation is not affected by align-content: end; justify-content: end;+Pass maction layout is not affected by align-content: end; justify-content: end;+Pass maction preferred width calculation is not affected by align-self: end; justify-self: end;+Pass maction layout is not affected by align-self: end; justify-self: end;+Pass menclose preferred width calculation is not affected by writing-mode: vertical-rl;+Pass menclose layout is not affected by writing-mode: vertical-rl;+Pass menclose preferred width calculation is not affected by white-space: normal;+Pass menclose layout is not affected by white-space: normal;+Pass menclose preferred width calculation is not affected by float: right;+Pass menclose layout is not affected by float: right;+Pass menclose preferred width calculation is not affected by align-content: end; justify-content: end;+Pass menclose layout is not affected by align-content: end; justify-content: end;+Pass menclose preferred width calculation is not affected by align-self: end; justify-self: end;+Pass menclose layout is not affected by align-self: end; justify-self: end;+Pass merror preferred width calculation is not affected by writing-mode: vertical-rl;+Pass merror layout is not affected by writing-mode: vertical-rl;+Pass merror preferred width calculation is not affected by white-space: normal;+Pass merror layout is not affected by white-space: normal;+Pass merror preferred width calculation is not affected by float: right;+Pass merror layout is not affected by float: right;+Pass merror preferred width calculation is not affected by align-content: end; justify-content: end;+Pass merror layout is not affected by align-content: end; justify-content: end;+Pass merror preferred width calculation is not affected by align-self: end; justify-self: end;+Pass merror layout is not affected by align-self: end; justify-self: end;Pass mfrac preferred width calculation is not affected by writing-mode: vertical-rl;Pass mfrac layout is not affected by writing-mode: vertical-rl;Pass mfrac preferred width calculation is not affected by white-space: normal;@@ -54,76 +54,76 @@ Pass mfrac preferred width calculation is not affected by align-content: end; juPass mfrac layout is not affected by align-content: end; justify-content: end;Pass mfrac preferred width calculation is not affected by align-self: end; justify-self: end;Pass mfrac layout is not affected by align-self: end; justify-self: end;-Fail mi preferred width calculation is not affected by writing-mode: vertical-rl;-Fail mi layout is not affected by writing-mode: vertical-rl;-Fail mi preferred width calculation is not affected by white-space: normal;-Fail mi layout is not affected by white-space: normal;-Fail mi preferred width calculation is not affected by float: right;-Fail mi layout is not affected by float: right;-Fail mi preferred width calculation is not affected by align-content: end; justify-content: end;-Fail mi layout is not affected by align-content: end; justify-content: end;-Fail mi preferred width calculation is not affected by align-self: end; justify-self: end;-Fail mi layout is not affected by align-self: end; justify-self: end;-Fail mmultiscripts preferred width calculation is not affected by writing-mode: vertical-rl;-Fail mmultiscripts layout is not affected by writing-mode: vertical-rl;-Fail mmultiscripts preferred width calculation is not affected by white-space: normal;-Fail mmultiscripts layout is not affected by white-space: normal;-Fail mmultiscripts preferred width calculation is not affected by float: right;-Fail mmultiscripts layout is not affected by float: right;-Fail mmultiscripts preferred width calculation is not affected by align-content: end; justify-content: end;-Fail mmultiscripts layout is not affected by align-content: end; justify-content: end;-Fail mmultiscripts preferred width calculation is not affected by align-self: end; justify-self: end;-Fail mmultiscripts layout is not affected by align-self: end; justify-self: end;-Fail mn preferred width calculation is not affected by writing-mode: vertical-rl;-Fail mn layout is not affected by writing-mode: vertical-rl;-Fail mn preferred width calculation is not affected by white-space: normal;-Fail mn layout is not affected by white-space: normal;-Fail mn preferred width calculation is not affected by float: right;-Fail mn layout is not affected by float: right;-Fail mn preferred width calculation is not affected by align-content: end; justify-content: end;-Fail mn layout is not affected by align-content: end; justify-content: end;-Fail mn preferred width calculation is not affected by align-self: end; justify-self: end;-Fail mn layout is not affected by align-self: end; justify-self: end;-Fail mo preferred width calculation is not affected by writing-mode: vertical-rl;-Fail mo layout is not affected by writing-mode: vertical-rl;-Fail mo preferred width calculation is not affected by white-space: normal;-Fail mo layout is not affected by white-space: normal;-Fail mo preferred width calculation is not affected by float: right;-Fail mo layout is not affected by float: right;-Fail mo preferred width calculation is not affected by align-content: end; justify-content: end;-Fail mo layout is not affected by align-content: end; justify-content: end;-Fail mo preferred width calculation is not affected by align-self: end; justify-self: end;-Fail mo layout is not affected by align-self: end; justify-self: end;-Fail mover preferred width calculation is not affected by writing-mode: vertical-rl;-Fail mover layout is not affected by writing-mode: vertical-rl;-Fail mover preferred width calculation is not affected by white-space: normal;-Fail mover layout is not affected by white-space: normal;-Fail mover preferred width calculation is not affected by float: right;-Fail mover layout is not affected by float: right;-Fail mover preferred width calculation is not affected by align-content: end; justify-content: end;-Fail mover layout is not affected by align-content: end; justify-content: end;-Fail mover preferred width calculation is not affected by align-self: end; justify-self: end;-Fail mover layout is not affected by align-self: end; justify-self: end;-Fail mpadded preferred width calculation is not affected by writing-mode: vertical-rl;-Fail mpadded layout is not affected by writing-mode: vertical-rl;-Fail mpadded preferred width calculation is not affected by white-space: normal;-Fail mpadded layout is not affected by white-space: normal;-Fail mpadded preferred width calculation is not affected by float: right;-Fail mpadded layout is not affected by float: right;-Fail mpadded preferred width calculation is not affected by align-content: end; justify-content: end;-Fail mpadded layout is not affected by align-content: end; justify-content: end;-Fail mpadded preferred width calculation is not affected by align-self: end; justify-self: end;-Fail mpadded layout is not affected by align-self: end; justify-self: end;-Fail mphantom preferred width calculation is not affected by writing-mode: vertical-rl;-Fail mphantom layout is not affected by writing-mode: vertical-rl;-Fail mphantom preferred width calculation is not affected by white-space: normal;-Fail mphantom layout is not affected by white-space: normal;-Fail mphantom preferred width calculation is not affected by float: right;-Fail mphantom layout is not affected by float: right;-Fail mphantom preferred width calculation is not affected by align-content: end; justify-content: end;-Fail mphantom layout is not affected by align-content: end; justify-content: end;-Fail mphantom preferred width calculation is not affected by align-self: end; justify-self: end;-Fail mphantom layout is not affected by align-self: end; justify-self: end;+Pass mi preferred width calculation is not affected by writing-mode: vertical-rl;+Pass mi layout is not affected by writing-mode: vertical-rl;+Pass mi preferred width calculation is not affected by white-space: normal;+Pass mi layout is not affected by white-space: normal;+Pass mi preferred width calculation is not affected by float: right;+Pass mi layout is not affected by float: right;+Pass mi preferred width calculation is not affected by align-content: end; justify-content: end;+Pass mi layout is not affected by align-content: end; justify-content: end;+Pass mi preferred width calculation is not affected by align-self: end; justify-self: end;+Pass mi layout is not affected by align-self: end; justify-self: end;+Pass mmultiscripts preferred width calculation is not affected by writing-mode: vertical-rl;+Pass mmultiscripts layout is not affected by writing-mode: vertical-rl;+Pass mmultiscripts preferred width calculation is not affected by white-space: normal;+Pass mmultiscripts layout is not affected by white-space: normal;+Pass mmultiscripts preferred width calculation is not affected by float: right;+Pass mmultiscripts layout is not affected by float: right;+Pass mmultiscripts preferred width calculation is not affected by align-content: end; justify-content: end;+Pass mmultiscripts layout is not affected by align-content: end; justify-content: end;+Pass mmultiscripts preferred width calculation is not affected by align-self: end; justify-self: end;+Pass mmultiscripts layout is not affected by align-self: end; justify-self: end;+Pass mn preferred width calculation is not affected by writing-mode: vertical-rl;+Pass mn layout is not affected by writing-mode: vertical-rl;+Pass mn preferred width calculation is not affected by white-space: normal;+Pass mn layout is not affected by white-space: normal;+Pass mn preferred width calculation is not affected by float: right;+Pass mn layout is not affected by float: right;+Pass mn preferred width calculation is not affected by align-content: end; justify-content: end;+Pass mn layout is not affected by align-content: end; justify-content: end;+Pass mn preferred width calculation is not affected by align-self: end; justify-self: end;+Pass mn layout is not affected by align-self: end; justify-self: end;+Pass mo preferred width calculation is not affected by writing-mode: vertical-rl;+Pass mo layout is not affected by writing-mode: vertical-rl;+Pass mo preferred width calculation is not affected by white-space: normal;+Pass mo layout is not affected by white-space: normal;+Pass mo preferred width calculation is not affected by float: right;+Pass mo layout is not affected by float: right;+Pass mo preferred width calculation is not affected by align-content: end; justify-content: end;+Pass mo layout is not affected by align-content: end; justify-content: end;+Pass mo preferred width calculation is not affected by align-self: end; justify-self: end;+Pass mo layout is not affected by align-self: end; justify-self: end;+Pass mover preferred width calculation is not affected by writing-mode: vertical-rl;+Pass mover layout is not affected by writing-mode: vertical-rl;+Pass mover preferred width calculation is not affected by white-space: normal;+Pass mover layout is not affected by white-space: normal;+Pass mover preferred width calculation is not affected by float: right;+Pass mover layout is not affected by float: right;+Pass mover preferred width calculation is not affected by align-content: end; justify-content: end;+Pass mover layout is not affected by align-content: end; justify-content: end;+Pass mover preferred width calculation is not affected by align-self: end; justify-self: end;+Pass mover layout is not affected by align-self: end; justify-self: end;+Pass mpadded preferred width calculation is not affected by writing-mode: vertical-rl;+Pass mpadded layout is not affected by writing-mode: vertical-rl;+Pass mpadded preferred width calculation is not affected by white-space: normal;+Pass mpadded layout is not affected by white-space: normal;+Pass mpadded preferred width calculation is not affected by float: right;+Pass mpadded layout is not affected by float: right;+Pass mpadded preferred width calculation is not affected by align-content: end; justify-content: end;+Pass mpadded layout is not affected by align-content: end; justify-content: end;+Pass mpadded preferred width calculation is not affected by align-self: end; justify-self: end;+Pass mpadded layout is not affected by align-self: end; justify-self: end;+Pass mphantom preferred width calculation is not affected by writing-mode: vertical-rl;+Pass mphantom layout is not affected by writing-mode: vertical-rl;+Pass mphantom preferred width calculation is not affected by white-space: normal;+Pass mphantom layout is not affected by white-space: normal;+Pass mphantom preferred width calculation is not affected by float: right;+Pass mphantom layout is not affected by float: right;+Pass mphantom preferred width calculation is not affected by align-content: end; justify-content: end;+Pass mphantom layout is not affected by align-content: end; justify-content: end;+Pass mphantom preferred width calculation is not affected by align-self: end; justify-self: end;+Pass mphantom layout is not affected by align-self: end; justify-self: end;Fail mroot preferred width calculation is not affected by writing-mode: vertical-rl;Fail mroot layout is not affected by writing-mode: vertical-rl;Fail mroot preferred width calculation is not affected by white-space: normal;@@ -134,36 +134,36 @@ Fail mroot preferred width calculation is not affected by align-content: end; juFail mroot layout is not affected by align-content: end; justify-content: end;Fail mroot preferred width calculation is not affected by align-self: end; justify-self: end;Fail mroot layout is not affected by align-self: end; justify-self: end;-Fail mrow preferred width calculation is not affected by writing-mode: vertical-rl;-Fail mrow layout is not affected by writing-mode: vertical-rl;-Fail mrow preferred width calculation is not affected by white-space: normal;-Fail mrow layout is not affected by white-space: normal;-Fail mrow preferred width calculation is not affected by float: right;-Fail mrow layout is not affected by float: right;-Fail mrow preferred width calculation is not affected by align-content: end; justify-content: end;-Fail mrow layout is not affected by align-content: end; justify-content: end;-Fail mrow preferred width calculation is not affected by align-self: end; justify-self: end;-Fail mrow layout is not affected by align-self: end; justify-self: end;-Fail ms preferred width calculation is not affected by writing-mode: vertical-rl;-Fail ms layout is not affected by writing-mode: vertical-rl;-Fail ms preferred width calculation is not affected by white-space: normal;-Fail ms layout is not affected by white-space: normal;-Fail ms preferred width calculation is not affected by float: right;-Fail ms layout is not affected by float: right;-Fail ms preferred width calculation is not affected by align-content: end; justify-content: end;-Fail ms layout is not affected by align-content: end; justify-content: end;-Fail ms preferred width calculation is not affected by align-self: end; justify-self: end;-Fail ms layout is not affected by align-self: end; justify-self: end;-Fail mspace preferred width calculation is not affected by writing-mode: vertical-rl;-Fail mspace layout is not affected by writing-mode: vertical-rl;-Fail mspace preferred width calculation is not affected by white-space: normal;-Fail mspace layout is not affected by white-space: normal;-Fail mspace preferred width calculation is not affected by float: right;-Fail mspace layout is not affected by float: right;-Fail mspace preferred width calculation is not affected by align-content: end; justify-content: end;-Fail mspace layout is not affected by align-content: end; justify-content: end;-Fail mspace preferred width calculation is not affected by align-self: end; justify-self: end;-Fail mspace layout is not affected by align-self: end; justify-self: end;+Pass mrow preferred width calculation is not affected by writing-mode: vertical-rl;+Pass mrow layout is not affected by writing-mode: vertical-rl;+Pass mrow preferred width calculation is not affected by white-space: normal;+Pass mrow layout is not affected by white-space: normal;+Pass mrow preferred width calculation is not affected by float: right;+Pass mrow layout is not affected by float: right;+Pass mrow preferred width calculation is not affected by align-content: end; justify-content: end;+Pass mrow layout is not affected by align-content: end; justify-content: end;+Pass mrow preferred width calculation is not affected by align-self: end; justify-self: end;+Pass mrow layout is not affected by align-self: end; justify-self: end;+Pass ms preferred width calculation is not affected by writing-mode: vertical-rl;+Pass ms layout is not affected by writing-mode: vertical-rl;+Pass ms preferred width calculation is not affected by white-space: normal;+Pass ms layout is not affected by white-space: normal;+Pass ms preferred width calculation is not affected by float: right;+Pass ms layout is not affected by float: right;+Pass ms preferred width calculation is not affected by align-content: end; justify-content: end;+Pass ms layout is not affected by align-content: end; justify-content: end;+Pass ms preferred width calculation is not affected by align-self: end; justify-self: end;+Pass ms layout is not affected by align-self: end; justify-self: end;+Pass mspace preferred width calculation is not affected by writing-mode: vertical-rl;+Pass mspace layout is not affected by writing-mode: vertical-rl;+Pass mspace preferred width calculation is not affected by white-space: normal;+Pass mspace layout is not affected by white-space: normal;+Pass mspace preferred width calculation is not affected by float: right;+Pass mspace layout is not affected by float: right;+Pass mspace preferred width calculation is not affected by align-content: end; justify-content: end;+Pass mspace layout is not affected by align-content: end; justify-content: end;+Pass mspace preferred width calculation is not affected by align-self: end; justify-self: end;+Pass mspace layout is not affected by align-self: end; justify-self: end;Fail msqrt preferred width calculation is not affected by writing-mode: vertical-rl;Fail msqrt layout is not affected by writing-mode: vertical-rl;Fail msqrt preferred width calculation is not affected by white-space: normal;@@ -174,93 +174,93 @@ Fail msqrt preferred width calculation is not affected by align-content: end; juFail msqrt layout is not affected by align-content: end; justify-content: end;Fail msqrt preferred width calculation is not affected by align-self: end; justify-self: end;Fail msqrt layout is not affected by align-self: end; justify-self: end;-Fail mstyle preferred width calculation is not affected by writing-mode: vertical-rl;-Fail mstyle layout is not affected by writing-mode: vertical-rl;-Fail mstyle preferred width calculation is not affected by white-space: normal;-Fail mstyle layout is not affected by white-space: normal;-Fail mstyle preferred width calculation is not affected by float: right;-Fail mstyle layout is not affected by float: right;-Fail mstyle preferred width calculation is not affected by align-content: end; justify-content: end;-Fail mstyle layout is not affected by align-content: end; justify-content: end;-Fail mstyle preferred width calculation is not affected by align-self: end; justify-self: end;-Fail mstyle layout is not affected by align-self: end; justify-self: end;-Fail msub preferred width calculation is not affected by writing-mode: vertical-rl;-Fail msub layout is not affected by writing-mode: vertical-rl;-Fail msub preferred width calculation is not affected by white-space: normal;-Fail msub layout is not affected by white-space: normal;-Fail msub preferred width calculation is not affected by float: right;-Fail msub layout is not affected by float: right;-Fail msub preferred width calculation is not affected by align-content: end; justify-content: end;-Fail msub layout is not affected by align-content: end; justify-content: end;-Fail msub preferred width calculation is not affected by align-self: end; justify-self: end;-Fail msub layout is not affected by align-self: end; justify-self: end;-Fail msubsup preferred width calculation is not affected by writing-mode: vertical-rl;-Fail msubsup layout is not affected by writing-mode: vertical-rl;-Fail msubsup preferred width calculation is not affected by white-space: normal;-Fail msubsup layout is not affected by white-space: normal;-Fail msubsup preferred width calculation is not affected by float: right;-Fail msubsup layout is not affected by float: right;-Fail msubsup preferred width calculation is not affected by align-content: end; justify-content: end;-Fail msubsup layout is not affected by align-content: end; justify-content: end;-Fail msubsup preferred width calculation is not affected by align-self: end; justify-self: end;-Fail msubsup layout is not affected by align-self: end; justify-self: end;-Fail msup preferred width calculation is not affected by writing-mode: vertical-rl;-Fail msup layout is not affected by writing-mode: vertical-rl;-Fail msup preferred width calculation is not affected by white-space: normal;-Fail msup layout is not affected by white-space: normal;-Fail msup preferred width calculation is not affected by float: right;-Fail msup layout is not affected by float: right;-Fail msup preferred width calculation is not affected by align-content: end; justify-content: end;-Fail msup layout is not affected by align-content: end; justify-content: end;-Fail msup preferred width calculation is not affected by align-self: end; justify-self: end;-Fail msup layout is not affected by align-self: end; justify-self: end;-Fail mtable preferred width calculation is not affected by writing-mode: vertical-rl;-Fail mtable layout is not affected by writing-mode: vertical-rl;-Fail mtable preferred width calculation is not affected by white-space: normal;-Fail mtable layout is not affected by white-space: normal;-Fail mtable preferred width calculation is not affected by float: right;-Fail mtable layout is not affected by float: right;-Fail mtable preferred width calculation is not affected by align-content: end; justify-content: end;-Fail mtable layout is not affected by align-content: end; justify-content: end;-Fail mtable preferred width calculation is not affected by align-self: end; justify-self: end;-Fail mtable layout is not affected by align-self: end; justify-self: end;-Fail mtext preferred width calculation is not affected by writing-mode: vertical-rl;-Fail mtext layout is not affected by writing-mode: vertical-rl;-Fail mtext preferred width calculation is not affected by white-space: normal;-Fail mtext layout is not affected by white-space: normal;-Fail mtext preferred width calculation is not affected by float: right;-Fail mtext layout is not affected by float: right;-Fail mtext preferred width calculation is not affected by align-content: end; justify-content: end;-Fail mtext layout is not affected by align-content: end; justify-content: end;-Fail mtext preferred width calculation is not affected by align-self: end; justify-self: end;-Fail mtext layout is not affected by align-self: end; justify-self: end;-Fail munder preferred width calculation is not affected by writing-mode: vertical-rl;-Fail munder layout is not affected by writing-mode: vertical-rl;-Fail munder preferred width calculation is not affected by white-space: normal;-Fail munder layout is not affected by white-space: normal;-Fail munder preferred width calculation is not affected by float: right;-Fail munder layout is not affected by float: right;-Fail munder preferred width calculation is not affected by align-content: end; justify-content: end;-Fail munder layout is not affected by align-content: end; justify-content: end;-Fail munder preferred width calculation is not affected by align-self: end; justify-self: end;-Fail munder layout is not affected by align-self: end; justify-self: end;-Fail munderover preferred width calculation is not affected by writing-mode: vertical-rl;-Fail munderover layout is not affected by writing-mode: vertical-rl;-Fail munderover preferred width calculation is not affected by white-space: normal;-Fail munderover layout is not affected by white-space: normal;-Fail munderover preferred width calculation is not affected by float: right;-Fail munderover layout is not affected by float: right;-Fail munderover preferred width calculation is not affected by align-content: end; justify-content: end;-Fail munderover layout is not affected by align-content: end; justify-content: end;-Fail munderover preferred width calculation is not affected by align-self: end; justify-self: end;-Fail munderover layout is not affected by align-self: end; justify-self: end;-Fail semantics preferred width calculation is not affected by writing-mode: vertical-rl;-Fail semantics layout is not affected by writing-mode: vertical-rl;-Fail semantics preferred width calculation is not affected by white-space: normal;-Fail semantics layout is not affected by white-space: normal;-Fail semantics preferred width calculation is not affected by float: right;-Fail semantics layout is not affected by float: right;-Fail semantics preferred width calculation is not affected by align-content: end; justify-content: end;-Fail semantics layout is not affected by align-content: end; justify-content: end;-Fail semantics preferred width calculation is not affected by align-self: end; justify-self: end;-Fail semantics layout is not affected by align-self: end; justify-self: end;\ No newline at end of file+Pass mstyle preferred width calculation is not affected by writing-mode: vertical-rl;+Pass mstyle layout is not affected by writing-mode: vertical-rl;+Pass mstyle preferred width calculation is not affected by white-space: normal;+Pass mstyle layout is not affected by white-space: normal;+Pass mstyle preferred width calculation is not affected by float: right;+Pass mstyle layout is not affected by float: right;+Pass mstyle preferred width calculation is not affected by align-content: end; justify-content: end;+Pass mstyle layout is not affected by align-content: end; justify-content: end;+Pass mstyle preferred width calculation is not affected by align-self: end; justify-self: end;+Pass mstyle layout is not affected by align-self: end; justify-self: end;+Pass msub preferred width calculation is not affected by writing-mode: vertical-rl;+Pass msub layout is not affected by writing-mode: vertical-rl;+Pass msub preferred width calculation is not affected by white-space: normal;+Pass msub layout is not affected by white-space: normal;+Pass msub preferred width calculation is not affected by float: right;+Pass msub layout is not affected by float: right;+Pass msub preferred width calculation is not affected by align-content: end; justify-content: end;+Pass msub layout is not affected by align-content: end; justify-content: end;+Pass msub preferred width calculation is not affected by align-self: end; justify-self: end;+Pass msub layout is not affected by align-self: end; justify-self: end;+Pass msubsup preferred width calculation is not affected by writing-mode: vertical-rl;+Pass msubsup layout is not affected by writing-mode: vertical-rl;+Pass msubsup preferred width calculation is not affected by white-space: normal;+Pass msubsup layout is not affected by white-space: normal;+Pass msubsup preferred width calculation is not affected by float: right;+Pass msubsup layout is not affected by float: right;+Pass msubsup preferred width calculation is not affected by align-content: end; justify-content: end;+Pass msubsup layout is not affected by align-content: end; justify-content: end;+Pass msubsup preferred width calculation is not affected by align-self: end; justify-self: end;+Pass msubsup layout is not affected by align-self: end; justify-self: end;+Pass msup preferred width calculation is not affected by writing-mode: vertical-rl;+Pass msup layout is not affected by writing-mode: vertical-rl;+Pass msup preferred width calculation is not affected by white-space: normal;+Pass msup layout is not affected by white-space: normal;+Pass msup preferred width calculation is not affected by float: right;+Pass msup layout is not affected by float: right;+Pass msup preferred width calculation is not affected by align-content: end; justify-content: end;+Pass msup layout is not affected by align-content: end; justify-content: end;+Pass msup preferred width calculation is not affected by align-self: end; justify-self: end;+Pass msup layout is not affected by align-self: end; justify-self: end;+Pass mtable preferred width calculation is not affected by writing-mode: vertical-rl;+Pass mtable layout is not affected by writing-mode: vertical-rl;+Pass mtable preferred width calculation is not affected by white-space: normal;+Pass mtable layout is not affected by white-space: normal;+Pass mtable preferred width calculation is not affected by float: right;+Pass mtable layout is not affected by float: right;+Pass mtable preferred width calculation is not affected by align-content: end; justify-content: end;+Pass mtable layout is not affected by align-content: end; justify-content: end;+Pass mtable preferred width calculation is not affected by align-self: end; justify-self: end;+Pass mtable layout is not affected by align-self: end; justify-self: end;+Pass mtext preferred width calculation is not affected by writing-mode: vertical-rl;+Pass mtext layout is not affected by writing-mode: vertical-rl;+Pass mtext preferred width calculation is not affected by white-space: normal;+Pass mtext layout is not affected by white-space: normal;+Pass mtext preferred width calculation is not affected by float: right;+Pass mtext layout is not affected by float: right;+Pass mtext preferred width calculation is not affected by align-content: end; justify-content: end;+Pass mtext layout is not affected by align-content: end; justify-content: end;+Pass mtext preferred width calculation is not affected by align-self: end; justify-self: end;+Pass mtext layout is not affected by align-self: end; justify-self: end;+Pass munder preferred width calculation is not affected by writing-mode: vertical-rl;+Pass munder layout is not affected by writing-mode: vertical-rl;+Pass munder preferred width calculation is not affected by white-space: normal;+Pass munder layout is not affected by white-space: normal;+Pass munder preferred width calculation is not affected by float: right;+Pass munder layout is not affected by float: right;+Pass munder preferred width calculation is not affected by align-content: end; justify-content: end;+Pass munder layout is not affected by align-content: end; justify-content: end;+Pass munder preferred width calculation is not affected by align-self: end; justify-self: end;+Pass munder layout is not affected by align-self: end; justify-self: end;+Pass munderover preferred width calculation is not affected by writing-mode: vertical-rl;+Pass munderover layout is not affected by writing-mode: vertical-rl;+Pass munderover preferred width calculation is not affected by white-space: normal;+Pass munderover layout is not affected by white-space: normal;+Pass munderover preferred width calculation is not affected by float: right;+Pass munderover layout is not affected by float: right;+Pass munderover preferred width calculation is not affected by align-content: end; justify-content: end;+Pass munderover layout is not affected by align-content: end; justify-content: end;+Pass munderover preferred width calculation is not affected by align-self: end; justify-self: end;+Pass munderover layout is not affected by align-self: end; justify-self: end;+Pass semantics preferred width calculation is not affected by writing-mode: vertical-rl;+Pass semantics layout is not affected by writing-mode: vertical-rl;+Pass semantics preferred width calculation is not affected by white-space: normal;+Pass semantics layout is not affected by white-space: normal;+Pass semantics preferred width calculation is not affected by float: right;+Pass semantics layout is not affected by float: right;+Pass semantics preferred width calculation is not affected by align-content: end; justify-content: end;+Pass semantics layout is not affected by align-content: end; justify-content: end;+Pass semantics preferred width calculation is not affected by align-self: end; justify-self: end;+Pass semantics layout is not affected by align-self: end; justify-self: end;\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/lengths-2.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/lengths-2.txtindex b06461010fd..f52687faaf9 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/lengths-2.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/lengths-2.txt@@ -2,10 +2,11 @@ Harness status: OKFound 6 tests-6 Fail-Fail Units-Fail Trimming of space-Fail Non-negative numbers+5 Pass+1 Fail+Pass Units+Pass Trimming of space+Pass Non-negative numbersFail Non-positive numbers-Fail Legacy namedspaces-Fail Legacy numbers\ No newline at end of file+Pass Legacy namedspaces+Pass Legacy numbers\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/multi-column-layout.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/multi-column-layout.txtindex aa4d707d25d..c92c43e9eda 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/multi-column-layout.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/multi-column-layout.txt@@ -2,6 +2,6 @@ Harness status: OKFound 2 tests-2 Fail-Fail mspace layout in multicol-Fail mfrac layout in multicol\ No newline at end of file+2 Pass+Pass mspace layout in multicol+Pass mfrac layout in multicol\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/not-participating-to-parent-layout.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/not-participating-to-parent-layout.txtindex 6953c5acbf1..58e217f84e1 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/not-participating-to-parent-layout.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/not-participating-to-parent-layout.txt@@ -2,110 +2,110 @@ Harness status: OKFound 166 tests-6 Pass-160 Fail-Fail a preferred width calculation is not affected by children with "display: none" style-Fail a layout is not affected by children with "display: none" style-Fail a preferred width calculation is not affected by children with "display: contents" style-Fail a layout is not affected by children with "display: contents" style-Fail a preferred width calculation is not affected by children with "position: absolute" style-Fail a layout is not affected by children with "position: absolute" style-Fail a preferred width calculation is not affected by children with "position: fixed" style-Fail a layout is not affected by children with "position: fixed" style-Fail maction preferred width calculation is not affected by children with "display: none" style-Fail maction layout is not affected by children with "display: none" style-Fail maction preferred width calculation is not affected by children with "position: absolute" style-Fail maction layout is not affected by children with "position: absolute" style-Fail maction preferred width calculation is not affected by children with "position: fixed" style-Fail maction layout is not affected by children with "position: fixed" style-Fail menclose preferred width calculation is not affected by children with "display: none" style-Fail menclose layout is not affected by children with "display: none" style-Fail menclose preferred width calculation is not affected by children with "display: contents" style-Fail menclose layout is not affected by children with "display: contents" style-Fail menclose preferred width calculation is not affected by children with "position: absolute" style-Fail menclose layout is not affected by children with "position: absolute" style-Fail menclose preferred width calculation is not affected by children with "position: fixed" style-Fail menclose layout is not affected by children with "position: fixed" style-Fail merror preferred width calculation is not affected by children with "display: none" style-Fail merror layout is not affected by children with "display: none" style-Fail merror preferred width calculation is not affected by children with "display: contents" style-Fail merror layout is not affected by children with "display: contents" style-Fail merror preferred width calculation is not affected by children with "position: absolute" style-Fail merror layout is not affected by children with "position: absolute" style-Fail merror preferred width calculation is not affected by children with "position: fixed" style-Fail merror layout is not affected by children with "position: fixed" style+152 Pass+14 Fail+Pass a preferred width calculation is not affected by children with "display: none" style+Pass a layout is not affected by children with "display: none" style+Pass a preferred width calculation is not affected by children with "display: contents" style+Pass a layout is not affected by children with "display: contents" style+Pass a preferred width calculation is not affected by children with "position: absolute" style+Pass a layout is not affected by children with "position: absolute" style+Pass a preferred width calculation is not affected by children with "position: fixed" style+Pass a layout is not affected by children with "position: fixed" style+Pass maction preferred width calculation is not affected by children with "display: none" style+Pass maction layout is not affected by children with "display: none" style+Pass maction preferred width calculation is not affected by children with "position: absolute" style+Pass maction layout is not affected by children with "position: absolute" style+Pass maction preferred width calculation is not affected by children with "position: fixed" style+Pass maction layout is not affected by children with "position: fixed" style+Pass menclose preferred width calculation is not affected by children with "display: none" style+Pass menclose layout is not affected by children with "display: none" style+Pass menclose preferred width calculation is not affected by children with "display: contents" style+Pass menclose layout is not affected by children with "display: contents" style+Pass menclose preferred width calculation is not affected by children with "position: absolute" style+Pass menclose layout is not affected by children with "position: absolute" style+Pass menclose preferred width calculation is not affected by children with "position: fixed" style+Pass menclose layout is not affected by children with "position: fixed" style+Pass merror preferred width calculation is not affected by children with "display: none" style+Pass merror layout is not affected by children with "display: none" style+Pass merror preferred width calculation is not affected by children with "display: contents" style+Pass merror layout is not affected by children with "display: contents" style+Pass merror preferred width calculation is not affected by children with "position: absolute" style+Pass merror layout is not affected by children with "position: absolute" style+Pass merror preferred width calculation is not affected by children with "position: fixed" style+Pass merror layout is not affected by children with "position: fixed" stylePass mfrac preferred width calculation is not affected by children with "display: none" stylePass mfrac layout is not affected by children with "display: none" stylePass mfrac preferred width calculation is not affected by children with "position: absolute" stylePass mfrac layout is not affected by children with "position: absolute" stylePass mfrac preferred width calculation is not affected by children with "position: fixed" stylePass mfrac layout is not affected by children with "position: fixed" style-Fail mi preferred width calculation is not affected by children with "display: none" style-Fail mi layout is not affected by children with "display: none" style-Fail mi preferred width calculation is not affected by children with "position: absolute" style-Fail mi layout is not affected by children with "position: absolute" style-Fail mi preferred width calculation is not affected by children with "position: fixed" style-Fail mi layout is not affected by children with "position: fixed" style-Fail mmultiscripts preferred width calculation is not affected by children with "display: none" style-Fail mmultiscripts layout is not affected by children with "display: none" style-Fail mmultiscripts preferred width calculation is not affected by children with "position: absolute" style-Fail mmultiscripts layout is not affected by children with "position: absolute" style-Fail mmultiscripts preferred width calculation is not affected by children with "position: fixed" style-Fail mmultiscripts layout is not affected by children with "position: fixed" style-Fail mn preferred width calculation is not affected by children with "display: none" style-Fail mn layout is not affected by children with "display: none" style-Fail mn preferred width calculation is not affected by children with "position: absolute" style-Fail mn layout is not affected by children with "position: absolute" style-Fail mn preferred width calculation is not affected by children with "position: fixed" style-Fail mn layout is not affected by children with "position: fixed" style-Fail mo preferred width calculation is not affected by children with "display: none" style-Fail mo layout is not affected by children with "display: none" style-Fail mo preferred width calculation is not affected by children with "position: absolute" style-Fail mo layout is not affected by children with "position: absolute" style-Fail mo preferred width calculation is not affected by children with "position: fixed" style-Fail mo layout is not affected by children with "position: fixed" style-Fail mover preferred width calculation is not affected by children with "display: none" style-Fail mover layout is not affected by children with "display: none" style-Fail mover preferred width calculation is not affected by children with "position: absolute" style-Fail mover layout is not affected by children with "position: absolute" style-Fail mover preferred width calculation is not affected by children with "position: fixed" style-Fail mover layout is not affected by children with "position: fixed" style-Fail mpadded preferred width calculation is not affected by children with "display: none" style-Fail mpadded layout is not affected by children with "display: none" style-Fail mpadded preferred width calculation is not affected by children with "display: contents" style-Fail mpadded layout is not affected by children with "display: contents" style-Fail mpadded preferred width calculation is not affected by children with "position: absolute" style-Fail mpadded layout is not affected by children with "position: absolute" style-Fail mpadded preferred width calculation is not affected by children with "position: fixed" style-Fail mpadded layout is not affected by children with "position: fixed" style-Fail mphantom preferred width calculation is not affected by children with "display: none" style-Fail mphantom layout is not affected by children with "display: none" style-Fail mphantom preferred width calculation is not affected by children with "display: contents" style-Fail mphantom layout is not affected by children with "display: contents" style-Fail mphantom preferred width calculation is not affected by children with "position: absolute" style-Fail mphantom layout is not affected by children with "position: absolute" style-Fail mphantom preferred width calculation is not affected by children with "position: fixed" style-Fail mphantom layout is not affected by children with "position: fixed" style+Pass mi preferred width calculation is not affected by children with "display: none" style+Pass mi layout is not affected by children with "display: none" style+Pass mi preferred width calculation is not affected by children with "position: absolute" style+Pass mi layout is not affected by children with "position: absolute" style+Pass mi preferred width calculation is not affected by children with "position: fixed" style+Pass mi layout is not affected by children with "position: fixed" style+Pass mmultiscripts preferred width calculation is not affected by children with "display: none" style+Pass mmultiscripts layout is not affected by children with "display: none" style+Pass mmultiscripts preferred width calculation is not affected by children with "position: absolute" style+Pass mmultiscripts layout is not affected by children with "position: absolute" style+Pass mmultiscripts preferred width calculation is not affected by children with "position: fixed" style+Pass mmultiscripts layout is not affected by children with "position: fixed" style+Pass mn preferred width calculation is not affected by children with "display: none" style+Pass mn layout is not affected by children with "display: none" style+Pass mn preferred width calculation is not affected by children with "position: absolute" style+Pass mn layout is not affected by children with "position: absolute" style+Pass mn preferred width calculation is not affected by children with "position: fixed" style+Pass mn layout is not affected by children with "position: fixed" style+Pass mo preferred width calculation is not affected by children with "display: none" style+Pass mo layout is not affected by children with "display: none" style+Pass mo preferred width calculation is not affected by children with "position: absolute" style+Pass mo layout is not affected by children with "position: absolute" style+Pass mo preferred width calculation is not affected by children with "position: fixed" style+Pass mo layout is not affected by children with "position: fixed" style+Pass mover preferred width calculation is not affected by children with "display: none" style+Pass mover layout is not affected by children with "display: none" style+Pass mover preferred width calculation is not affected by children with "position: absolute" style+Pass mover layout is not affected by children with "position: absolute" style+Pass mover preferred width calculation is not affected by children with "position: fixed" style+Pass mover layout is not affected by children with "position: fixed" style+Pass mpadded preferred width calculation is not affected by children with "display: none" style+Pass mpadded layout is not affected by children with "display: none" style+Pass mpadded preferred width calculation is not affected by children with "display: contents" style+Pass mpadded layout is not affected by children with "display: contents" style+Pass mpadded preferred width calculation is not affected by children with "position: absolute" style+Pass mpadded layout is not affected by children with "position: absolute" style+Pass mpadded preferred width calculation is not affected by children with "position: fixed" style+Pass mpadded layout is not affected by children with "position: fixed" style+Pass mphantom preferred width calculation is not affected by children with "display: none" style+Pass mphantom layout is not affected by children with "display: none" style+Pass mphantom preferred width calculation is not affected by children with "display: contents" style+Pass mphantom layout is not affected by children with "display: contents" style+Pass mphantom preferred width calculation is not affected by children with "position: absolute" style+Pass mphantom layout is not affected by children with "position: absolute" style+Pass mphantom preferred width calculation is not affected by children with "position: fixed" style+Pass mphantom layout is not affected by children with "position: fixed" styleFail mroot preferred width calculation is not affected by children with "display: none" styleFail mroot layout is not affected by children with "display: none" styleFail mroot preferred width calculation is not affected by children with "position: absolute" styleFail mroot layout is not affected by children with "position: absolute" styleFail mroot preferred width calculation is not affected by children with "position: fixed" styleFail mroot layout is not affected by children with "position: fixed" style-Fail mrow preferred width calculation is not affected by children with "display: none" style-Fail mrow layout is not affected by children with "display: none" style-Fail mrow preferred width calculation is not affected by children with "display: contents" style-Fail mrow layout is not affected by children with "display: contents" style-Fail mrow preferred width calculation is not affected by children with "position: absolute" style-Fail mrow layout is not affected by children with "position: absolute" style-Fail mrow preferred width calculation is not affected by children with "position: fixed" style-Fail mrow layout is not affected by children with "position: fixed" style-Fail ms preferred width calculation is not affected by children with "display: none" style-Fail ms layout is not affected by children with "display: none" style-Fail ms preferred width calculation is not affected by children with "position: absolute" style-Fail ms layout is not affected by children with "position: absolute" style-Fail ms preferred width calculation is not affected by children with "position: fixed" style-Fail ms layout is not affected by children with "position: fixed" style+Pass mrow preferred width calculation is not affected by children with "display: none" style+Pass mrow layout is not affected by children with "display: none" style+Pass mrow preferred width calculation is not affected by children with "display: contents" style+Pass mrow layout is not affected by children with "display: contents" style+Pass mrow preferred width calculation is not affected by children with "position: absolute" style+Pass mrow layout is not affected by children with "position: absolute" style+Pass mrow preferred width calculation is not affected by children with "position: fixed" style+Pass mrow layout is not affected by children with "position: fixed" style+Pass ms preferred width calculation is not affected by children with "display: none" style+Pass ms layout is not affected by children with "display: none" style+Pass ms preferred width calculation is not affected by children with "position: absolute" style+Pass ms layout is not affected by children with "position: absolute" style+Pass ms preferred width calculation is not affected by children with "position: fixed" style+Pass ms layout is not affected by children with "position: fixed" styleFail msqrt preferred width calculation is not affected by children with "display: none" styleFail msqrt layout is not affected by children with "display: none" styleFail msqrt preferred width calculation is not affected by children with "display: contents" style@@ -114,59 +114,59 @@ Fail msqrt preferred width calculation is not affected by children with "positioFail msqrt layout is not affected by children with "position: absolute" styleFail msqrt preferred width calculation is not affected by children with "position: fixed" styleFail msqrt layout is not affected by children with "position: fixed" style-Fail mstyle preferred width calculation is not affected by children with "display: none" style-Fail mstyle layout is not affected by children with "display: none" style-Fail mstyle preferred width calculation is not affected by children with "display: contents" style-Fail mstyle layout is not affected by children with "display: contents" style-Fail mstyle preferred width calculation is not affected by children with "position: absolute" style-Fail mstyle layout is not affected by children with "position: absolute" style-Fail mstyle preferred width calculation is not affected by children with "position: fixed" style-Fail mstyle layout is not affected by children with "position: fixed" style-Fail msub preferred width calculation is not affected by children with "display: none" style-Fail msub layout is not affected by children with "display: none" style-Fail msub preferred width calculation is not affected by children with "position: absolute" style-Fail msub layout is not affected by children with "position: absolute" style-Fail msub preferred width calculation is not affected by children with "position: fixed" style-Fail msub layout is not affected by children with "position: fixed" style-Fail msubsup preferred width calculation is not affected by children with "display: none" style-Fail msubsup layout is not affected by children with "display: none" style-Fail msubsup preferred width calculation is not affected by children with "position: absolute" style-Fail msubsup layout is not affected by children with "position: absolute" style-Fail msubsup preferred width calculation is not affected by children with "position: fixed" style-Fail msubsup layout is not affected by children with "position: fixed" style-Fail msup preferred width calculation is not affected by children with "display: none" style-Fail msup layout is not affected by children with "display: none" style-Fail msup preferred width calculation is not affected by children with "position: absolute" style-Fail msup layout is not affected by children with "position: absolute" style-Fail msup preferred width calculation is not affected by children with "position: fixed" style-Fail msup layout is not affected by children with "position: fixed" style-Fail mtable preferred width calculation is not affected by children with "display: none" style-Fail mtable layout is not affected by children with "display: none" style-Fail mtable preferred width calculation is not affected by children with "position: absolute" style-Fail mtable layout is not affected by children with "position: absolute" style-Fail mtable preferred width calculation is not affected by children with "position: fixed" style-Fail mtable layout is not affected by children with "position: fixed" style-Fail mtext preferred width calculation is not affected by children with "display: none" style-Fail mtext layout is not affected by children with "display: none" style-Fail mtext preferred width calculation is not affected by children with "position: absolute" style-Fail mtext layout is not affected by children with "position: absolute" style-Fail mtext preferred width calculation is not affected by children with "position: fixed" style-Fail mtext layout is not affected by children with "position: fixed" style-Fail munder preferred width calculation is not affected by children with "display: none" style-Fail munder layout is not affected by children with "display: none" style-Fail munder preferred width calculation is not affected by children with "position: absolute" style-Fail munder layout is not affected by children with "position: absolute" style-Fail munder preferred width calculation is not affected by children with "position: fixed" style-Fail munder layout is not affected by children with "position: fixed" style-Fail munderover preferred width calculation is not affected by children with "display: none" style-Fail munderover layout is not affected by children with "display: none" style-Fail munderover preferred width calculation is not affected by children with "position: absolute" style-Fail munderover layout is not affected by children with "position: absolute" style-Fail munderover preferred width calculation is not affected by children with "position: fixed" style-Fail munderover layout is not affected by children with "position: fixed" style-Fail semantics preferred width calculation is not affected by children with "display: none" style-Fail semantics layout is not affected by children with "display: none" style-Fail semantics preferred width calculation is not affected by children with "position: absolute" style-Fail semantics layout is not affected by children with "position: absolute" style-Fail semantics preferred width calculation is not affected by children with "position: fixed" style-Fail semantics layout is not affected by children with "position: fixed" style\ No newline at end of file+Pass mstyle preferred width calculation is not affected by children with "display: none" style+Pass mstyle layout is not affected by children with "display: none" style+Pass mstyle preferred width calculation is not affected by children with "display: contents" style+Pass mstyle layout is not affected by children with "display: contents" style+Pass mstyle preferred width calculation is not affected by children with "position: absolute" style+Pass mstyle layout is not affected by children with "position: absolute" style+Pass mstyle preferred width calculation is not affected by children with "position: fixed" style+Pass mstyle layout is not affected by children with "position: fixed" style+Pass msub preferred width calculation is not affected by children with "display: none" style+Pass msub layout is not affected by children with "display: none" style+Pass msub preferred width calculation is not affected by children with "position: absolute" style+Pass msub layout is not affected by children with "position: absolute" style+Pass msub preferred width calculation is not affected by children with "position: fixed" style+Pass msub layout is not affected by children with "position: fixed" style+Pass msubsup preferred width calculation is not affected by children with "display: none" style+Pass msubsup layout is not affected by children with "display: none" style+Pass msubsup preferred width calculation is not affected by children with "position: absolute" style+Pass msubsup layout is not affected by children with "position: absolute" style+Pass msubsup preferred width calculation is not affected by children with "position: fixed" style+Pass msubsup layout is not affected by children with "position: fixed" style+Pass msup preferred width calculation is not affected by children with "display: none" style+Pass msup layout is not affected by children with "display: none" style+Pass msup preferred width calculation is not affected by children with "position: absolute" style+Pass msup layout is not affected by children with "position: absolute" style+Pass msup preferred width calculation is not affected by children with "position: fixed" style+Pass msup layout is not affected by children with "position: fixed" style+Pass mtable preferred width calculation is not affected by children with "display: none" style+Pass mtable layout is not affected by children with "display: none" style+Pass mtable preferred width calculation is not affected by children with "position: absolute" style+Pass mtable layout is not affected by children with "position: absolute" style+Pass mtable preferred width calculation is not affected by children with "position: fixed" style+Pass mtable layout is not affected by children with "position: fixed" style+Pass mtext preferred width calculation is not affected by children with "display: none" style+Pass mtext layout is not affected by children with "display: none" style+Pass mtext preferred width calculation is not affected by children with "position: absolute" style+Pass mtext layout is not affected by children with "position: absolute" style+Pass mtext preferred width calculation is not affected by children with "position: fixed" style+Pass mtext layout is not affected by children with "position: fixed" style+Pass munder preferred width calculation is not affected by children with "display: none" style+Pass munder layout is not affected by children with "display: none" style+Pass munder preferred width calculation is not affected by children with "position: absolute" style+Pass munder layout is not affected by children with "position: absolute" style+Pass munder preferred width calculation is not affected by children with "position: fixed" style+Pass munder layout is not affected by children with "position: fixed" style+Pass munderover preferred width calculation is not affected by children with "display: none" style+Pass munderover layout is not affected by children with "display: none" style+Pass munderover preferred width calculation is not affected by children with "position: absolute" style+Pass munderover layout is not affected by children with "position: absolute" style+Pass munderover preferred width calculation is not affected by children with "position: fixed" style+Pass munderover layout is not affected by children with "position: fixed" style+Pass semantics preferred width calculation is not affected by children with "display: none" style+Pass semantics layout is not affected by children with "display: none" style+Pass semantics preferred width calculation is not affected by children with "position: absolute" style+Pass semantics layout is not affected by children with "position: absolute" style+Pass semantics preferred width calculation is not affected by children with "position: fixed" style+Pass semantics layout is not affected by children with "position: fixed" style\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/out-of-flow/absolutely-positioned-002.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/out-of-flow/absolutely-positioned-002.txtindex 1e313dd09fc..db2f8c46f80 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/out-of-flow/absolutely-positioned-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/out-of-flow/absolutely-positioned-002.txt@@ -2,31 +2,31 @@ Harness status: OKFound 26 tests-1 Pass-25 Fail-Fail position: absolute on <a> element itself-Fail position: absolute on <maction> element itself-Fail position: absolute on <menclose> element itself-Fail position: absolute on <merror> element itself+23 Pass+3 Fail+Pass position: absolute on <a> element itself+Pass position: absolute on <maction> element itself+Pass position: absolute on <menclose> element itself+Pass position: absolute on <merror> element itselfPass position: absolute on <mfrac> element itself-Fail position: absolute on <mi> element itself-Fail position: absolute on <mmultiscripts> element itself-Fail position: absolute on <mn> element itself-Fail position: absolute on <mo> element itself-Fail position: absolute on <mover> element itself-Fail position: absolute on <mpadded> element itself-Fail position: absolute on <mphantom> element itself+Pass position: absolute on <mi> element itself+Pass position: absolute on <mmultiscripts> element itself+Pass position: absolute on <mn> element itself+Pass position: absolute on <mo> element itself+Pass position: absolute on <mover> element itself+Pass position: absolute on <mpadded> element itself+Pass position: absolute on <mphantom> element itselfFail position: absolute on <mroot> element itself-Fail position: absolute on <mrow> element itself-Fail position: absolute on <ms> element itself-Fail position: absolute on <mspace> element itself+Pass position: absolute on <mrow> element itself+Pass position: absolute on <ms> element itself+Pass position: absolute on <mspace> element itselfFail position: absolute on <msqrt> element itself-Fail position: absolute on <mstyle> element itself-Fail position: absolute on <msub> element itself-Fail position: absolute on <msubsup> element itself-Fail position: absolute on <msup> element itself+Pass position: absolute on <mstyle> element itself+Pass position: absolute on <msub> element itself+Pass position: absolute on <msubsup> element itself+Pass position: absolute on <msup> element itselfFail position: absolute on <mtable> element itself-Fail position: absolute on <mtext> element itself-Fail position: absolute on <munder> element itself-Fail position: absolute on <munderover> element itself-Fail position: absolute on <semantics> element itself\ No newline at end of file+Pass position: absolute on <mtext> element itself+Pass position: absolute on <munder> element itself+Pass position: absolute on <munderover> element itself+Pass position: absolute on <semantics> element itself\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/out-of-flow/all-mathml-containers.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/out-of-flow/all-mathml-containers.txtindex 5f73b7d5dc6..a559b3fb305 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/out-of-flow/all-mathml-containers.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/out-of-flow/all-mathml-containers.txt@@ -2,55 +2,55 @@ Harness status: OKFound 50 tests-2 Pass-48 Fail-Fail position: absolute; children in a-Fail position: absolute; children in maction-Fail position: absolute; children in menclose-Fail position: absolute; children in merror+46 Pass+4 Fail+Pass position: absolute; children in a+Pass position: absolute; children in maction+Pass position: absolute; children in menclose+Pass position: absolute; children in merrorPass position: absolute; children in mfrac-Fail position: absolute; children in mi-Fail position: absolute; children in mmultiscripts-Fail position: absolute; children in mn-Fail position: absolute; children in mo-Fail position: absolute; children in mover-Fail position: absolute; children in mpadded-Fail position: absolute; children in mphantom+Pass position: absolute; children in mi+Pass position: absolute; children in mmultiscripts+Pass position: absolute; children in mn+Pass position: absolute; children in mo+Pass position: absolute; children in mover+Pass position: absolute; children in mpadded+Pass position: absolute; children in mphantomFail position: absolute; children in mroot-Fail position: absolute; children in mrow-Fail position: absolute; children in ms+Pass position: absolute; children in mrow+Pass position: absolute; children in msFail position: absolute; children in msqrt-Fail position: absolute; children in mstyle-Fail position: absolute; children in msub-Fail position: absolute; children in msubsup-Fail position: absolute; children in msup-Fail position: absolute; children in mtable-Fail position: absolute; children in mtext-Fail position: absolute; children in munder-Fail position: absolute; children in munderover-Fail position: absolute; children in semantics-Fail position: fixed; children in a-Fail position: fixed; children in maction-Fail position: fixed; children in menclose-Fail position: fixed; children in merror+Pass position: absolute; children in mstyle+Pass position: absolute; children in msub+Pass position: absolute; children in msubsup+Pass position: absolute; children in msup+Pass position: absolute; children in mtable+Pass position: absolute; children in mtext+Pass position: absolute; children in munder+Pass position: absolute; children in munderover+Pass position: absolute; children in semantics+Pass position: fixed; children in a+Pass position: fixed; children in maction+Pass position: fixed; children in menclose+Pass position: fixed; children in merrorPass position: fixed; children in mfrac-Fail position: fixed; children in mi-Fail position: fixed; children in mmultiscripts-Fail position: fixed; children in mn-Fail position: fixed; children in mo-Fail position: fixed; children in mover-Fail position: fixed; children in mpadded-Fail position: fixed; children in mphantom+Pass position: fixed; children in mi+Pass position: fixed; children in mmultiscripts+Pass position: fixed; children in mn+Pass position: fixed; children in mo+Pass position: fixed; children in mover+Pass position: fixed; children in mpadded+Pass position: fixed; children in mphantomFail position: fixed; children in mroot-Fail position: fixed; children in mrow-Fail position: fixed; children in ms+Pass position: fixed; children in mrow+Pass position: fixed; children in msFail position: fixed; children in msqrt-Fail position: fixed; children in mstyle-Fail position: fixed; children in msub-Fail position: fixed; children in msubsup-Fail position: fixed; children in msup-Fail position: fixed; children in mtable-Fail position: fixed; children in mtext-Fail position: fixed; children in munder-Fail position: fixed; children in munderover-Fail position: fixed; children in semantics\ No newline at end of file+Pass position: fixed; children in mstyle+Pass position: fixed; children in msub+Pass position: fixed; children in msubsup+Pass position: fixed; children in msup+Pass position: fixed; children in mtable+Pass position: fixed; children in mtext+Pass position: fixed; children in munder+Pass position: fixed; children in munderover+Pass position: fixed; children in semantics\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/border-001.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/border-001.txtindex 6247cf514c4..ab3c0266445 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/border-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/border-001.txt@@ -2,10 +2,10 @@ Harness status: OKFound 6 tests-6 Fail-Fail Border properties on mrow-Fail Border properties on mrow (rtl)-Fail Border properties on mrow (shorthand)-Fail Border properties on mrow (logical)-Fail Border properties on mrow (logical, rtl)-Fail Border properties on mrow (logical, shorthand)\ No newline at end of file+6 Pass+Pass Border properties on mrow+Pass Border properties on mrow (rtl)+Pass Border properties on mrow (shorthand)+Pass Border properties on mrow (logical)+Pass Border properties on mrow (logical, rtl)+Pass Border properties on mrow (logical, shorthand)\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/border-002.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/border-002.txtindex a33c2adc87c..c428c52eb24 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/border-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/border-002.txt@@ -2,56 +2,56 @@ Harness status: OKFound 51 tests-2 Pass-49 Fail-Fail Border properties on a-Fail Border properties on a (rtl)-Fail Border properties on maction-Fail Border properties on maction (rtl)-Fail Border properties on menclose-Fail Border properties on menclose (rtl)-Fail Border properties on merror-Fail Border properties on merror (rtl)+47 Pass+4 Fail+Pass Border properties on a+Pass Border properties on a (rtl)+Pass Border properties on maction+Pass Border properties on maction (rtl)+Pass Border properties on menclose+Pass Border properties on menclose (rtl)+Pass Border properties on merror+Pass Border properties on merror (rtl)Pass Border properties on mfracPass Border properties on mfrac (rtl)-Fail Border properties on mi-Fail Border properties on mi (rtl)-Fail Border properties on mmultiscripts-Fail Border properties on mmultiscripts (rtl)-Fail Border properties on mn-Fail Border properties on mn (rtl)-Fail Border properties on mo-Fail Border properties on mo (rtl)-Fail Border properties on mover-Fail Border properties on mover (rtl)-Fail Border properties on mpadded-Fail Border properties on mpadded (rtl)-Fail Border properties on mphantom-Fail Border properties on mphantom (rtl)+Pass Border properties on mi+Pass Border properties on mi (rtl)+Pass Border properties on mmultiscripts+Pass Border properties on mmultiscripts (rtl)+Pass Border properties on mn+Pass Border properties on mn (rtl)+Pass Border properties on mo+Pass Border properties on mo (rtl)+Pass Border properties on mover+Pass Border properties on mover (rtl)+Pass Border properties on mpadded+Pass Border properties on mpadded (rtl)+Pass Border properties on mphantom+Pass Border properties on mphantom (rtl)Fail Border properties on mrootFail Border properties on mroot (rtl)-Fail Border properties on mrow-Fail Border properties on mrow (rtl)-Fail Border properties on ms-Fail Border properties on ms (rtl)-Fail Border properties on mspace+Pass Border properties on mrow+Pass Border properties on mrow (rtl)+Pass Border properties on ms+Pass Border properties on ms (rtl)+Pass Border properties on mspaceFail Border properties on msqrtFail Border properties on msqrt (rtl)-Fail Border properties on mstyle-Fail Border properties on mstyle (rtl)-Fail Border properties on msub-Fail Border properties on msub (rtl)-Fail Border properties on msubsup-Fail Border properties on msubsup (rtl)-Fail Border properties on msup-Fail Border properties on msup (rtl)-Fail Border properties on mtable-Fail Border properties on mtable (rtl)-Fail Border properties on mtext-Fail Border properties on mtext (rtl)-Fail Border properties on munder-Fail Border properties on munder (rtl)-Fail Border properties on munderover-Fail Border properties on munderover (rtl)-Fail Border properties on semantics-Fail Border properties on semantics (rtl)\ No newline at end of file+Pass Border properties on mstyle+Pass Border properties on mstyle (rtl)+Pass Border properties on msub+Pass Border properties on msub (rtl)+Pass Border properties on msubsup+Pass Border properties on msubsup (rtl)+Pass Border properties on msup+Pass Border properties on msup (rtl)+Pass Border properties on mtable+Pass Border properties on mtable (rtl)+Pass Border properties on mtext+Pass Border properties on mtext (rtl)+Pass Border properties on munder+Pass Border properties on munder (rtl)+Pass Border properties on munderover+Pass Border properties on munderover (rtl)+Pass Border properties on semantics+Pass Border properties on semantics (rtl)\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/margin-001.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/margin-001.txtindex 13d15131ffd..d2f31a55a75 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/margin-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/margin-001.txt@@ -2,10 +2,10 @@ Harness status: OKFound 6 tests-6 Fail-Fail Margin properties on mrow-Fail Margin properties on mrow (rtl)-Fail Margin properties on mrow (shorthand)-Fail Margin properties on mrow (logical)-Fail Margin properties on mrow (logical, rtl)-Fail Margin properties on mrow (logical, shorthand)\ No newline at end of file+6 Pass+Pass Margin properties on mrow+Pass Margin properties on mrow (rtl)+Pass Margin properties on mrow (shorthand)+Pass Margin properties on mrow (logical)+Pass Margin properties on mrow (logical, rtl)+Pass Margin properties on mrow (logical, shorthand)\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/margin-002.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/margin-002.txtindex 3588cdc5f2c..5d43cbc2553 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/margin-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/margin-002.txt@@ -2,81 +2,81 @@ Harness status: OKFound 76 tests-3 Pass-73 Fail-Fail Margin properties on a-Fail Margin properties on a (rtl)-Fail Margin properties on a (no margin-collapsing)-Fail Margin properties on maction-Fail Margin properties on maction (rtl)-Fail Margin properties on maction (no margin-collapsing)-Fail Margin properties on menclose-Fail Margin properties on menclose (rtl)-Fail Margin properties on menclose (no margin-collapsing)-Fail Margin properties on merror-Fail Margin properties on merror (rtl)-Fail Margin properties on merror (no margin-collapsing)+70 Pass+6 Fail+Pass Margin properties on a+Pass Margin properties on a (rtl)+Pass Margin properties on a (no margin-collapsing)+Pass Margin properties on maction+Pass Margin properties on maction (rtl)+Pass Margin properties on maction (no margin-collapsing)+Pass Margin properties on menclose+Pass Margin properties on menclose (rtl)+Pass Margin properties on menclose (no margin-collapsing)+Pass Margin properties on merror+Pass Margin properties on merror (rtl)+Pass Margin properties on merror (no margin-collapsing)Pass Margin properties on mfracPass Margin properties on mfrac (rtl)Pass Margin properties on mfrac (no margin-collapsing)-Fail Margin properties on mi-Fail Margin properties on mi (rtl)-Fail Margin properties on mi (no margin-collapsing)-Fail Margin properties on mmultiscripts-Fail Margin properties on mmultiscripts (rtl)-Fail Margin properties on mmultiscripts (no margin-collapsing)-Fail Margin properties on mn-Fail Margin properties on mn (rtl)-Fail Margin properties on mn (no margin-collapsing)-Fail Margin properties on mo-Fail Margin properties on mo (rtl)-Fail Margin properties on mo (no margin-collapsing)-Fail Margin properties on mover-Fail Margin properties on mover (rtl)-Fail Margin properties on mover (no margin-collapsing)-Fail Margin properties on mpadded-Fail Margin properties on mpadded (rtl)-Fail Margin properties on mpadded (no margin-collapsing)-Fail Margin properties on mphantom-Fail Margin properties on mphantom (rtl)-Fail Margin properties on mphantom (no margin-collapsing)+Pass Margin properties on mi+Pass Margin properties on mi (rtl)+Pass Margin properties on mi (no margin-collapsing)+Pass Margin properties on mmultiscripts+Pass Margin properties on mmultiscripts (rtl)+Pass Margin properties on mmultiscripts (no margin-collapsing)+Pass Margin properties on mn+Pass Margin properties on mn (rtl)+Pass Margin properties on mn (no margin-collapsing)+Pass Margin properties on mo+Pass Margin properties on mo (rtl)+Pass Margin properties on mo (no margin-collapsing)+Pass Margin properties on mover+Pass Margin properties on mover (rtl)+Pass Margin properties on mover (no margin-collapsing)+Pass Margin properties on mpadded+Pass Margin properties on mpadded (rtl)+Pass Margin properties on mpadded (no margin-collapsing)+Pass Margin properties on mphantom+Pass Margin properties on mphantom (rtl)+Pass Margin properties on mphantom (no margin-collapsing)Fail Margin properties on mrootFail Margin properties on mroot (rtl)Fail Margin properties on mroot (no margin-collapsing)-Fail Margin properties on mrow-Fail Margin properties on mrow (rtl)-Fail Margin properties on mrow (no margin-collapsing)-Fail Margin properties on ms-Fail Margin properties on ms (rtl)-Fail Margin properties on ms (no margin-collapsing)-Fail Margin properties on mspace+Pass Margin properties on mrow+Pass Margin properties on mrow (rtl)+Pass Margin properties on mrow (no margin-collapsing)+Pass Margin properties on ms+Pass Margin properties on ms (rtl)+Pass Margin properties on ms (no margin-collapsing)+Pass Margin properties on mspaceFail Margin properties on msqrtFail Margin properties on msqrt (rtl)Fail Margin properties on msqrt (no margin-collapsing)-Fail Margin properties on mstyle-Fail Margin properties on mstyle (rtl)-Fail Margin properties on mstyle (no margin-collapsing)-Fail Margin properties on msub-Fail Margin properties on msub (rtl)-Fail Margin properties on msub (no margin-collapsing)-Fail Margin properties on msubsup-Fail Margin properties on msubsup (rtl)-Fail Margin properties on msubsup (no margin-collapsing)-Fail Margin properties on msup-Fail Margin properties on msup (rtl)-Fail Margin properties on msup (no margin-collapsing)-Fail Margin properties on mtable-Fail Margin properties on mtable (rtl)-Fail Margin properties on mtable (no margin-collapsing)-Fail Margin properties on mtext-Fail Margin properties on mtext (rtl)-Fail Margin properties on mtext (no margin-collapsing)-Fail Margin properties on munder-Fail Margin properties on munder (rtl)-Fail Margin properties on munder (no margin-collapsing)-Fail Margin properties on munderover-Fail Margin properties on munderover (rtl)-Fail Margin properties on munderover (no margin-collapsing)-Fail Margin properties on semantics-Fail Margin properties on semantics (rtl)-Fail Margin properties on semantics (no margin-collapsing)\ No newline at end of file+Pass Margin properties on mstyle+Pass Margin properties on mstyle (rtl)+Pass Margin properties on mstyle (no margin-collapsing)+Pass Margin properties on msub+Pass Margin properties on msub (rtl)+Pass Margin properties on msub (no margin-collapsing)+Pass Margin properties on msubsup+Pass Margin properties on msubsup (rtl)+Pass Margin properties on msubsup (no margin-collapsing)+Pass Margin properties on msup+Pass Margin properties on msup (rtl)+Pass Margin properties on msup (no margin-collapsing)+Pass Margin properties on mtable+Pass Margin properties on mtable (rtl)+Pass Margin properties on mtable (no margin-collapsing)+Pass Margin properties on mtext+Pass Margin properties on mtext (rtl)+Pass Margin properties on mtext (no margin-collapsing)+Pass Margin properties on munder+Pass Margin properties on munder (rtl)+Pass Margin properties on munder (no margin-collapsing)+Pass Margin properties on munderover+Pass Margin properties on munderover (rtl)+Pass Margin properties on munderover (no margin-collapsing)+Pass Margin properties on semantics+Pass Margin properties on semantics (rtl)+Pass Margin properties on semantics (no margin-collapsing)\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/margin-003.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/margin-003.txtindex c88ae6399b9..0883fd7d521 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/margin-003.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/margin-003.txt@@ -2,21 +2,22 @@ Harness status: OKFound 17 tests-17 Fail-Fail Margin properties on the children of a-Fail Margin properties on the children of menclose-Fail Margin properties on the children of merror+11 Pass+6 Fail+Pass Margin properties on the children of a+Pass Margin properties on the children of menclose+Pass Margin properties on the children of merrorFail Margin properties on the children of mfrac-Fail Margin properties on the children of mmultiscripts-Fail Margin properties on the children of mover-Fail Margin properties on the children of mpadded-Fail Margin properties on the children of mphantom+Pass Margin properties on the children of mmultiscripts+Pass Margin properties on the children of mover+Pass Margin properties on the children of mpadded+Pass Margin properties on the children of mphantomFail Margin properties on the children of mroot-Fail Margin properties on the children of mrow+Pass Margin properties on the children of mrowFail Margin properties on the children of msqrt-Fail Margin properties on the children of mstyle+Pass Margin properties on the children of mstyleFail Margin properties on the children of msubFail Margin properties on the children of msubsupFail Margin properties on the children of msup-Fail Margin properties on the children of munder-Fail Margin properties on the children of munderover\ No newline at end of file+Pass Margin properties on the children of munder+Pass Margin properties on the children of munderover\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/padding-001.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/padding-001.txtindex 66caf781277..60edf447615 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/padding-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/padding-001.txt@@ -2,10 +2,10 @@ Harness status: OKFound 6 tests-6 Fail-Fail Padding properties on mrow-Fail Padding properties on mrow (rtl)-Fail Padding properties on mrow (shorthand)-Fail Padding properties on mrow (logical)-Fail Padding properties on mrow (logical, rtl)-Fail Padding properties on mrow (logical, shorthand)\ No newline at end of file+6 Pass+Pass Padding properties on mrow+Pass Padding properties on mrow (rtl)+Pass Padding properties on mrow (shorthand)+Pass Padding properties on mrow (logical)+Pass Padding properties on mrow (logical, rtl)+Pass Padding properties on mrow (logical, shorthand)\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/padding-002.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/padding-002.txtindex 57d0bec0ae7..73c8a7de059 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/padding-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/padding-border-margin/padding-002.txt@@ -2,56 +2,56 @@ Harness status: OKFound 51 tests-2 Pass-49 Fail-Fail Padding properties on a-Fail Padding properties on a (rtl)-Fail Padding properties on maction-Fail Padding properties on maction (rtl)-Fail Padding properties on menclose-Fail Padding properties on menclose (rtl)-Fail Padding properties on merror-Fail Padding properties on merror (rtl)+47 Pass+4 Fail+Pass Padding properties on a+Pass Padding properties on a (rtl)+Pass Padding properties on maction+Pass Padding properties on maction (rtl)+Pass Padding properties on menclose+Pass Padding properties on menclose (rtl)+Pass Padding properties on merror+Pass Padding properties on merror (rtl)Pass Padding properties on mfracPass Padding properties on mfrac (rtl)-Fail Padding properties on mi-Fail Padding properties on mi (rtl)-Fail Padding properties on mmultiscripts-Fail Padding properties on mmultiscripts (rtl)-Fail Padding properties on mn-Fail Padding properties on mn (rtl)-Fail Padding properties on mo-Fail Padding properties on mo (rtl)-Fail Padding properties on mover-Fail Padding properties on mover (rtl)-Fail Padding properties on mpadded-Fail Padding properties on mpadded (rtl)-Fail Padding properties on mphantom-Fail Padding properties on mphantom (rtl)+Pass Padding properties on mi+Pass Padding properties on mi (rtl)+Pass Padding properties on mmultiscripts+Pass Padding properties on mmultiscripts (rtl)+Pass Padding properties on mn+Pass Padding properties on mn (rtl)+Pass Padding properties on mo+Pass Padding properties on mo (rtl)+Pass Padding properties on mover+Pass Padding properties on mover (rtl)+Pass Padding properties on mpadded+Pass Padding properties on mpadded (rtl)+Pass Padding properties on mphantom+Pass Padding properties on mphantom (rtl)Fail Padding properties on mrootFail Padding properties on mroot (rtl)-Fail Padding properties on mrow-Fail Padding properties on mrow (rtl)-Fail Padding properties on ms-Fail Padding properties on ms (rtl)-Fail Padding properties on mspace+Pass Padding properties on mrow+Pass Padding properties on mrow (rtl)+Pass Padding properties on ms+Pass Padding properties on ms (rtl)+Pass Padding properties on mspaceFail Padding properties on msqrtFail Padding properties on msqrt (rtl)-Fail Padding properties on mstyle-Fail Padding properties on mstyle (rtl)-Fail Padding properties on msub-Fail Padding properties on msub (rtl)-Fail Padding properties on msubsup-Fail Padding properties on msubsup (rtl)-Fail Padding properties on msup-Fail Padding properties on msup (rtl)-Fail Padding properties on mtable-Fail Padding properties on mtable (rtl)-Fail Padding properties on mtext-Fail Padding properties on mtext (rtl)-Fail Padding properties on munder-Fail Padding properties on munder (rtl)-Fail Padding properties on munderover-Fail Padding properties on munderover (rtl)-Fail Padding properties on semantics-Fail Padding properties on semantics (rtl)\ No newline at end of file+Pass Padding properties on mstyle+Pass Padding properties on mstyle (rtl)+Pass Padding properties on msub+Pass Padding properties on msub (rtl)+Pass Padding properties on msubsup+Pass Padding properties on msubsup (rtl)+Pass Padding properties on msup+Pass Padding properties on msup (rtl)+Pass Padding properties on mtable+Pass Padding properties on mtable (rtl)+Pass Padding properties on mtext+Pass Padding properties on mtext (rtl)+Pass Padding properties on munder+Pass Padding properties on munder (rtl)+Pass Padding properties on munderover+Pass Padding properties on munderover (rtl)+Pass Padding properties on semantics+Pass Padding properties on semantics (rtl)\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/size-containment-001.tentative.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/size-containment-001.tentative.txtindex a0ab4a02c79..2cf2b59de24 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/size-containment-001.tentative.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/size-containment-001.tentative.txt@@ -2,49 +2,48 @@ Harness status: OKFound 44 tests-2 Pass-42 Fail-Fail intrinsic size of a with contain: size; contain-intrinsic-inline-size: 111px;-Fail inline-size of a with contain: size; contain-intrinsic-inline-size: 111px;-Fail intrinsic size of maction with contain: size; contain-intrinsic-inline-size: 111px;-Fail inline-size of maction with contain: size; contain-intrinsic-inline-size: 111px;-Fail intrinsic size of menclose with contain: size; contain-intrinsic-inline-size: 111px;-Fail inline-size of menclose with contain: size; contain-intrinsic-inline-size: 111px;-Fail intrinsic size of merror with contain: size; contain-intrinsic-inline-size: 111px;-Fail inline-size of merror with contain: size; contain-intrinsic-inline-size: 111px;+44 Pass+Pass intrinsic size of a with contain: size; contain-intrinsic-inline-size: 111px;+Pass inline-size of a with contain: size; contain-intrinsic-inline-size: 111px;+Pass intrinsic size of maction with contain: size; contain-intrinsic-inline-size: 111px;+Pass inline-size of maction with contain: size; contain-intrinsic-inline-size: 111px;+Pass intrinsic size of menclose with contain: size; contain-intrinsic-inline-size: 111px;+Pass inline-size of menclose with contain: size; contain-intrinsic-inline-size: 111px;+Pass intrinsic size of merror with contain: size; contain-intrinsic-inline-size: 111px;+Pass inline-size of merror with contain: size; contain-intrinsic-inline-size: 111px;Pass intrinsic size of mfrac with contain: size; contain-intrinsic-inline-size: 111px;Pass inline-size of mfrac with contain: size; contain-intrinsic-inline-size: 111px;-Fail intrinsic size of mi with contain: size; contain-intrinsic-inline-size: 111px;-Fail inline-size of mi with contain: size; contain-intrinsic-inline-size: 111px;-Fail intrinsic size of mmultiscripts with contain: size; contain-intrinsic-inline-size: 111px;-Fail inline-size of mmultiscripts with contain: size; contain-intrinsic-inline-size: 111px;-Fail intrinsic size of mn with contain: size; contain-intrinsic-inline-size: 111px;-Fail inline-size of mn with contain: size; contain-intrinsic-inline-size: 111px;-Fail intrinsic size of mo with contain: size; contain-intrinsic-inline-size: 111px;-Fail inline-size of mo with contain: size; contain-intrinsic-inline-size: 111px;-Fail intrinsic size of mover with contain: size; contain-intrinsic-inline-size: 111px;-Fail inline-size of mover with contain: size; contain-intrinsic-inline-size: 111px;-Fail intrinsic size of mpadded with contain: size; contain-intrinsic-inline-size: 111px;-Fail inline-size of mpadded with contain: size; contain-intrinsic-inline-size: 111px;-Fail intrinsic size of mphantom with contain: size; contain-intrinsic-inline-size: 111px;-Fail inline-size of mphantom with contain: size; contain-intrinsic-inline-size: 111px;-Fail intrinsic size of mrow with contain: size; contain-intrinsic-inline-size: 111px;-Fail inline-size of mrow with contain: size; contain-intrinsic-inline-size: 111px;-Fail intrinsic size of ms with contain: size; contain-intrinsic-inline-size: 111px;-Fail inline-size of ms with contain: size; contain-intrinsic-inline-size: 111px;-Fail intrinsic size of mstyle with contain: size; contain-intrinsic-inline-size: 111px;-Fail inline-size of mstyle with contain: size; contain-intrinsic-inline-size: 111px;-Fail intrinsic size of msub with contain: size; contain-intrinsic-inline-size: 111px;-Fail inline-size of msub with contain: size; contain-intrinsic-inline-size: 111px;-Fail intrinsic size of msubsup with contain: size; contain-intrinsic-inline-size: 111px;-Fail inline-size of msubsup with contain: size; contain-intrinsic-inline-size: 111px;-Fail intrinsic size of msup with contain: size; contain-intrinsic-inline-size: 111px;-Fail inline-size of msup with contain: size; contain-intrinsic-inline-size: 111px;-Fail intrinsic size of mtext with contain: size; contain-intrinsic-inline-size: 111px;-Fail inline-size of mtext with contain: size; contain-intrinsic-inline-size: 111px;-Fail intrinsic size of munder with contain: size; contain-intrinsic-inline-size: 111px;-Fail inline-size of munder with contain: size; contain-intrinsic-inline-size: 111px;-Fail intrinsic size of munderover with contain: size; contain-intrinsic-inline-size: 111px;-Fail inline-size of munderover with contain: size; contain-intrinsic-inline-size: 111px;-Fail intrinsic size of semantics with contain: size; contain-intrinsic-inline-size: 111px;-Fail inline-size of semantics with contain: size; contain-intrinsic-inline-size: 111px;\ No newline at end of file+Pass intrinsic size of mi with contain: size; contain-intrinsic-inline-size: 111px;+Pass inline-size of mi with contain: size; contain-intrinsic-inline-size: 111px;+Pass intrinsic size of mmultiscripts with contain: size; contain-intrinsic-inline-size: 111px;+Pass inline-size of mmultiscripts with contain: size; contain-intrinsic-inline-size: 111px;+Pass intrinsic size of mn with contain: size; contain-intrinsic-inline-size: 111px;+Pass inline-size of mn with contain: size; contain-intrinsic-inline-size: 111px;+Pass intrinsic size of mo with contain: size; contain-intrinsic-inline-size: 111px;+Pass inline-size of mo with contain: size; contain-intrinsic-inline-size: 111px;+Pass intrinsic size of mover with contain: size; contain-intrinsic-inline-size: 111px;+Pass inline-size of mover with contain: size; contain-intrinsic-inline-size: 111px;+Pass intrinsic size of mpadded with contain: size; contain-intrinsic-inline-size: 111px;+Pass inline-size of mpadded with contain: size; contain-intrinsic-inline-size: 111px;+Pass intrinsic size of mphantom with contain: size; contain-intrinsic-inline-size: 111px;+Pass inline-size of mphantom with contain: size; contain-intrinsic-inline-size: 111px;+Pass intrinsic size of mrow with contain: size; contain-intrinsic-inline-size: 111px;+Pass inline-size of mrow with contain: size; contain-intrinsic-inline-size: 111px;+Pass intrinsic size of ms with contain: size; contain-intrinsic-inline-size: 111px;+Pass inline-size of ms with contain: size; contain-intrinsic-inline-size: 111px;+Pass intrinsic size of mstyle with contain: size; contain-intrinsic-inline-size: 111px;+Pass inline-size of mstyle with contain: size; contain-intrinsic-inline-size: 111px;+Pass intrinsic size of msub with contain: size; contain-intrinsic-inline-size: 111px;+Pass inline-size of msub with contain: size; contain-intrinsic-inline-size: 111px;+Pass intrinsic size of msubsup with contain: size; contain-intrinsic-inline-size: 111px;+Pass inline-size of msubsup with contain: size; contain-intrinsic-inline-size: 111px;+Pass intrinsic size of msup with contain: size; contain-intrinsic-inline-size: 111px;+Pass inline-size of msup with contain: size; contain-intrinsic-inline-size: 111px;+Pass intrinsic size of mtext with contain: size; contain-intrinsic-inline-size: 111px;+Pass inline-size of mtext with contain: size; contain-intrinsic-inline-size: 111px;+Pass intrinsic size of munder with contain: size; contain-intrinsic-inline-size: 111px;+Pass inline-size of munder with contain: size; contain-intrinsic-inline-size: 111px;+Pass intrinsic size of munderover with contain: size; contain-intrinsic-inline-size: 111px;+Pass inline-size of munderover with contain: size; contain-intrinsic-inline-size: 111px;+Pass intrinsic size of semantics with contain: size; contain-intrinsic-inline-size: 111px;+Pass inline-size of semantics with contain: size; contain-intrinsic-inline-size: 111px;\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/width-height-001.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/width-height-001.txtindex ea59634db7f..f064469fab5 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/width-height-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/width-height-001.txt@@ -2,108 +2,108 @@ Harness status: OKFound 103 tests-4 Pass-99 Fail-Fail width and height properties on a-Fail inline-size and block-size properties on a-Fail width and height properties on a (content overflowing)-Fail width property on a (preferred width)-Fail width and height properties on maction-Fail inline-size and block-size properties on maction-Fail width and height properties on maction (content overflowing)-Fail width property on maction (preferred width)-Fail width and height properties on menclose-Fail inline-size and block-size properties on menclose-Fail width and height properties on menclose (content overflowing)-Fail width property on menclose (preferred width)-Fail width and height properties on merror-Fail inline-size and block-size properties on merror-Fail width and height properties on merror (content overflowing)-Fail width property on merror (preferred width)+94 Pass+9 Fail+Pass width and height properties on a+Pass inline-size and block-size properties on a+Pass width and height properties on a (content overflowing)+Pass width property on a (preferred width)+Pass width and height properties on maction+Pass inline-size and block-size properties on maction+Pass width and height properties on maction (content overflowing)+Pass width property on maction (preferred width)+Pass width and height properties on menclose+Pass inline-size and block-size properties on menclose+Pass width and height properties on menclose (content overflowing)+Pass width property on menclose (preferred width)+Pass width and height properties on merror+Pass inline-size and block-size properties on merror+Pass width and height properties on merror (content overflowing)+Pass width property on merror (preferred width)Pass width and height properties on mfracPass inline-size and block-size properties on mfracPass width and height properties on mfrac (content overflowing)Pass width property on mfrac (preferred width)-Fail width and height properties on mi-Fail inline-size and block-size properties on mi-Fail width and height properties on mi (content overflowing)-Fail width property on mi (preferred width)-Fail width and height properties on mmultiscripts-Fail inline-size and block-size properties on mmultiscripts-Fail width and height properties on mmultiscripts (content overflowing)-Fail width property on mmultiscripts (preferred width)-Fail width and height properties on mn-Fail inline-size and block-size properties on mn-Fail width and height properties on mn (content overflowing)-Fail width property on mn (preferred width)-Fail width and height properties on mo-Fail inline-size and block-size properties on mo-Fail width and height properties on mo (content overflowing)+Pass width and height properties on mi+Pass inline-size and block-size properties on mi+Pass width and height properties on mi (content overflowing)+Pass width property on mi (preferred width)+Pass width and height properties on mmultiscripts+Pass inline-size and block-size properties on mmultiscripts+Pass width and height properties on mmultiscripts (content overflowing)+Pass width property on mmultiscripts (preferred width)+Pass width and height properties on mn+Pass inline-size and block-size properties on mn+Pass width and height properties on mn (content overflowing)+Pass width property on mn (preferred width)+Pass width and height properties on mo+Pass inline-size and block-size properties on mo+Pass width and height properties on mo (content overflowing)Fail width property on mo (preferred width)-Fail width and height properties on mover-Fail inline-size and block-size properties on mover-Fail width and height properties on mover (content overflowing)-Fail width property on mover (preferred width)-Fail width and height properties on mpadded-Fail inline-size and block-size properties on mpadded-Fail width and height properties on mpadded (content overflowing)-Fail width property on mpadded (preferred width)-Fail width and height properties on mphantom-Fail inline-size and block-size properties on mphantom-Fail width and height properties on mphantom (content overflowing)-Fail width property on mphantom (preferred width)+Pass width and height properties on mover+Pass inline-size and block-size properties on mover+Pass width and height properties on mover (content overflowing)+Pass width property on mover (preferred width)+Pass width and height properties on mpadded+Pass inline-size and block-size properties on mpadded+Pass width and height properties on mpadded (content overflowing)+Pass width property on mpadded (preferred width)+Pass width and height properties on mphantom+Pass inline-size and block-size properties on mphantom+Pass width and height properties on mphantom (content overflowing)+Pass width property on mphantom (preferred width)Fail width and height properties on mrootFail inline-size and block-size properties on mrootFail width and height properties on mroot (content overflowing)Fail width property on mroot (preferred width)-Fail width and height properties on mrow-Fail inline-size and block-size properties on mrow-Fail width and height properties on mrow (content overflowing)-Fail width property on mrow (preferred width)-Fail width and height properties on ms-Fail inline-size and block-size properties on ms-Fail width and height properties on ms (content overflowing)-Fail width property on ms (preferred width)-Fail width and height properties on mspace-Fail inline-size and block-size properties on mspace-Fail width and height properties on mspace (content overflowing)-Fail width property on mspace (preferred width)+Pass width and height properties on mrow+Pass inline-size and block-size properties on mrow+Pass width and height properties on mrow (content overflowing)+Pass width property on mrow (preferred width)+Pass width and height properties on ms+Pass inline-size and block-size properties on ms+Pass width and height properties on ms (content overflowing)+Pass width property on ms (preferred width)+Pass width and height properties on mspace+Pass inline-size and block-size properties on mspace+Pass width and height properties on mspace (content overflowing)+Pass width property on mspace (preferred width)Fail width and height properties on msqrtFail inline-size and block-size properties on msqrtFail width and height properties on msqrt (content overflowing)Fail width property on msqrt (preferred width)-Fail width and height properties on mstyle-Fail inline-size and block-size properties on mstyle-Fail width and height properties on mstyle (content overflowing)-Fail width property on mstyle (preferred width)-Fail width and height properties on msub-Fail inline-size and block-size properties on msub-Fail width and height properties on msub (content overflowing)-Fail width property on msub (preferred width)-Fail width and height properties on msubsup-Fail inline-size and block-size properties on msubsup-Fail width and height properties on msubsup (content overflowing)-Fail width property on msubsup (preferred width)-Fail width and height properties on msup-Fail inline-size and block-size properties on msup-Fail width and height properties on msup (content overflowing)-Fail width property on msup (preferred width)-Fail width and height properties on mtable-Fail inline-size and block-size properties on mtable-Fail width property on mtable (preferred width)-Fail width and height properties on mtext-Fail inline-size and block-size properties on mtext-Fail width and height properties on mtext (content overflowing)-Fail width property on mtext (preferred width)-Fail width and height properties on munder-Fail inline-size and block-size properties on munder-Fail width and height properties on munder (content overflowing)-Fail width property on munder (preferred width)-Fail width and height properties on munderover-Fail inline-size and block-size properties on munderover-Fail width and height properties on munderover (content overflowing)-Fail width property on munderover (preferred width)-Fail width and height properties on semantics-Fail inline-size and block-size properties on semantics-Fail width and height properties on semantics (content overflowing)-Fail width property on semantics (preferred width)\ No newline at end of file+Pass width and height properties on mstyle+Pass inline-size and block-size properties on mstyle+Pass width and height properties on mstyle (content overflowing)+Pass width property on mstyle (preferred width)+Pass width and height properties on msub+Pass inline-size and block-size properties on msub+Pass width and height properties on msub (content overflowing)+Pass width property on msub (preferred width)+Pass width and height properties on msubsup+Pass inline-size and block-size properties on msubsup+Pass width and height properties on msubsup (content overflowing)+Pass width property on msubsup (preferred width)+Pass width and height properties on msup+Pass inline-size and block-size properties on msup+Pass width and height properties on msup (content overflowing)+Pass width property on msup (preferred width)+Pass width and height properties on mtable+Pass inline-size and block-size properties on mtable+Pass width property on mtable (preferred width)+Pass width and height properties on mtext+Pass inline-size and block-size properties on mtext+Pass width and height properties on mtext (content overflowing)+Pass width property on mtext (preferred width)+Pass width and height properties on munder+Pass inline-size and block-size properties on munder+Pass width and height properties on munder (content overflowing)+Pass width property on munder (preferred width)+Pass width and height properties on munderover+Pass inline-size and block-size properties on munderover+Pass width and height properties on munderover (content overflowing)+Pass width property on munderover (preferred width)+Pass width and height properties on semantics+Pass inline-size and block-size properties on semantics+Pass width and height properties on semantics (content overflowing)+Pass width property on semantics (preferred width)\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/writing-mode/writing-mode-001.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/writing-mode/writing-mode-001.txtindex 93ec5cfa438..e3964e69ba4 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/writing-mode/writing-mode-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/writing-mode/writing-mode-001.txt@@ -2,7 +2,6 @@ Harness status: OKFound 2 tests-1 Pass-1 Fail+2 PassPass Inheritance of CSS writing-mode and direction (id='horizontal-tb_rtl')-Fail Layout of mrow (id='horizontal-tb_rtl')\ No newline at end of file+Pass Layout of mrow (id='horizontal-tb_rtl')\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/writing-mode/writing-mode-002.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/writing-mode/writing-mode-002.txtindex 4249b1d1406..29e84011a51 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/writing-mode/writing-mode-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/css-styling/writing-mode/writing-mode-002.txt@@ -2,34 +2,35 @@ Harness status: OKFound 30 tests-30 Fail-Fail Layout of a (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of maction (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of menclose (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of merror (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of mfrac (writing-mode: horizontal-tb; direction: rtl;)+25 Pass+5 Fail+Pass Layout of a (writing-mode: horizontal-tb; direction: rtl;)+Pass Layout of maction (writing-mode: horizontal-tb; direction: rtl;)+Pass Layout of menclose (writing-mode: horizontal-tb; direction: rtl;)+Pass Layout of merror (writing-mode: horizontal-tb; direction: rtl;)+Pass Layout of mfrac (writing-mode: horizontal-tb; direction: rtl;)Fail Layout of mi (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of mmultiscripts (writing-mode: horizontal-tb; direction: rtl;)+Pass Layout of mmultiscripts (writing-mode: horizontal-tb; direction: rtl;)Fail Layout of mn (writing-mode: horizontal-tb; direction: rtl;)Fail Layout of mo (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of mover (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of mpadded (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of mphantom (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of mprescripts (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of mroot (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of mrow (writing-mode: horizontal-tb; direction: rtl;)+Pass Layout of mover (writing-mode: horizontal-tb; direction: rtl;)+Pass Layout of mpadded (writing-mode: horizontal-tb; direction: rtl;)+Pass Layout of mphantom (writing-mode: horizontal-tb; direction: rtl;)+Pass Layout of mprescripts (writing-mode: horizontal-tb; direction: rtl;)+Pass Layout of mroot (writing-mode: horizontal-tb; direction: rtl;)+Pass Layout of mrow (writing-mode: horizontal-tb; direction: rtl;)Fail Layout of ms (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of mspace (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of msqrt (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of mstyle (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of msub (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of msubsup (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of msup (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of mtable (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of mtd (writing-mode: horizontal-tb; direction: rtl;)+Pass Layout of mspace (writing-mode: horizontal-tb; direction: rtl;)+Pass Layout of msqrt (writing-mode: horizontal-tb; direction: rtl;)+Pass Layout of mstyle (writing-mode: horizontal-tb; direction: rtl;)+Pass Layout of msub (writing-mode: horizontal-tb; direction: rtl;)+Pass Layout of msubsup (writing-mode: horizontal-tb; direction: rtl;)+Pass Layout of msup (writing-mode: horizontal-tb; direction: rtl;)+Pass Layout of mtable (writing-mode: horizontal-tb; direction: rtl;)+Pass Layout of mtd (writing-mode: horizontal-tb; direction: rtl;)Fail Layout of mtext (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of mtr (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of munder (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of munderover (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of none (writing-mode: horizontal-tb; direction: rtl;)-Fail Layout of semantics (writing-mode: horizontal-tb; direction: rtl;)\ No newline at end of file+Pass Layout of mtr (writing-mode: horizontal-tb; direction: rtl;)+Pass Layout of munder (writing-mode: horizontal-tb; direction: rtl;)+Pass Layout of munderover (writing-mode: horizontal-tb; direction: rtl;)+Pass Layout of none (writing-mode: horizontal-tb; direction: rtl;)+Pass Layout of semantics (writing-mode: horizontal-tb; direction: rtl;)\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/content-editable.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/content-editable.txtindex cda347cd864..d2ac0ea7063 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/content-editable.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/content-editable.txt@@ -2,6 +2,6 @@ Harness status: OKFound 2 tests-2 Fail-Fail mspace layout in content-editable div-Fail mfrac layout in content-editable div\ No newline at end of file+2 Pass+Pass mspace layout in content-editable div+Pass mfrac layout in content-editable div\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/display-1.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/display-1.txtindex 5dc91fd95e9..6a0a3d7869d 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/display-1.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/display-1.txt@@ -2,15 +2,16 @@ Harness status: OKFound 11 tests-11 Fail-Fail Test display math lowercase+7 Pass+4 Fail+Pass Test display math lowercaseFail Test inline math lowercase-Fail Test width on display=block math lowercase-Fail Test display math uppercase+Pass Test width on display=block math lowercase+Pass Test display math uppercaseFail Test inline math uppercase-Fail Test width on display=block math uppercase-Fail Test display math alternate_case+Pass Test width on display=block math uppercase+Pass Test display math alternate_caseFail Test inline math alternate_case-Fail Test width on display=block math alternate_case-Fail Test dynamically setting display=block+Pass Test width on display=block math alternate_case+Pass Test dynamically setting display=blockFail Test dynamically setting display=inline\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/dynamic-childlist-001.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/dynamic-childlist-001.txtindex cf062efedab..e3b75fc557e 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/dynamic-childlist-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/dynamic-childlist-001.txt@@ -2,48 +2,48 @@ Harness status: OKFound 44 tests-44 Fail-Fail Adding missing children to mfrac-Fail Removing child from valid mfrac-Fail Adding child to valid mfrac-Fail Removing extra child from mfrac-Fail Adding missing children to munder-Fail Removing child from valid munder-Fail Adding child to valid munder-Fail Removing extra child from munder-Fail Adding missing children to mover-Fail Removing child from valid mover-Fail Adding child to valid mover-Fail Removing extra child from mover-Fail Adding missing children to munderover-Fail Removing child from valid munderover-Fail Adding child to valid munderover-Fail Removing extra child from munderover-Fail Adding missing children to msub-Fail Removing child from valid msub-Fail Adding child to valid msub-Fail Removing extra child from msub-Fail Adding missing children to msup-Fail Removing child from valid msup-Fail Adding child to valid msup-Fail Removing extra child from msup-Fail Adding missing children to msubsup-Fail Removing child from valid msubsup-Fail Adding child to valid msubsup-Fail Removing extra child from msubsup-Fail Adding missing children to mroot-Fail Removing child from valid mroot-Fail Adding child to valid mroot-Fail Removing extra child from mroot-Fail Removing children from msqrt-Fail Adding children to msqrt-Fail Removing children from mpadded-Fail Adding children to mpadded-Fail Removing children from mspace-Fail Adding children to mspace-Fail multiscripts child count from 3 to 0-Fail multiscripts child count from 3 to 1-Fail multiscripts child count from 3 to 2-Fail multiscripts child count from 0 to 3-Fail multiscripts child count from 3 to 6-Fail multiscripts child count from 3 to 8\ No newline at end of file+44 Pass+Pass Adding missing children to mfrac+Pass Removing child from valid mfrac+Pass Adding child to valid mfrac+Pass Removing extra child from mfrac+Pass Adding missing children to munder+Pass Removing child from valid munder+Pass Adding child to valid munder+Pass Removing extra child from munder+Pass Adding missing children to mover+Pass Removing child from valid mover+Pass Adding child to valid mover+Pass Removing extra child from mover+Pass Adding missing children to munderover+Pass Removing child from valid munderover+Pass Adding child to valid munderover+Pass Removing extra child from munderover+Pass Adding missing children to msub+Pass Removing child from valid msub+Pass Adding child to valid msub+Pass Removing extra child from msub+Pass Adding missing children to msup+Pass Removing child from valid msup+Pass Adding child to valid msup+Pass Removing extra child from msup+Pass Adding missing children to msubsup+Pass Removing child from valid msubsup+Pass Adding child to valid msubsup+Pass Removing extra child from msubsup+Pass Adding missing children to mroot+Pass Removing child from valid mroot+Pass Adding child to valid mroot+Pass Removing extra child from mroot+Pass Removing children from msqrt+Pass Adding children to msqrt+Pass Removing children from mpadded+Pass Adding children to mpadded+Pass Removing children from mspace+Pass Adding children to mspace+Pass multiscripts child count from 3 to 0+Pass multiscripts child count from 3 to 1+Pass multiscripts child count from 3 to 2+Pass multiscripts child count from 0 to 3+Pass multiscripts child count from 3 to 6+Pass multiscripts child count from 3 to 8\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/dynamic-childlist-002.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/dynamic-childlist-002.txtindex 1ed6cc6736a..f4133691df0 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/dynamic-childlist-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/dynamic-childlist-002.txt@@ -2,30 +2,31 @@ Harness status: OKFound 26 tests-26 Fail-Fail Appending and removing children to a-Fail Appending and removing children to maction-Fail Appending and removing children to menclose-Fail Appending and removing children to merror-Fail Appending and removing children to mfrac-Fail Appending and removing children to mi-Fail Appending and removing children to mmultiscripts-Fail Appending and removing children to mn-Fail Appending and removing children to mo-Fail Appending and removing children to mover-Fail Appending and removing children to mpadded-Fail Appending and removing children to mphantom+24 Pass+2 Fail+Pass Appending and removing children to a+Pass Appending and removing children to maction+Pass Appending and removing children to menclose+Pass Appending and removing children to merror+Pass Appending and removing children to mfrac+Pass Appending and removing children to mi+Pass Appending and removing children to mmultiscripts+Pass Appending and removing children to mn+Pass Appending and removing children to mo+Pass Appending and removing children to mover+Pass Appending and removing children to mpadded+Pass Appending and removing children to mphantomFail Appending and removing children to mroot-Fail Appending and removing children to mrow-Fail Appending and removing children to ms-Fail Appending and removing children to mspace+Pass Appending and removing children to mrow+Pass Appending and removing children to ms+Pass Appending and removing children to mspaceFail Appending and removing children to msqrt-Fail Appending and removing children to mstyle-Fail Appending and removing children to msub-Fail Appending and removing children to msubsup-Fail Appending and removing children to msup-Fail Appending and removing children to mtable-Fail Appending and removing children to mtext-Fail Appending and removing children to munder-Fail Appending and removing children to munderover-Fail Appending and removing children to semantics\ No newline at end of file+Pass Appending and removing children to mstyle+Pass Appending and removing children to msub+Pass Appending and removing children to msubsup+Pass Appending and removing children to msup+Pass Appending and removing children to mtable+Pass Appending and removing children to mtext+Pass Appending and removing children to munder+Pass Appending and removing children to munderover+Pass Appending and removing children to semantics\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/integration-point-4.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/integration-point-4.txtindex 3d94a837d37..c7c11097a8e 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/integration-point-4.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/integration-point-4.txt@@ -2,6 +2,6 @@ Harness status: OKFound 2 tests-2 Fail-Fail mspace layout in SVG foreignObject-Fail mfrac layout in SVG foreignObject\ No newline at end of file+2 Pass+Pass mspace layout in SVG foreignObject+Pass mfrac layout in SVG foreignObject\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/integration-point-5.txt b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/integration-point-5.txtindex 30d9cb1b7df..bc899004f5d 100644--- a/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/integration-point-5.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/mathml/relations/html5-tree/integration-point-5.txt@@ -2,6 +2,6 @@ Harness status: OKFound 2 tests-2 Fail-Fail mspace layout in sibling of SVG foreignObject[overflow=visible]-Fail mfrac layout in sibling of SVG with foreignObject[overflow=visible]\ No newline at end of file+2 Pass+Pass mspace layout in sibling of SVG foreignObject[overflow=visible]+Pass mfrac layout in sibling of SVG with foreignObject[overflow=visible]\ No newline at end of file