Truly independent web browser
LibWeb: Lay out boxes in the frame of their writing mode
Andreas Kling1b37c542f534
diff --git a/Libraries/LibWeb/Rust/src/css/style/publication/drive.rs b/Libraries/LibWeb/Rust/src/css/style/publication/drive.rsindex 456dbdb1107..38574edf6db 100644--- a/Libraries/LibWeb/Rust/src/css/style/publication/drive.rs+++ b/Libraries/LibWeb/Rust/src/css/style/publication/drive.rs@@ -599,6 +599,7 @@ impl RetainedState {use crate::css::style_compute::effective_display;let mut parent_display = None;+ let mut parent_writing_mode = crate::css::css_enums::writing_mode::HORIZONTAL_TB;let mut ancestor = parent;while let Some(current) = ancestor&& let Some(record) = self.computed_group_sets.assigned_style_record(current)@@ -608,6 +609,7 @@ impl RetainedState {let display = effective_display(table, view.animated_overlay);if !display.is_contents() {parent_display = Some(display);+ parent_writing_mode = crate::css::style_compute::effective_writing_mode(table, view.animated_overlay);break;}ancestor = self.tree.inheritance_parent(current);@@ -617,6 +619,7 @@ impl RetainedState {target,parent_display.is_some(),parent_display.unwrap_or_else(crate::css::display::FfiDisplay::block),+ parent_writing_mode,)}diff --git a/Libraries/LibWeb/Rust/src/css/style_compute.rs b/Libraries/LibWeb/Rust/src/css/style_compute.rsindex 5002a28711a..2a1a53ec939 100644--- a/Libraries/LibWeb/Rust/src/css/style_compute.rs+++ b/Libraries/LibWeb/Rust/src/css/style_compute.rs@@ -4667,6 +4667,7 @@ pub(crate) unsafe fn drive_property_computation(let mut box_type_input = *box_type_input;box_type_input.display = display_before;box_type_input.float_value = computed_float.expect("float must be computed by the longhand driver");+ box_type_input.writing_mode = computed_writing_mode_and_direction(longhand_table).0;box_type_input.position = computed_position.expect("position must be computed by the longhand driver");box_type_input.webkit_box_layout_transformation_applies =webkit_box_layout_transformation_applies(longhand_table, None);@@ -5579,6 +5580,11 @@ fn keyword_from_style_value(value: &StyleValueData) -> u16 {*keyword}+pub(crate) fn effective_writing_mode(table: &ComputedLonghandTable, overlay: Option<&AnimatedOverlay>) -> u8 {+ keyword_to_writing_mode(effective_keyword(table, overlay, property_id::WRITING_MODE))+ .unwrap_or(crate::css::css_enums::writing_mode::HORIZONTAL_TB)+}+pub(crate) fn effective_display(table: &ComputedLonghandTable, overlay: Option<&AnimatedOverlay>) -> FfiDisplay {let StyleValueData::Display { raw } = effective_longhand_data(table, overlay, property_id::DISPLAY) else {unreachable!("display must have a display value")@@ -5611,6 +5617,9 @@ pub unsafe extern "C" fn rust_create_document_longhand_table(is_mathml_mtr: false,is_mathml_mtd: false,has_parent_display: false,+ writing_mode: crate::css::css_enums::writing_mode::HORIZONTAL_TB,+ parent_writing_mode: crate::css::css_enums::writing_mode::HORIZONTAL_TB,+ is_svg_element: false,parent_display: FfiDisplay::block(),is_wbr_element: false,disallow_display_contents: false,@@ -7138,6 +7147,11 @@ pub struct FfiBoxTypeTransformationInput {pub is_mathml_mtd: bool,pub has_parent_display: bool,pub parent_display: FfiDisplay,+ /// The computed writing-mode of the element and of the box it would be the child of.+ pub writing_mode: u8,+ pub parent_writing_mode: u8,+ /// Whether the element is an SVG element, whose boxes are not laid out by the CSS display types.+ pub is_svg_element: bool,pub is_wbr_element: bool,pub disallow_display_contents: bool,pub rewrite_inline_flow: bool,@@ -7166,6 +7180,7 @@ pub(crate) fn rust_box_type_transformation_input(target: FfiStyleAdjustmentTarget,has_parent_display: bool,parent_display: FfiDisplay,+ parent_writing_mode: u8,) -> FfiBoxTypeTransformationInput {use crate::css::style::bridge::element_adjustment_fact as fact;@@ -7183,6 +7198,9 @@ pub(crate) fn rust_box_type_transformation_input(is_mathml_mtd: has(fact::IS_MATHML_MTD),has_parent_display,parent_display,+ writing_mode: crate::css::css_enums::writing_mode::HORIZONTAL_TB,+ parent_writing_mode,+ is_svg_element: has(fact::IS_SVG_ELEMENT),is_wbr_element: adjust_element && has(fact::IS_WBR),disallow_display_contents: adjust_element && has(fact::DISALLOW_DISPLAY_CONTENTS),rewrite_inline_flow: adjust_element && has(fact::REWRITE_INLINE_FLOW),@@ -7212,7 +7230,13 @@ pub extern "C" fn rust_animated_box_type_transformation_input(Some(node) => crate::css::style::engine_calls::with_engine(read, host, |engine| {engine.composition_box_type_transformation_input(node, pseudo_kind)}),- None => rust_box_type_transformation_input(0, FfiStyleAdjustmentTarget::Element, false, FfiDisplay::block()),+ None => rust_box_type_transformation_input(+ 0,+ FfiStyleAdjustmentTarget::Element,+ false,+ FfiDisplay::block(),+ crate::css::css_enums::writing_mode::HORIZONTAL_TB,+ ),}}@@ -7462,6 +7486,30 @@ fn transform_box_type(input: &FfiBoxTypeTransformationInput) -> FfiBoxTypeTransf}}+ // https://drafts.csswg.org/css-writing-modes-4/#block-flow+ // If a box has a different 'writing-mode' value than its parent box (i.e. nearest ancestor without+ // 'display: contents'):+ if input.has_parent_display+ && input.writing_mode != input.parent_writing_mode+ && !input.is_svg_element+ && new_display.is_outside_and_inside()+ {+ // - If the box would otherwise become an in-flow box with a computed 'display' of 'inline', its 'display'+ // computes instead to 'inline-block'.+ // - If the box is a block container, then it establishes an independent block formatting context.+ // - More generally, if its specified inner display type is 'flow', then its computed inner display type+ // becomes 'flow-root'.+ // NB: Layout makes a block container with another writing mode than its parent box establish an+ // independent formatting context, so only the inline box's display changes here.+ if new_display.is_flow_inside() && new_display.is_inline_outside() {+ new_display = FfiDisplay::outside_and_inside(+ new_display.outside,+ crate::css::css_enums::display_inside::FLOW_ROOT,+ new_display.list_item,+ );+ }+ }+FfiBoxTypeTransformation {set_float_none,changed_display: new_display != display_before_transformation,@@ -7656,6 +7704,7 @@ fn finalize_animated_box_type(};box_type.position = effective_keyword(longhand_table, view, prop::POSITION);box_type.float_value = effective_keyword(longhand_table, view, prop::FLOAT);+ box_type.writing_mode = effective_writing_mode(longhand_table, view);box_type.webkit_box_layout_transformation_applies = webkit_box_layout_transformation_applies(longhand_table, view);// An axis the overlay does not animate is adjusted from its keyword before the base adjusted it against the other// axis, which the overlay may animate out of that adjustment.@@ -8116,6 +8165,9 @@ mod tests {is_mathml_mtr: false,is_mathml_mtd: false,has_parent_display: false,+ writing_mode: crate::css::css_enums::writing_mode::HORIZONTAL_TB,+ parent_writing_mode: crate::css::css_enums::writing_mode::HORIZONTAL_TB,+ is_svg_element: false,parent_display: FfiDisplay::block(),is_wbr_element: false,disallow_display_contents: false,diff --git a/Libraries/LibWeb/Rust/src/layout/abspos_engine.rs b/Libraries/LibWeb/Rust/src/layout/abspos_engine.rsindex 45dae0595b7..61ea0728b09 100644--- a/Libraries/LibWeb/Rust/src/layout/abspos_engine.rs+++ b/Libraries/LibWeb/Rust/src/layout/abspos_engine.rs@@ -556,6 +556,25 @@ impl AbsposEngine<'_> {is_from_end: bool,is_horizontal_axis: bool,) -> Option<CssPixels> {+ let frame = self.callbacks.frame;+ // NB: The physical sides an anchor() names lie on the sides of the frame the box is laid out in.+ let side = match side {+ AnchorSide::Top | AnchorSide::Right | AnchorSide::Bottom | AnchorSide::Left if !frame.is_physical() => {+ let physical_side = match side {+ AnchorSide::Top => geometry::Side::Top,+ AnchorSide::Right => geometry::Side::Right,+ AnchorSide::Bottom => geometry::Side::Bottom,+ _ => geometry::Side::Left,+ };+ match frame.frame_side(physical_side) {+ geometry::Side::Top => AnchorSide::Top,+ geometry::Side::Right => AnchorSide::Right,+ geometry::Side::Bottom => AnchorSide::Bottom,+ geometry::Side::Left => AnchorSide::Left,+ }+ }+ side => side,+ };let (axis_start, axis_end) = if is_horizontal_axis {(rect.left(), rect.right())} else {@@ -567,7 +586,9 @@ impl AbsposEngine<'_> {// or the positioned box's containing block (for start and end).let start_and_end_sides = |writing_mode_box: Node| {let style = self.style(writing_mode_box);- if geometry::start_is_left_or_top(style.writing_mode(), style.direction(), is_horizontal_axis) {+ // NB: The start side may run either way along the axis of the frame the box is laid out in.+ if geometry::start_is_low_side_in_frame(frame, style.writing_mode(), style.direction(), is_horizontal_axis)+ {(axis_start, axis_end)} else {(axis_end, axis_start)@@ -620,15 +641,20 @@ impl AbsposEngine<'_> {|writing_mode_box: Node| self.style(writing_mode_box).writing_mode() == writing_mode::HORIZONTAL_TB;// If the <anchor-size> keyword is omitted, it defaults to behaving as whatever keyword matches the axis of// the property that anchor-size() is used in.+ let measures_physical_width = |anchor_size: u8| match anchor_size {+ anchor_size::WIDTH => true,+ anchor_size::HEIGHT => false,+ anchor_size::INLINE => inline_axis_is_horizontal(containing_block),+ anchor_size::BLOCK => !inline_axis_is_horizontal(containing_block),+ anchor_size::SELF_INLINE => inline_axis_is_horizontal(positioned_box),+ anchor_size::SELF_BLOCK => !inline_axis_is_horizontal(positioned_box),+ _ => unreachable!("anchor-size() holds an unknown <anchor-size> keyword"),+ };+ // NB: The rect and the axis of the property lie in the frame the box is laid out in, whose horizontal axis is+ // the physical vertical axis in a vertical writing mode.let measures_width = match anchor_size {None => is_horizontal_axis,- Some(anchor_size::WIDTH) => true,- Some(anchor_size::HEIGHT) => false,- Some(anchor_size::INLINE) => inline_axis_is_horizontal(containing_block),- Some(anchor_size::BLOCK) => !inline_axis_is_horizontal(containing_block),- Some(anchor_size::SELF_INLINE) => inline_axis_is_horizontal(positioned_box),- Some(anchor_size::SELF_BLOCK) => !inline_axis_is_horizontal(positioned_box),- Some(_) => unreachable!("anchor-size() holds an unknown <anchor-size> keyword"),+ Some(anchor_size) => measures_physical_width(anchor_size) != self.callbacks.frame.is_transposed(),};if measures_width { rect.width } else { rect.height }}@@ -715,11 +741,24 @@ impl AbsposEngine<'_> {},None => default_scroll_shift,};+ // NB: Scrolling is physical, while the axes the shift was resolved in are those of the frame.+ let (compensates_for_horizontal_scroll, compensates_for_vertical_scroll) =+ if self.callbacks.frame.is_transposed() {+ (+ default_scroll_shift.compensates_for_vertical_scroll,+ default_scroll_shift.compensates_for_horizontal_scroll,+ )+ } else {+ (+ default_scroll_shift.compensates_for_horizontal_scroll,+ default_scroll_shift.compensates_for_vertical_scroll,+ )+ };self.callbacks.arena().set_default_scroll_shift(node,default_scroll_shift.default_anchor_box,- default_scroll_shift.compensates_for_horizontal_scroll,- default_scroll_shift.compensates_for_vertical_scroll,+ compensates_for_horizontal_scroll,+ compensates_for_vertical_scroll,);resolved}@@ -833,8 +872,9 @@ impl AbsposEngine<'_> {containing_block_geometry: &ContainingBlockGeometry,entry_coordinate_space_box: Node,) -> style_values::ResolvedAnchorSizes {- // NB: Read the computed values themselves, not what an earlier resolution made of them.- let style = *StyleValues::for_node(&self.callbacks, node);+ // NB: Read the computed values themselves, not what an earlier resolution made of them, in the frame the box+ // is laid out in.+ let style = StyleValues::for_node(&self.callbacks, node);// NB: Each resolution also tells whether any of its anchor functions resolved against an anchor box.let resolve = |calculated: *const c_void, is_horizontal: bool, containing_block_extent: CssPixels| {let mut resolution_state = AnchorResolutionState::NO_SCROLL_SHIFT;@@ -871,12 +911,12 @@ impl AbsposEngine<'_> {}};let mut resolved = style_values::ResolvedAnchorSizes {- width: resolve_size(style.width(), true, ComputedSizeKind::Auto),- min_width: resolve_size(style.min_width(), true, ComputedSizeKind::Auto),- max_width: resolve_size(style.max_width(), true, ComputedSizeKind::None),- height: resolve_size(style.height(), false, ComputedSizeKind::Auto),- min_height: resolve_size(style.min_height(), false, ComputedSizeKind::Auto),- max_height: resolve_size(style.max_height(), false, ComputedSizeKind::None),+ width: resolve_size(style.unresolved_width(), true, ComputedSizeKind::Auto),+ min_width: resolve_size(style.unresolved_min_width(), true, ComputedSizeKind::Auto),+ max_width: resolve_size(style.unresolved_max_width(), true, ComputedSizeKind::None),+ height: resolve_size(style.unresolved_height(), false, ComputedSizeKind::Auto),+ min_height: resolve_size(style.unresolved_min_height(), false, ComputedSizeKind::Auto),+ max_height: resolve_size(style.unresolved_max_height(), false, ComputedSizeKind::None),..Default::default()};let resolve_margin = |margin: &ComputedLengthPercentageOrAuto, is_horizontal: bool| {@@ -891,10 +931,10 @@ impl AbsposEngine<'_> {.unwrap_or_default(),)};- resolved.margin_top = resolve_margin(style.margin_top(), false);- resolved.margin_right = resolve_margin(style.margin_right(), true);- resolved.margin_bottom = resolve_margin(style.margin_bottom(), false);- resolved.margin_left = resolve_margin(style.margin_left(), true);+ resolved.margin_top = resolve_margin(style.unresolved_margin_top(), false);+ resolved.margin_right = resolve_margin(style.unresolved_margin_right(), true);+ resolved.margin_bottom = resolve_margin(style.unresolved_margin_bottom(), false);+ resolved.margin_left = resolve_margin(style.unresolved_margin_left(), true);resolved}@@ -940,6 +980,7 @@ impl AbsposEngine<'_> {.anchor_resolved_values.set(Box::new(style_values::AnchorResolvedValues::new(&inputs.resolved_anchor_sizes,+ self.callbacks.frame,)));}}@@ -1079,7 +1120,8 @@ impl AbsposEngine<'_> {writing_mode: style.writing_mode(),direction: style.direction(),},- )?;+ )?+ .in_frame(self.callbacks.frame);let anchor_box = self.anchor_lookup(positioned_box, style.position_anchor_name())?;let anchor_rect = self.anchor_rect(@@ -1228,6 +1270,40 @@ struct PositionAreaTracks {vertical: PositionAreaTrackRange,}+impl PositionAreaTrackRange {+ fn reversed(self) -> Self {+ Self {+ first: 2 - self.last,+ last: 2 - self.first,+ }+ }+}++impl PositionAreaTracks {+ /// The tracks along the axes of `frame`, counted from its left or top, rather than along the physical axes.+ fn in_frame(self, frame: geometry::Frame) -> Self {+ if frame.is_physical() {+ return self;+ }+ let along_frame_axis = |frame_side: geometry::Side| {+ let physical_low_side = frame.physical_side(frame_side);+ let range = match physical_low_side {+ geometry::Side::Left | geometry::Side::Right => self.horizontal,+ geometry::Side::Top | geometry::Side::Bottom => self.vertical,+ };+ if matches!(physical_low_side, geometry::Side::Right | geometry::Side::Bottom) {+ range.reversed()+ } else {+ range+ }+ };+ Self {+ horizontal: along_frame_axis(geometry::Side::Left),+ vertical: along_frame_axis(geometry::Side::Top),+ }+ }+}+#[derive(Clone, Copy)]struct PositionAreaWritingMode {writing_mode: u8,@@ -1767,9 +1843,33 @@ impl AbsposEngine<'_> {constraints.percentage_basis_block_size,),};+ // https://drafts.csswg.org/css-position-3/#resolving-inset-auto+ // If both inset properties in a given axis are auto, then, depending on the box’s self-alignment property in+ // the relevant axis:+ // - for self-start alignment or its equivalent: Set its start-edge inset property to the static position, and+ // its end-edge inset property to zero.+ // - for self-end alignment or its equivalent: Set its end-edge inset property to the static position, and its+ // start-edge inset property to zero.+ // NB: The static position rect's alignment is that of the static position it stands for.+ // FIXME: Implement the center alignment case.+ let (static_alignment, static_start, static_size) = match axis {+ SizingAxis::Inline => (+ static_position_rect.inline_alignment,+ static_position_rect.rect.offset.inline_offset,+ static_position_rect.rect.size.inline_size,+ ),+ SizingAxis::Block => (+ static_position_rect.block_alignment,+ static_position_rect.rect.offset.block_offset,+ static_position_rect.rect.size.block_size,+ ),+ };+ let static_end_distance = containing_block_size - static_start - static_size;+ let static_position_is_at_end = static_alignment == StaticPositionAlignment::End;+ let both_auto = start.is_auto() && end.is_auto();let start_offset = if !start.is_auto() {start.to_px(containing_block_size)- } else if end.is_auto() {+ } else if both_auto && !static_position_is_at_end {let static_offset = self.static_offset(node, static_position_rect);match axis {SizingAxis::Inline => static_offset.inline_offset,@@ -1778,10 +1878,12 @@ impl AbsposEngine<'_> {} else {CssPixels::default()};- let end_offset = if end.is_auto() {- CssPixels::default()- } else {+ let end_offset = if !end.is_auto() {end.to_px(containing_block_size)+ } else if both_auto && static_position_is_at_end {+ static_end_distance+ } else {+ CssPixels::default()};let stretch_fit_size = sizing.stretch_fit_inner_size(node,@@ -2198,7 +2300,31 @@ impl AbsposEngine<'_> {available_space: AvailableSpace,constraints: ContainingBlockConstraints,pass: BlockSizePass,+ stretch_fit_block_size: CssPixels,) -> AutoPx {+ let sizing = self.sizing();+ if sizing.establishes_orthogonal_flow(node) {+ // https://drafts.csswg.org/css-writing-modes-4/#orthogonal-flows+ // In the sizing phase [...] the dimensions of the box and the containing block are mapped to the inline+ // size and block size and calculations are performed accordingly using the writing mode of the box+ // establishing the orthogonal flow.+ // NB: That makes the automatic block size the shrink-to-fit size of the box's own inline axis, within the+ // inset-modified containing block, as it is in the inline axis of a box in the frame's writing mode.+ if let BlockSizePass::AfterInsideLayout { .. } = pass {+ return Some(self.used(node).content_block_size.get());+ }+ let inline_size = self.used(node).content_inline_size.get();+ let preferred = sizing.calculate_max_content_block_size(node, inline_size, constraints);+ let size = if preferred <= stretch_fit_block_size {+ preferred+ } else {+ sizing+ .calculate_min_content_block_size(node, inline_size, constraints)+ .max(stretch_fit_block_size)+ .min(preferred)+ };+ return Some(size);+ }if self.facts(node).creates_block_formatting_context() {let BlockSizePass::AfterInsideLayout {automatic_content_block_size_of_inside_layout,@@ -2211,10 +2337,7 @@ impl AbsposEngine<'_> {let inner = self.used(node).available_inner_space_or_constraints_from(available_space);- Some(- self.sizing()- .calculate_fit_content_size(node, SizingAxis::Block, inner, constraints),- )+ Some(sizing.calculate_fit_content_size(node, SizingAxis::Block, inner, constraints))}#[expect(clippy::too_many_arguments)]@@ -2263,7 +2386,13 @@ impl AbsposEngine<'_> {if solution.top.is_none() && solution.block_size.is_none() && solution.bottom.is_none() {solution.zero_out_auto_margins();- let Some(automatic) = self.automatic_block_size(node, available_space, constraints, pass) else {+ let Some(automatic) = self.automatic_block_size(+ node,+ available_space,+ constraints,+ pass,+ solve_for(solution.block_size, true, solution),+ ) else {return solution;};solution.block_size = Some(automatic);@@ -2295,7 +2424,13 @@ impl AbsposEngine<'_> {solution.zero_out_auto_margins();if solution.top.is_none() && solution.block_size.is_none() && solution.bottom.is_some() {- let Some(automatic) = self.automatic_block_size(node, available_space, constraints, pass) else {+ let Some(automatic) = self.automatic_block_size(+ node,+ available_space,+ constraints,+ pass,+ solve_for(solution.block_size, true, solution),+ ) else {return solution;};solution.block_size = Some(automatic);@@ -2304,7 +2439,13 @@ impl AbsposEngine<'_> {solution.top = Some(self.static_offset(node, static_position_rect).block_offset);solution.bottom = Some(solve_for(solution.bottom, false, solution));} else if solution.block_size.is_none() && solution.bottom.is_none() && solution.top.is_some() {- let Some(automatic) = self.automatic_block_size(node, available_space, constraints, pass) else {+ let Some(automatic) = self.automatic_block_size(+ node,+ available_space,+ constraints,+ pass,+ solve_for(solution.block_size, true, solution),+ ) else {return solution;};solution.block_size = Some(automatic);@@ -2445,6 +2586,11 @@ impl AbsposEngine<'_> {let used = self.used(node);used.set_content_block_size(auto_px_value(solution.block_size));if style.height().is_auto() && pass == BlockSizePass::BeforeInsideLayout {+ // NB: A box that establishes an orthogonal flow is sized in this axis before its contents are laid out,+ // which they are at that size.+ if solution.block_size.is_some() && self.sizing().establishes_orthogonal_flow(node) {+ used.has_definite_block_size.set(true);+ }return;}if !style.height().is_intrinsic_sizing_constraint() {@@ -3134,10 +3280,7 @@ pub(crate) fn drain_abspos_with_placed_containing_blocks(if batch.is_empty() {break;}- let engine = AbsposEngine::for_run(&run);- for entry in batch {- engine.layout_pending_child(&run, entry);- }+ formatting_context::lay_out_pending_abspos_children(&run, batch);}}diff --git a/Libraries/LibWeb/Rust/src/layout/abspos_inputs.rs b/Libraries/LibWeb/Rust/src/layout/abspos_inputs.rsindex f5af52b4229..e4db839511e 100644--- a/Libraries/LibWeb/Rust/src/layout/abspos_inputs.rs+++ b/Libraries/LibWeb/Rust/src/layout/abspos_inputs.rs@@ -24,6 +24,75 @@ pub(crate) struct StaticPositionRect {pub(crate) is_known: bool,}+impl StaticPositionAlignment {+ fn reversed(self) -> Self {+ match self {+ Self::Start => Self::End,+ Self::Center => Self::Center,+ Self::End => Self::Start,+ }+ }+}++impl StaticPositionRect {+ /// The rect, laid out in frame `from` within a box whose physical size is `container_size`, as frame `to` sees+ /// it.+ pub(crate) fn in_frame(+ mut self,+ from: geometry::Frame,+ to: geometry::Frame,+ container_size: crate::css::css_pixels::FfiCssPixelSize,+ ) -> Self {+ if from == to {+ return self;+ }+ let rect = crate::css::css_pixels::CssPixelRect {+ x: self.rect.offset.inline_offset,+ y: self.rect.offset.block_offset,+ width: self.rect.size.inline_size,+ height: self.rect.size.block_size,+ };+ let rect = from.rect_in(rect, to, container_size);+ self.rect = geometry::LogicalRect {+ offset: geometry::LogicalOffset {+ inline_offset: rect.x,+ block_offset: rect.y,+ },+ size: geometry::LogicalSize {+ inline_size: rect.width,+ block_size: rect.height,+ },+ };+ // NB: An alignment is towards the left or top of an axis of the frame, which may run along the other+ // physical axis, or the other way along it, in another frame.+ let along_physical_axis = |frame: geometry::Frame, alignment: StaticPositionAlignment, horizontal: bool| {+ let reversed = if horizontal {+ frame.horizontal_axis_is_reversed()+ } else {+ frame.vertical_axis_is_reversed()+ };+ if reversed { alignment.reversed() } else { alignment }+ };+ let (physical_horizontal, physical_vertical) = {+ let horizontal = along_physical_axis(from, self.inline_alignment, true);+ let vertical = along_physical_axis(from, self.block_alignment, false);+ if from.is_transposed() {+ (vertical, horizontal)+ } else {+ (horizontal, vertical)+ }+ };+ let (frame_horizontal, frame_vertical) = if to.is_transposed() {+ (physical_vertical, physical_horizontal)+ } else {+ (physical_horizontal, physical_vertical)+ };+ self.inline_alignment = along_physical_axis(to, frame_horizontal, true);+ self.block_alignment = along_physical_axis(to, frame_vertical, false);+ self+ }+}+#[derive(Clone, Copy, Debug, PartialEq, Eq)]pub(crate) enum AbsposAxisMode {StaticPosition,diff --git a/Libraries/LibWeb/Rust/src/layout/block_formatting_context.rs b/Libraries/LibWeb/Rust/src/layout/block_formatting_context.rsindex e06d8f8dd89..2ecb79fccf0 100644--- a/Libraries/LibWeb/Rust/src/layout/block_formatting_context.rs+++ b/Libraries/LibWeb/Rust/src/layout/block_formatting_context.rs@@ -363,9 +363,7 @@ impl<'pass> BlockFormattingContext<'pass> {clamped_content_is_scrollable_overflow,// NB: Measurements at a definite inline size need the clamped block size, just like committed layout.max_lines: Cell::new(- ((!run.purpose.is_measurement()- || run.records.used_values(run.box_).has_definite_inline_size()- || style.writing_mode() != writing_mode::HORIZONTAL_TB)+ ((!run.purpose.is_measurement() || run.records.used_values(run.box_).has_definite_inline_size())&& is_line_clamp_container&& style.max_lines() > 0).then_some(style.max_lines() as usize),@@ -843,6 +841,11 @@ impl<'pass> BlockFormattingContext<'pass> {let containing_block_direction = self.style(self.containing_block(node)).direction();let computed_margin_left = style.margin_left();let computed_margin_right = style.margin_right();+ // NB: A box that establishes an orthogonal flow and has an automatic inline size is sized to its content, not+ // over-constrained: its margins keep their values, unless the line-right margin has to place it at the+ // inline start of a right-to-left containing block.+ let is_content_sized_orthogonal_flow =+ sizing.establishes_orthogonal_flow(node) && sizing.should_treat_inline_size_as_auto(node, available_space);let compute = |input: Option<CssPixels>,margin_left: &mut CssPixels,margin_right: &mut CssPixels,@@ -904,7 +907,7 @@ impl<'pass> BlockFormattingContext<'pass> {} else if !*margin_left_is_auto && !*margin_right_is_auto {if containing_block_direction == direction::RTL {*margin_left += underflow;- } else {+ } else if !is_content_sized_orthogonal_flow {*margin_right += underflow;}} else if !*margin_left_is_auto && *margin_right_is_auto {@@ -944,6 +947,11 @@ impl<'pass> BlockFormattingContext<'pass> {// https://html.spec.whatwg.org/multipage/rendering.html#button-layout// If the computed value of 'inline-size' is 'auto', then the used value is the fit-content inline size.Some(sizing.calculate_fit_content_size(node, SizingAxis::Inline, available_space, constraints))+ } else if is_content_sized_orthogonal_flow {+ // https://drafts.csswg.org/css-writing-modes-4/#orthogonal-shrink-to-fit+ // Note that this section requires that when a child box auto-sized in its block axis establishes an+ // orthogonal flow, the used block size of the child is calculated to fit its content+ Some(sizing.calculate_fit_content_size(node, SizingAxis::Inline, remaining_available_space, constraints))} else if sizing.should_treat_inline_size_as_auto(node, available_space) {None} else {@@ -4787,32 +4795,6 @@ impl<'pass> BlockFormattingContext<'pass> {}pub(crate) fn automatic_content_inline_size(&self) -> CssPixels {- if self.style(self.run.box_).writing_mode() != writing_mode::HORIZONTAL_TB && self.line_clamp_reached() {- let used = self.used(self.run.box_);- if let Some(line) = used- .line_data_ref()- .as_ref()- .and_then(|data| data.building().line_boxes.last())- {- // https://drafts.csswg.org/css-overflow-4/#block-ellipsis- // The block overflow ellipsis is wrapped in an anonymous inline whose parent is the block- // container's root inline box. This inline is assigned line-height: 0.- let line_block_size = line- .visible_fragments()- .filter(|fragment| !fragment.is_block_ellipsis)- .map(|fragment| {- if fragment.is_atomic_inline {- self.used(fragment.layout_node).margin_box_block_size(false)- } else {- fragment.block_length- }- })- .max()- .unwrap_or_default()- .max(self.style(self.run.box_).line_height());- return line.block_start + line_block_size;- }- }let root_facts = self.facts(self.run.box_);if root_facts.children_are_inline() {let content_inline_size = self.used(self.run.box_).content_inline_size.get();diff --git a/Libraries/LibWeb/Rust/src/layout/flex_formatting_context.rs b/Libraries/LibWeb/Rust/src/layout/flex_formatting_context.rsindex ec9f5693950..a0ed80aae21 100644--- a/Libraries/LibWeb/Rust/src/layout/flex_formatting_context.rs+++ b/Libraries/LibWeb/Rust/src/layout/flex_formatting_context.rs@@ -250,8 +250,9 @@ impl<'pass> FlexFormattingContext<'pass> {}// https://www.w3.org/TR/css-flexbox-1/#flex-direction-property+ /// Whether the inline axis of `node` runs along the horizontal axis of the frame the container lays out in.fn inline_axis_is_horizontal(&self, node: Node) -> bool {- self.style(node).writing_mode() == writing_mode::HORIZONTAL_TB+ !geometry::Frame::of(self.style(node).writing_mode()).is_orthogonal_to(self.run.callbacks.frame)}fn is_row_layout(&self) -> bool {@@ -2754,26 +2755,16 @@ impl<'pass> FlexFormattingContext<'pass> {};let main_size = self.inner_main_size_used(self.container_used());let cross_size = self.inner_cross_size_used(self.container_used());- let (logical_inline_size, logical_block_size) = if self.is_row_layout() {+ let (inline_size, block_size) = if self.is_row_layout() {(main_size, cross_size)} else {(cross_size, main_size)};- let (inline_size, block_size) = geometry::to_physical(- self.style(self.run.box_).writing_mode(),- logical_inline_size,- logical_block_size,- );- let (logical_inline_alignment, logical_block_alignment) = if self.is_row_layout() {+ let (inline_alignment, block_alignment) = if self.is_row_layout() {(main_alignment, cross_alignment)} else {(cross_alignment, main_alignment)};- let (inline_alignment, block_alignment) = geometry::to_physical(- self.style(self.run.box_).writing_mode(),- logical_inline_alignment,- logical_block_alignment,- );abspos_inputs::StaticPositionRect {rect: geometry::LogicalRect {offset: Default::default(),@@ -2807,15 +2798,11 @@ impl<'pass> FlexFormattingContext<'pass> {let item = &self.flex_items[index];let main_size = item.main_size.unwrap_or(item.target_main_size);let cross_size = item.cross_size.unwrap_or(item.hypothetical_cross_size);- let (logical_inline_offset, logical_block_offset, logical_inline_size, logical_block_size) =- if self.is_row_layout() {- (item.main_offset, item.cross_offset, main_size, cross_size)- } else {- (item.cross_offset, item.main_offset, cross_size, main_size)- };- let writing_mode = self.style(self.run.box_).writing_mode();- let (x, y) = geometry::to_physical(writing_mode, logical_inline_offset, logical_block_offset);- let (width, height) = geometry::to_physical(writing_mode, logical_inline_size, logical_block_size);+ let (x, y, width, height) = if self.is_row_layout() {+ (item.main_offset, item.cross_offset, main_size, cross_size)+ } else {+ (item.cross_offset, item.main_offset, cross_size, main_size)+ };let rect = CssPixelRect { x, y, width, height };let node = item.box_;let style = self.style(node);diff --git a/Libraries/LibWeb/Rust/src/layout/formatting_context.rs b/Libraries/LibWeb/Rust/src/layout/formatting_context.rsindex 906a68471c4..a19b0cc11eb 100644--- a/Libraries/LibWeb/Rust/src/layout/formatting_context.rs+++ b/Libraries/LibWeb/Rust/src/layout/formatting_context.rs@@ -226,6 +226,7 @@ pub(super) fn cache_key(percentage_basis_inline_size: constraints.percentage_basis_inline_size,percentage_basis_block_size: constraints.percentage_basis_block_size,quirks_mode_percentage_basis_block_size: constraints.quirks_mode_percentage_basis_block_size,+ measured_in_transposed_frame: false,}}@@ -355,6 +356,48 @@ pub(crate) enum BaselineSet {Last,}+/// Lays out absolutely positioned boxes whose containing blocks are placed, each in the frame of its containing+/// block's writing mode.+pub(crate) fn lay_out_pending_abspos_children(+ run: &FormattingContextRun,+ batch: Vec<abspos_inputs::PendingAbsposChild>,+) {+ let engine = abspos_engine::AbsposEngine::for_run(run);+ for entry in batch {+ let containing_block = entry.containing_block();+ if frame_established_by(&run.callbacks, containing_block) == run.callbacks.frame {+ engine.layout_pending_child(run, entry);+ continue;+ }+ in_frame_established_by(run, containing_block, |run| {+ abspos_engine::AbsposEngine::for_run(run).layout_pending_child(run, entry);+ });+ }+}++/// Runs `body` with a run in the frame `node` establishes, with the record of `node` moved into that frame.+pub(crate) fn in_frame_established_by<R>(+ run: &FormattingContextRun,+ node: Node,+ body: impl FnOnce(&FormattingContextRun) -> R,+) -> R {+ let parent_frame = run.callbacks.frame;+ let own_frame = frame_established_by(&run.callbacks, node);+ if own_frame == parent_frame {+ return body(run);+ }+ let used = run.records.used_values_if_owned(node);+ if let Some(used) = used {+ used.move_box_metrics_to_frame(parent_frame, own_frame);+ }+ let framed_run = run.in_frame_of(own_frame);+ let result = body(&framed_run);+ if let Some(used) = used {+ used.move_box_metrics_to_frame(own_frame, parent_frame);+ }+ result+}+pub(crate) fn place_child(run: &FormattingContextRun,node: Node,@@ -390,6 +433,7 @@ pub(crate) fn place_child_in_containing_block(offset,committed_offset_delta_at_placement(run.purpose, records, callbacks, node, containing_block, used),),+ callbacks.frame,);return Some(fragment_tree::PlacedFragment {fragment,@@ -402,10 +446,7 @@ pub(crate) fn place_child_in_containing_block(if batch.is_empty() {break;}- let engine = abspos_engine::AbsposEngine::for_run(run);- for entry in batch {- engine.layout_pending_child(run, entry);- }+ lay_out_pending_abspos_children(run, batch);}let node_facts = NodeFacts::new(callbacks, node);let own_anchor_candidate_border_box_rect = (node_facts.is_box() && node_facts.has_anchor_names()).then(|| {@@ -461,6 +502,7 @@ pub(crate) fn place_reused_child(offset,committed_offset_delta_at_placement(run.purpose, records, callbacks, node, containing_block, used),),+ callbacks.frame,);}@@ -1108,6 +1150,23 @@ pub(crate) struct FormattingContextRun<'pass> {}impl<'pass> FormattingContextRun<'pass> {+ /// This run, laying out in `frame`.+ pub(crate) fn in_frame_of(&self, frame: geometry::Frame) -> Self {+ Self {+ purpose: self.purpose,+ records: self.records,+ box_: self.box_,+ layout_mode: self.layout_mode,+ callbacks: self.callbacks.in_frame_of(frame.writing_mode()),+ should_collect_devtools_layout_data: self.should_collect_devtools_layout_data,+ treat_block_axis_percentage_insets_as_auto_beyond_root: self+ .treat_block_axis_percentage_insets_as_auto_beyond_root,+ fragments: self.fragments.clone(),+ previous_line_data: self.previous_line_data.clone(),+ fragmentainer: self.fragmentainer.clone(),+ }+ }+pub(crate) fn sizing(&self) -> sizing_context::SizingContext<'pass> {sizing_context::SizingContext::new(self.purpose, self.records, self.callbacks)}@@ -1150,6 +1209,7 @@ pub(crate) fn formatting_context_type_created_by_node_data(data: &NodeData,style: Option<ComputedValuesView<'_>>,parent_is_flex_or_grid_container: bool,+ parent_writing_mode: impl FnOnce() -> Option<u8>,) -> Option<FormattingContextType> {if data.kind.get() == crate::layout::node_data::NodeKind::SVGSVGBox {return Some(FormattingContextType::Svg);@@ -1205,7 +1265,12 @@ pub(crate) fn formatting_context_type_created_by_node_data(}return Some(FormattingContextType::Math);}- if node_facts::node_creates_block_formatting_context(data, style, parent_is_flex_or_grid_container) {+ if node_facts::node_creates_block_formatting_context(+ data,+ style,+ parent_is_flex_or_grid_container,+ parent_writing_mode,+ ) {return Some(FormattingContextType::Block);}if node_facts::has_flag(data, NodeFlag::ChildrenAreInline)@@ -1231,6 +1296,7 @@ pub(crate) fn formatting_context_type_created_by_box(facts: NodeFacts<'_>) -> Opfacts.data(),facts.computed_values_view_if_styled(),facts.parent_is_flex_or_grid_container(),+ || facts.parent_writing_mode(),);if fc_type == Some(FormattingContextType::Math) && !facts.uses_math_layout() {return Some(FormattingContextType::Block);@@ -1710,8 +1776,11 @@ pub(super) fn run_formatting_context() -> ChildLayoutResult {// Independent children supply block sizes and baselines to their parent, so only paragraphs// in the width query's own block flow may skip their line geometry.+ // NB: A box that establishes an orthogonal flow contributes its block size to the inline size its parent+ // measures, which takes its line geometry.let purpose = if purpose == LayoutPurpose::IntrinsicInlineMeasurement- && input.participation != ParticipationInParentFormattingContext::Root+ && (input.participation != ParticipationInParentFormattingContext::Root+ || frame_established_by(&callbacks, box_).is_orthogonal_to(callbacks.frame)){LayoutPurpose::Measurement} else {@@ -1897,6 +1966,18 @@ fn execute_formatting_context_run(fragmentainer,};let run = &run;+ // NB: The root's own box is sized and placed in the frame of its parent's formatting context, while+ // its contents are laid out in the frame of the writing mode the root establishes.+ let parent_frame = callbacks.frame;+ let own_frame = frame_established_by(&callbacks, box_);+ let changes_frame = own_frame != parent_frame;+ let body_run_in_own_frame;+ let body_run = if changes_frame {+ body_run_in_own_frame = run.in_frame_of(own_frame);+ &body_run_in_own_frame+ } else {+ run+ };if let Some(table_inline_layout) = table_inline_layout {run.records.store_table_inline_layout(table_inline_layout.table_box(), table_inline_layout);@@ -1906,10 +1987,17 @@ fn execute_formatting_context_run(atomic_root_sizing_repeats_for_available_inline_sizes_at_or_above,} = apply_root_sizing_directives(run, &input, fc_type);- let cached_atomic_block_size = if matches!(- input.participation,- ParticipationInParentFormattingContext::AtomicInline- ) {+ let body_input = if changes_frame {+ enter_own_frame(run, body_run, &input, body_input, parent_frame, own_frame)+ } else {+ body_input+ };++ let cached_atomic_block_size = if !changes_frame+ && matches!(+ input.participation,+ ParticipationInParentFormattingContext::AtomicInline+ ) {run.sizing().apply_cached_intrinsic_inline_measurement(run.box_,input.available_space.inline_size,@@ -1926,7 +2014,8 @@ fn execute_formatting_context_run(baselines: cached_baselines,..ChildLayoutResult::default()}- } else if layout_mode == LayoutMode::Normal+ } else if !changes_frame+ && layout_mode == LayoutMode::Normal&& !purpose.is_measurement()&& matches!(input.participation,@@ -1939,10 +2028,11 @@ fn execute_formatting_context_run(// run through the shared paths around this branch.ChildLayoutResult::default()} else {- let mut context_implementation = create_formatting_context_implementation(run, parent_grid, fc_type);+ let mut context_implementation =+ create_formatting_context_implementation(body_run, parent_grid, fc_type);let result = match &mut context_implementation {FormattingContextImplementation::Block(context) => {- context.run(run, body_input);+ context.run(body_run, body_input);let baselines = context.derived_baselines_of_root_box();store_derived_baselines(run.records.used_values(run.box_), baselines);ChildLayoutResult {@@ -1958,7 +2048,7 @@ fn execute_formatting_context_run(}}FormattingContextImplementation::Flex(context) => {- context.run(run, body_input);+ context.run(body_run, body_input);let baselines = context.derived_baselines_of_root_box();store_derived_baselines(run.records.used_values(run.box_), baselines);ChildLayoutResult {@@ -1969,7 +2059,7 @@ fn execute_formatting_context_run(}}FormattingContextImplementation::Grid(context) => {- context.run(run, body_input);+ context.run(body_run, body_input);let baselines = context.derived_baselines_of_root_box();store_derived_baselines(run.records.used_values(run.box_), baselines);ChildLayoutResult {@@ -1980,7 +2070,7 @@ fn execute_formatting_context_run(}}FormattingContextImplementation::Table(context) => {- context.run(run, body_input, run.records.take_table_inline_layout(run.box_));+ context.run(body_run, body_input, run.records.take_table_inline_layout(run.box_));let baselines = context.derived_baselines_of_root_box();store_derived_baselines(run.records.used_values(run.box_), baselines);ChildLayoutResult {@@ -1991,11 +2081,11 @@ fn execute_formatting_context_run(}}FormattingContextImplementation::Svg(context) => {- context.run(run, body_input);+ context.run(body_run, body_input);ChildLayoutResult::default()}FormattingContextImplementation::Math(context) => {- context.run(run, body_input);+ context.run(body_run, body_input);let baselines = context.derived_baselines_of_root_box();store_derived_baselines(run.records.used_values(run.box_), baselines);ChildLayoutResult {@@ -2006,7 +2096,7 @@ fn execute_formatting_context_run(}}FormattingContextImplementation::ReplacedWithChildren => {- replaced_with_children_formatting_context::layout_replaced_with_children(run, body_input)+ replaced_with_children_formatting_context::layout_replaced_with_children(body_run, body_input)}FormattingContextImplementation::InternalReplaced| FormattingContextImplementation::InternalDummy => ChildLayoutResult::default(),@@ -2014,6 +2104,9 @@ fn execute_formatting_context_run(implementation = Some(context_implementation);result};+ if changes_frame {+ result = leave_own_frame(run, body_run, result, parent_frame, own_frame);+ }// https://drafts.csswg.org/css-sizing-4/#intrinsic-size-override// If an element has an explicit intrinsic inner size in an axis, then after laying out the element as normal for@@ -2120,10 +2213,11 @@ fn execute_formatting_context_run(result.omitted_line_layout = run.records.omitted_line_layout();result.depends_on_percentage_block_size = run.sizing().resolve_percentage_block_size_dependency(run.box_);+ // NB: The root's descendants are laid out in the frame the root establishes.let take_run_fragments = || {run.fragments.as_ref()- .map(|fragments| fragments.take_unplaced_root(run.records, &run.callbacks))+ .map(|fragments| fragments.take_unplaced_root(run.records, &body_run.callbacks))};let registered_abspos_children_could_never_be_laid_out = run.fragments.is_none();@@ -2139,16 +2233,18 @@ fn execute_formatting_context_run(FormattingContextImplementation::Block(_) => {}FormattingContextImplementation::Table(_) => {let box_ = run.box_;- register_table_abspos_descendants(run, box_);+ in_own_frame(run, parent_frame, own_frame, || {+ register_table_abspos_descendants(body_run, box_);+ });}FormattingContextImplementation::Flex(context) => {- context.parent_did_dimension();+ in_own_frame(run, parent_frame, own_frame, || context.parent_did_dimension());}FormattingContextImplementation::Grid(context) => {- context.parent_did_dimension();+ in_own_frame(run, parent_frame, own_frame, || context.parent_did_dimension());}FormattingContextImplementation::Math(context) => {- context.parent_did_dimension();+ in_own_frame(run, parent_frame, own_frame, || context.parent_did_dimension());}FormattingContextImplementation::Svg(_) | FormattingContextImplementation::ReplacedWithChildren => {}@@ -2172,6 +2268,141 @@ fn execute_formatting_context_run()}+/// The frame in which `node` lays out its contents: that of its writing mode.+pub(crate) fn frame_established_by(callbacks: &LayoutPass<'_>, node: Node) -> geometry::Frame {+ callbacks+ .computed_values_view_if_styled(node)+ .map_or(callbacks.frame, |style| geometry::Frame::of(style.writing_mode()))+}++/// Runs `body` with the run root's metrics read in the frame it lays out its contents in.+fn in_own_frame<R>(+ run: &FormattingContextRun,+ parent_frame: geometry::Frame,+ own_frame: geometry::Frame,+ body: impl FnOnce() -> R,+) -> R {+ if parent_frame == own_frame {+ return body();+ }+ let used = run.records.used_values(run.box_);+ used.move_box_metrics_to_frame(parent_frame, own_frame);+ let result = body();+ used.move_box_metrics_to_frame(own_frame, parent_frame);+ result+}++/// Moves the root of a run whose writing mode establishes a frame other than its parent's into its own frame, where+/// its contents are laid out, and returns the input for laying them out there.+fn enter_own_frame(+ run: &FormattingContextRun,+ body_run: &FormattingContextRun,+ input: &LayoutInput,+ body_input: LayoutInput,+ parent_frame: geometry::Frame,+ own_frame: geometry::Frame,+) -> LayoutInput {+ let node = run.box_;+ let used = run.records.used_values(node);+ used.move_box_metrics_to_frame(parent_frame, own_frame);+ if !parent_frame.is_orthogonal_to(own_frame) {+ // NB: Sizes keep their axes between frames that are not orthogonal, so the contents are laid out with the+ // input the root's sizing gave them, apart from the parent's block formatting context they leave.+ return LayoutInput {+ content_box_position_in_bfc_root: None,+ ..body_input+ };+ }+ let mut constraints = input.containing_block_constraints;+ let mut available_space = input.available_space;+ let mut sizing = RootSizingDirectives {+ treat_block_axis_percentage_insets_as_auto_beyond_root: input+ .sizing+ .treat_block_axis_percentage_insets_as_auto_beyond_root,+ forced_content_inline_size: body_input.sizing.forced_content_inline_size,+ forced_content_block_size: body_input.sizing.forced_content_block_size,+ ..RootSizingDirectives::default()+ };+ std::mem::swap(+ &mut constraints.percentage_basis_inline_size,+ &mut constraints.percentage_basis_block_size,+ );+ constraints.quirks_mode_percentage_basis_block_size = None;+ std::mem::swap(&mut available_space.inline_size, &mut available_space.block_size);+ std::mem::swap(+ &mut sizing.forced_content_inline_size,+ &mut sizing.forced_content_block_size,+ );+ // https://drafts.csswg.org/css-writing-modes-4/#orthogonal-flows+ // In the sizing phase [...] the dimensions of the box and the containing block are mapped to the inline+ // size and block size and calculations are performed accordingly using the writing mode of the box+ // establishing the orthogonal flow.+ if used.inline_size_constraint.get() == SizeConstraint::None && !used.has_definite_inline_size.get() {+ // NB: A flex or grid container sizes its items in both axes before laying out their contents, even where it+ // leaves a size indefinite for the percentages of their contents.+ let inline_size = if input.participation == ParticipationInParentFormattingContext::Item+ && NodeFacts::new(&run.callbacks, node).parent_is_flex_or_grid_container()+ {+ used.content_inline_size.get()+ } else {+ body_run+ .sizing()+ .orthogonal_flow_inline_size(node, available_space, constraints)+ };+ used.set_content_inline_size(inline_size);+ }+ let mut body_input = LayoutInput::new(+ used.available_inner_space_or_constraints_from(available_space),+ constraints,+ ParticipationInParentFormattingContext::Root,+ );+ body_input.sizing = sizing;+ body_input+}++/// Moves the root of a run back into its parent's frame once its contents are laid out in its own frame, and maps+/// what the layout found into the parent's frame.+fn leave_own_frame(+ run: &FormattingContextRun,+ body_run: &FormattingContextRun,+ mut result: ChildLayoutResult,+ parent_frame: geometry::Frame,+ own_frame: geometry::Frame,+) -> ChildLayoutResult {+ let used = run.records.used_values(run.box_);+ // NB: The root's lines are laid out along its own inline axis, so finish them while that is what the root+ // record holds.+ used.finish_line_data(&body_run.callbacks);+ if parent_frame.is_orthogonal_to(own_frame) {+ // https://drafts.csswg.org/css-writing-modes-4/#orthogonal-shrink-to-fit+ // Note that this section requires that when a child box auto-sized in its block axis establishes an+ // orthogonal flow, the used block size of the child is calculated to fit its content; and this resulting+ // content-based size is used as input to the inline-axis min-content size and max-content size of the+ // parent.+ // NB: A root measured under an intrinsic inline size constraint has its inline size only in the result.+ let content_inline_size = if used.inline_size_constraint.get() == SizeConstraint::None {+ used.content_inline_size.get()+ } else {+ result.automatic_content_inline_size+ };+ result.automatic_content_inline_size = result.automatic_content_block_size;+ result.min_content_inline_size_from_max_content_layout = None;+ result.automatic_content_block_size = content_inline_size;+ result.baselines = DerivedBaselines::default();+ result.content_block_size_for_aspect_ratio_minimum = None;+ // NB: The block size of a table box in its parent's frame is its inline size in the frame of its wrapper.+ if result.table_box_in_wrapper_border_box_block_size.is_some() {+ let table_used = run+ .records+ .used_values(body_run.sizing().table_box_inside_wrapper(run.box_));+ result.table_box_in_wrapper_border_box_block_size =+ Some(table_used.border_box_inline_size(table_used.uses_collapsing_borders_model.get()));+ }+ }+ used.move_box_metrics_to_frame(own_frame, parent_frame);+ result+}+fn finalize_atomic_root_block_size(run: &FormattingContextRun,input: &LayoutInput,@@ -2843,6 +3074,13 @@ fn compute_subtree_layout_fragments(input: LayoutStageInput<'_>, containing_bloc// the incremental tree build created; derive the facts of the whole subtree.arena.derive_facts_in_subtree(root);+ // NB: Either way, the boundary root's own geometry lies in the frame of its containing block.+ let callbacks = if containing_block.is_invalid() {+ callbacks+ } else {+ callbacks.in_frame_of(frame_established_by(&callbacks, containing_block).writing_mode())+ };+// Abspos boundaries recompute their size and position in their containing block's space.// In-flow SVG boundaries keep their committed geometry and lay out only their contents.let root_is_absolutely_positioned = NodeFacts::new(&callbacks, root).is_absolutely_positioned();diff --git a/Libraries/LibWeb/Rust/src/layout/fragment_tree.rs b/Libraries/LibWeb/Rust/src/layout/fragment_tree.rsindex f37f0bcf432..ac4b2d2986d 100644--- a/Libraries/LibWeb/Rust/src/layout/fragment_tree.rs+++ b/Libraries/LibWeb/Rust/src/layout/fragment_tree.rs@@ -60,6 +60,8 @@ pub(crate) struct FragmentLink {/// Boxed, as few links place an absolutely positioned box and the inputs are larger than the rest of the link.pub(crate) abspos_layout_inputs: Option<Box<abspos_inputs::AbsposLayoutInputs>>,pub(crate) containing_block: crate::layout::node_data::NodeSlotId,+ /// The frame the box was laid out in, in which the link and the fragment hold its geometry.+ pub(crate) frame: geometry::Frame,}fn same_allocation<T>(left: Option<&std::sync::Arc<T>>, right: Option<&std::sync::Arc<T>>) -> bool {@@ -259,6 +261,7 @@ impl FragmentLink {containing_line_box_index: None,abspos_layout_inputs: None,containing_block: crate::layout::node_data::NodeSlotId::INVALID,+ frame: geometry::Frame::PHYSICAL,}}@@ -276,6 +279,7 @@ impl FragmentLink {&& self.containing_line_box_index == previous.containing_line_box_index&& self.abspos_layout_inputs == previous.abspos_layout_inputs&& self.containing_block == previous.containing_block+ && self.frame == previous.frame}}@@ -310,6 +314,9 @@ trait PropagatedPayload {fn coordinate_space_box(&self) -> crate::layout::node_data::NodeSlotId;fn set_coordinate_space_box(&mut self, node: crate::layout::node_data::NodeSlotId);fn translate_by(&mut self, offset: FfiCssPixelPoint);+ /// Maps the payload from frame `from` to frame `to`, within a box whose content box has the physical size+ /// `container_size`.+ fn move_to_frame(&mut self, from: geometry::Frame, to: geometry::Frame, container_size: FfiCssPixelSize);}impl PropagatedPayload for abspos_inputs::PendingAbsposChild {@@ -323,6 +330,9 @@ impl PropagatedPayload for abspos_inputs::PendingAbsposChild {self.static_position_rect =formatting_context::translate_static_position_rect(self.static_position_rect, offset);}+ fn move_to_frame(&mut self, from: geometry::Frame, to: geometry::Frame, container_size: FfiCssPixelSize) {+ self.static_position_rect = self.static_position_rect.in_frame(from, to, container_size);+ }}impl PropagatedPayload for InlineContainingBlockRect {@@ -336,6 +346,9 @@ impl PropagatedPayload for InlineContainingBlockRect {self.rect.x += offset.x;self.rect.y += offset.y;}+ fn move_to_frame(&mut self, from: geometry::Frame, to: geometry::Frame, container_size: FfiCssPixelSize) {+ self.rect = from.rect_in(self.rect, to, container_size);+ }}impl PropagatedPayload for AnchorCandidate {@@ -349,6 +362,17 @@ impl PropagatedPayload for AnchorCandidate {self.border_box_rect.x += offset.x;self.border_box_rect.y += offset.y;}+ fn move_to_frame(&mut self, from: geometry::Frame, to: geometry::Frame, container_size: FfiCssPixelSize) {+ self.border_box_rect = from.rect_in(self.border_box_rect, to, container_size);+ }+}++/// How payloads laid out in the frame a placed box establishes map into the frame of its containing block.+#[derive(Clone, Copy)]+struct PlacedBoxFrames {+ own: geometry::Frame,+ containing_block: geometry::Frame,+ physical_content_size: FfiCssPixelSize,}fn propagate_payload_into_containing_block_space<Payload: PropagatedPayload>(@@ -356,10 +380,14 @@ fn propagate_payload_into_containing_block_space<Payload: PropagatedPayload>(placed_box: crate::layout::node_data::NodeSlotId,containing_block: Option<crate::layout::node_data::NodeSlotId>,placed_box_content_offset: FfiCssPixelPoint,+ frames: Option<PlacedBoxFrames>,) {if payload.coordinate_space_box() == placed_box&& let Some(containing_block) = containing_block{+ if let Some(frames) = frames {+ payload.move_to_frame(frames.own, frames.containing_block, frames.physical_content_size);+ }payload.translate_by(placed_box_content_offset);payload.set_coordinate_space_box(containing_block);}@@ -514,6 +542,7 @@ pub(crate) struct PlacementData {pub(crate) containing_line_box_index: Option<usize>,pub(crate) abspos_layout_inputs: Option<abspos_inputs::AbsposLayoutInputs>,pub(crate) containing_block: crate::layout::node_data::NodeSlotId,+ pub(crate) frame: geometry::Frame,}impl PlacementData {@@ -521,8 +550,10 @@ impl PlacementData {used: &UsedValues,containing_line_box_index: Option<usize>,committed_offset: FfiCssPixelPoint,+ frame: geometry::Frame,) -> Self {Self {+ frame,committed_offset,inset_left: used.inset_left.get(),inset_right: used.inset_right.get(),@@ -546,6 +577,7 @@ fn link_fragment(fragment: std::sync::Arc<Fragment>, placement: PlacementData) -containing_line_box_index: placement.containing_line_box_index,abspos_layout_inputs: placement.abspos_layout_inputs.map(Box::new),containing_block: placement.containing_block,+ frame: placement.frame,}}@@ -1229,7 +1261,7 @@ impl RunFragmentBuilder {let fragment = snapshot_fragment(callbacks, node, children, used);let link = link_fragment(fragment.clone(),- PlacementData::from_record(used, containing_line_box_index, committed_offset),+ PlacementData::from_record(used, containing_line_box_index, committed_offset, callbacks.frame),);self.attach(&mut inner, link, containing_block, containing_block_is_sealed);let exports_payloads = !pending_abspos_from_placed_box.is_empty()@@ -1237,13 +1269,25 @@ impl RunFragmentBuilder {|| !inline_containing_block_rects_from_placed_box.is_empty()|| own_anchor_candidate_border_box_rect.is_some();let content_offset = used.content_offset.get();+ let frames = exports_payloads+ .then(|| {+ let own = formatting_context::frame_established_by(callbacks, node);+ (own != callbacks.frame).then(|| PlacedBoxFrames {+ own,+ containing_block: callbacks.frame,+ physical_content_size: callbacks+ .frame+ .size_to_physical(used.content_inline_size.get(), used.content_block_size.get()),+ })+ })+ .flatten();for mut entry in pending_abspos_from_placed_box {debug_assert!(entry.containing_block() != node,"an abspos registration outlived its containing block's placement drain (slot {})",entry.child_box.slot_index());- propagate_payload_into_containing_block_space(&mut entry, node, containing_block, content_offset);+ propagate_payload_into_containing_block_space(&mut entry, node, containing_block, content_offset, frames);match inner.pending_fragments.get_mut(&entry.coordinate_space_box.slot_index())@@ -1258,7 +1302,13 @@ impl RunFragmentBuilder {coordinate_space_box: containing_block.unwrap_or(node),});for mut candidate in anchor_candidates_from_placed_box.into_iter().chain(own_candidate) {- propagate_payload_into_containing_block_space(&mut candidate, node, containing_block, content_offset);+ propagate_payload_into_containing_block_space(+ &mut candidate,+ node,+ containing_block,+ content_offset,+ frames,+ );match inner.pending_fragments.get_mut(&candidate.coordinate_space_box.slot_index())@@ -1268,7 +1318,7 @@ impl RunFragmentBuilder {}}for mut payload in inline_containing_block_rects_from_placed_box {- propagate_payload_into_containing_block_space(&mut payload, node, containing_block, content_offset);+ propagate_payload_into_containing_block_space(&mut payload, node, containing_block, content_offset, frames);match inner.pending_fragments.get_mut(&payload.coordinate_space_box.slot_index())@@ -1296,6 +1346,7 @@ impl RunFragmentBuilder {containing_block_is_sealed: bool,containing_line_box_index: Option<usize>,committed_offset: FfiCssPixelPoint,+ frame: geometry::Frame,) {let mut inner = self.inner.borrow_mut();let slot = node.slot_index();@@ -1305,7 +1356,7 @@ impl RunFragmentBuilder {);let link = link_fragment(fragment,- PlacementData::from_record(used, containing_line_box_index, committed_offset),+ PlacementData::from_record(used, containing_line_box_index, committed_offset, frame),);self.attach(&mut inner, link, containing_block, containing_block_is_sealed);if reuses_subtree {@@ -1397,7 +1448,7 @@ impl RunFragmentBuilder {let used = records.used_values(pending_fragment.node);inner.top_scope_links.push(link_fragment(snapshot_fragment(callbacks, pending_fragment.node, pending_fragment.children, used),- PlacementData::from_record(used, None, used.content_offset.get()),+ PlacementData::from_record(used, None, used.content_offset.get(), callbacks.frame),));}// NB: A reused subtree root its run never placed has no children of its own in this run, as an empty held@@ -1415,7 +1466,7 @@ impl RunFragmentBuilder {}inner.top_scope_links.push(link_fragment(snapshot_fragment(callbacks, node, Vec::new(), used),- PlacementData::from_record(used, None, used.content_offset.get()),+ PlacementData::from_record(used, None, used.content_offset.get(), callbacks.frame),));}let child_roots_awaiting_placement = std::mem::take(&mut inner.child_roots_awaiting_placement);@@ -1423,7 +1474,7 @@ impl RunFragmentBuilder {let used = records.used_values(root.node);inner.top_scope_links.push(link_fragment(snapshot_fragment(callbacks, root.node, root.scoped_descendants, used),- PlacementData::from_record(used, None, used.content_offset.get()),+ PlacementData::from_record(used, None, used.content_offset.get(), callbacks.frame),));}for entry in &mut propagated_pending_abspos {diff --git a/Libraries/LibWeb/Rust/src/layout/geometry.rs b/Libraries/LibWeb/Rust/src/layout/geometry.rsindex 74a743315b4..daa15453953 100644--- a/Libraries/LibWeb/Rust/src/layout/geometry.rs+++ b/Libraries/LibWeb/Rust/src/layout/geometry.rs@@ -6,19 +6,192 @@use super::*;-pub(crate) fn to_physical<T>(writing_mode: u8, inline: T, block: T) -> (T, T) {- if writing_mode == writing_mode::HORIZONTAL_TB {- (inline, block)- } else {- (block, inline)+// NB: Layout computes every box in the "frame" of the writing mode of the formatting context that lays it out: the+// frame is that writing mode's flow-relative view of the plane, turned so that its line-left side is the frame's+// left side and its block-start side is the frame's top side. Within a frame, the inline axis is the horizontal+// one and blocks stack downwards, so every layout algorithm can work as if in horizontal-tb. The left and right+// sides of a frame are line-relative rather than inline-start and inline-end, which keeps 'direction' working the+// same in every writing mode. Painting maps the frame back onto the physical plane.+// https://drafts.csswg.org/css-writing-modes-4/#logical-to-physical++/// A side of a box, in a frame or in the physical plane.+#[derive(Clone, Copy, Debug, PartialEq, Eq)]+#[repr(u8)]+pub(crate) enum Side {+ Top = 0,+ Right = 1,+ Bottom = 2,+ Left = 3,+}++impl Side {+ const ALL: [Side; 4] = [Side::Top, Side::Right, Side::Bottom, Side::Left];++ fn from_index(index: u8) -> Side {+ Self::ALL[index as usize & 3]}}-pub(crate) fn to_logical<T>(writing_mode: u8, horizontal: T, vertical: T) -> (T, T) {+/// The physical side each side of the frame of a writing mode lies on, indexed by the frame side.+const FRAME_SIDES_IN_PHYSICAL_PLANE: [[u8; 4]; 5] = [+ // horizontal-tb+ [0, 1, 2, 3],+ // vertical-rl: block-start is right, line-left is top.+ [1, 2, 3, 0],+ // vertical-lr: block-start is left, line-left is top.+ [3, 2, 1, 0],+ // sideways-rl: block-start is right, line-left is top.+ [1, 2, 3, 0],+ // sideways-lr: block-start is left, line-left is bottom.+ [3, 0, 1, 2],+];++/// The frame side that each physical side lies on, indexed by the physical side.+const PHYSICAL_SIDES_IN_FRAME: [[u8; 4]; 5] = [[0, 1, 2, 3], [3, 0, 1, 2], [3, 2, 1, 0], [3, 0, 1, 2], [1, 2, 3, 0]];++/// The frame of a writing mode.+#[derive(Clone, Copy, Debug, PartialEq, Eq)]+pub(crate) struct Frame(u8);++impl Default for Frame {+ fn default() -> Self {+ Self::PHYSICAL+ }+}++impl Frame {+ pub(crate) const PHYSICAL: Frame = Frame(writing_mode::HORIZONTAL_TB);++ #[inline]+ pub(crate) fn of(writing_mode: u8) -> Frame {+ Frame(if writing_mode <= writing_mode::SIDEWAYS_LR {+ writing_mode+ } else {+ writing_mode::HORIZONTAL_TB+ })+ }++ #[inline]+ pub(crate) fn writing_mode(self) -> u8 {+ self.0+ }++ #[inline]+ pub(crate) fn is_physical(self) -> bool {+ self.0 == writing_mode::HORIZONTAL_TB+ }++ /// Whether the frame's horizontal axis runs along the physical vertical axis.+ #[inline]+ pub(crate) fn is_transposed(self) -> bool {+ self.0 != writing_mode::HORIZONTAL_TB+ }++ /// Whether the frames run their inline axes along perpendicular physical axes.+ #[inline]+ pub(crate) fn is_orthogonal_to(self, other: Frame) -> bool {+ self.is_transposed() != other.is_transposed()+ }++ #[inline]+ pub(crate) fn physical_side(self, side: Side) -> Side {+ Side::from_index(FRAME_SIDES_IN_PHYSICAL_PLANE[self.0 as usize][side as usize])+ }++ #[inline]+ pub(crate) fn frame_side(self, physical_side: Side) -> Side {+ Side::from_index(PHYSICAL_SIDES_IN_FRAME[self.0 as usize][physical_side as usize])+ }++ /// The side of `other` that lies on the same physical side as the given side of this frame.+ #[inline]+ pub(crate) fn side_in(self, side: Side, other: Frame) -> Side {+ other.frame_side(self.physical_side(side))+ }++ /// Maps per-side values, indexed top, right, bottom, left, from this frame to `other`.+ #[inline]+ pub(crate) fn sides_in<T: Copy>(self, values: [T; 4], other: Frame) -> [T; 4] {+ if self == other {+ return values;+ }+ Side::ALL.map(|side| values[other.side_in(side, self) as usize])+ }++ /// Whether the frame's horizontal axis runs opposite to the physical axis it lies on.+ pub(crate) fn horizontal_axis_is_reversed(self) -> bool {+ matches!(self.physical_side(Side::Left), Side::Right | Side::Bottom)+ }++ /// Whether the frame's vertical axis runs opposite to the physical axis it lies on.+ pub(crate) fn vertical_axis_is_reversed(self) -> bool {+ matches!(self.physical_side(Side::Top), Side::Right | Side::Bottom)+ }++ /// Maps a rect in this frame to the physical plane, within a box whose physical size is `container_size`, both+ /// relative to that box's top-left corner and its frame origin respectively.+ pub(crate) fn rect_to_physical(self, rect: CssPixelRect, container_size: FfiCssPixelSize) -> CssPixelRect {+ if self.is_physical() {+ return rect;+ }+ // NB: In a transposed frame, the horizontal frame axis runs along the physical vertical axis.+ let (mut x, mut y, width, height) = (rect.y, rect.x, rect.height, rect.width);+ if self.vertical_axis_is_reversed() {+ x = container_size.width - x - width;+ }+ if self.horizontal_axis_is_reversed() {+ y = container_size.height - y - height;+ }+ CssPixelRect { x, y, width, height }+ }++ /// Maps a physical rect within a box of physical size `container_size` to this frame.+ pub(crate) fn rect_from_physical(self, rect: CssPixelRect, container_size: FfiCssPixelSize) -> CssPixelRect {+ if self.is_physical() {+ return rect;+ }+ let (mut x, mut y) = (rect.x, rect.y);+ if self.vertical_axis_is_reversed() {+ x = container_size.width - x - rect.width;+ }+ if self.horizontal_axis_is_reversed() {+ y = container_size.height - y - rect.height;+ }+ CssPixelRect {+ x: y,+ y: x,+ width: rect.height,+ height: rect.width,+ }+ }++ /// Maps a rect within a box from this frame to `other`, where the box has the physical size `container_size`.+ pub(crate) fn rect_in(self, rect: CssPixelRect, other: Frame, container_size: FfiCssPixelSize) -> CssPixelRect {+ if self == other {+ return rect;+ }+ other.rect_from_physical(self.rect_to_physical(rect, container_size), container_size)+ }++ /// Maps a size in this frame to the physical plane.+ #[inline]+ pub(crate) fn size_to_physical(self, width: CssPixels, height: CssPixels) -> FfiCssPixelSize {+ if self.is_transposed() {+ FfiCssPixelSize {+ width: height,+ height: width,+ }+ } else {+ FfiCssPixelSize { width, height }+ }+ }+}++pub(crate) fn to_physical<T>(writing_mode: u8, inline: T, block: T) -> (T, T) {if writing_mode == writing_mode::HORIZONTAL_TB {- (horizontal, vertical)+ (inline, block)} else {- (vertical, horizontal)+ (block, inline)}}@@ -37,6 +210,20 @@ pub(crate) fn start_is_left_or_top(writing_mode: u8, direction: u8, horizontal:}}+/// Whether the start side, in the given writing mode and direction, of the axis that runs along the given axis of+/// `frame` is that axis's left (horizontal) or top (vertical) side in the frame.+pub(crate) fn start_is_low_side_in_frame(+ frame: Frame,+ writing_mode: u8,+ direction: u8,+ frame_horizontal: bool,+) -> bool {+ let physical_horizontal = frame_horizontal != frame.is_transposed();+ let start_is_physical_low_side = start_is_left_or_top(writing_mode, direction, physical_horizontal);+ let physical_low_side = if physical_horizontal { Side::Left } else { Side::Top };+ matches!(frame.frame_side(physical_low_side), Side::Left | Side::Top) == start_is_physical_low_side+}+#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]pub enum AvailableSize {Definite(CssPixels),diff --git a/Libraries/LibWeb/Rust/src/layout/grid_formatting_context.rs b/Libraries/LibWeb/Rust/src/layout/grid_formatting_context.rsindex c3cd64cf028..687052d9db1 100644--- a/Libraries/LibWeb/Rust/src/layout/grid_formatting_context.rs+++ b/Libraries/LibWeb/Rust/src/layout/grid_formatting_context.rs@@ -1204,13 +1204,16 @@ impl<'pass> GridFormattingContext<'pass> {row_alignment_container_size: CssPixels::default(),use_row_alignment_container_size: false,use_row_sizes_for_column_percentages: false,- grid_axes_are_transposed: container_style.writing_mode() != writing_mode::HORIZONTAL_TB,- columns_are_reversed: !geometry::start_is_left_or_top(+ grid_axes_are_transposed: geometry::Frame::of(container_style.writing_mode())+ .is_orthogonal_to(run.callbacks.frame),+ columns_are_reversed: !geometry::start_is_low_side_in_frame(+ run.callbacks.frame,container_style.writing_mode(),container_style.direction(),true,),- rows_are_reversed: !geometry::start_is_left_or_top(+ rows_are_reversed: !geometry::start_is_low_side_in_frame(+ run.callbacks.frame,container_style.writing_mode(),container_style.direction(),false,@@ -1297,7 +1300,7 @@ impl<'pass> GridFormattingContext<'pass> {/// Picks whichever of the per-grid-axis values of a grid item that is itself a grid container belongs to the given/// physical axis, following the item's own writing mode, as select_grid_axis() does for the grid container.fn select_item_grid_axis<T>(&self, item: Node, axis: Axis, column: T, row: T) -> T {- if self.style(item).writing_mode() != writing_mode::HORIZONTAL_TB {+ if self.sizing().establishes_orthogonal_flow(item) {axis.select(row, column)} else {axis.select(column, row)@@ -3274,8 +3277,12 @@ impl<'pass> GridFormattingContext<'pass> {// corresponding to the alignment subject’s end side in the appropriate axis.Alignment::SelfStart | Alignment::SelfEnd => {let horizontal = axis.is_column();- let item_start_is_left_or_top =- geometry::start_is_left_or_top(item_style.writing_mode(), item_style.direction(), horizontal);+ let item_start_is_left_or_top = geometry::start_is_low_side_in_frame(+ self.run.callbacks.frame,+ item_style.writing_mode(),+ item_style.direction(),+ horizontal,+ );let shares_start_side = item_start_is_left_or_top == self.axis_start_is_left_or_top(axis);if shares_start_side == (alignment == Alignment::SelfStart) {Alignment::Start@@ -3317,10 +3324,15 @@ impl<'pass> GridFormattingContext<'pass> {// right: Aligns the alignment subject to be flush with the alignment container’s line-right or physical right// edge, whichever is in the appropriate axis.fn resolve_left_or_right(&self, axis: Axis, alignment: Alignment) -> Alignment {- // NB: The Row axis of a grid container in a vertical writing mode is its inline axis, whose line-left side is- // the top, except in sideways-lr, where it is the bottom.- let line_left_is_left_or_top =- axis.is_column() || self.style(self.run.box_).writing_mode() != writing_mode::SIDEWAYS_LR;+ // NB: The Column axis is the inline axis of the frame, whose line-left side is its left side. Along the Row+ // axis, left and right are physical sides, which a transposed frame may run either way.+ let frame = self.run.callbacks.frame;+ let line_left_is_left_or_top = axis.is_column()+ || !frame.is_transposed()+ || matches!(+ frame.frame_side(geometry::Side::Left),+ geometry::Side::Left | geometry::Side::Top+ );let aligns_to_left_or_top = (alignment == Alignment::Left) == line_left_is_left_or_top;if self.axis_start_is_left_or_top(axis) == aligns_to_left_or_top {Alignment::Start@@ -3542,7 +3554,7 @@ impl<'pass> GridFormattingContext<'pass> {// at that width, so block contents must be measured against the same basis. Orthogonal items with// inline contents instead contribute their inline-axis size to the physical row axis.let use_resolved_content_width = !axis.is_column()- && (style.writing_mode() == writing_mode::HORIZONTAL_TB || !facts.children_are_inline());+ && (!self.sizing().establishes_orthogonal_flow(item.box_) || !facts.children_are_inline());let available_inline = if use_resolved_content_width {self.used(item).content_inline_size.get()} else {@@ -4120,7 +4132,7 @@ impl<'pass> GridFormattingContext<'pass> {let used = self.used(item);let collapsed = used.uses_collapsing_borders_model.get();let distance_from_margin_box_top =- if self.style(item.box_).writing_mode() == writing_mode::HORIZONTAL_TB && used.has_first_baseline.get() {+ if !self.sizing().establishes_orthogonal_flow(item.box_) && used.has_first_baseline.get() {formatting_context::box_baseline(&self.run.callbacks,item.box_,diff --git a/Libraries/LibWeb/Rust/src/layout/inline_content.rs b/Libraries/LibWeb/Rust/src/layout/inline_content.rsindex a41ef391643..393ad3c7d73 100644--- a/Libraries/LibWeb/Rust/src/layout/inline_content.rs+++ b/Libraries/LibWeb/Rust/src/layout/inline_content.rs@@ -25,6 +25,8 @@ pub struct InlineContent {pub lines_after_clamp_point_rect: Option<Box<used_values::FfiCssPixelRect>>,/// Where the content that text-overflow elided from the end of a line would be, by line index.pub elided_content_rects: Vec<(u32, used_values::FfiCssPixelRect)>,+ /// The writing mode whose frame the lines were laid out in.+ pub writing_mode: u8,}#[derive(Clone, Copy, Debug, PartialEq, Eq)]@@ -137,7 +139,12 @@ pub struct InlineBoxPieceRecord {}impl InlineContent {- pub(crate) fn finish(data: used_values::LineData, arena: &LayoutNodeArena, content_inline_size: CssPixels) -> Self {+ pub(crate) fn finish(+ data: used_values::LineData,+ arena: &LayoutNodeArena,+ content_inline_size: CssPixels,+ writing_mode: u8,+ ) -> Self {let mut lines = Vec::with_capacity(data.line_boxes.len());let mut fragment_count = 0usize;let mut elided_content_rects = Vec::new();@@ -201,6 +208,7 @@ impl InlineContent {items: Vec::new(),lines_after_clamp_point_rect: data.lines_after_clamp_point_rect,elided_content_rects,+ writing_mode,};// Plain text needs no interleaving and keeps its single foreground producer.if content.inline_box_pieces.is_empty() && !content.fragments.iter().any(|fragment| fragment.is_atomic_inline) {@@ -258,7 +266,10 @@ impl InlineContent {fn combine(contents: &[(&InlineContent, u32, used_values::FfiCssPixelPoint)]) -> std::sync::Arc<InlineContent> {let interleaves = contents.iter().any(|(content, ..)| !content.items.is_empty());- let mut combined = InlineContent::default();+ let mut combined = InlineContent {+ writing_mode: contents.first().map_or(0, |(content, ..)| content.writing_mode),+ ..InlineContent::default()+ };for (content, box_fragment, offset) in contents {combined.append_translated(content, interleaves, *box_fragment, *offset);}@@ -358,6 +369,84 @@ impl InlineContent {}}+ /// The content as painting sees it: laid out in the frame of `writing_mode` within a line root whose content box+ /// has the physical size `content_size`, mapped onto the physical plane.+ pub(crate) fn in_physical_plane(&self, writing_mode: u8, content_size: used_values::FfiCssPixelSize) -> Self {+ use crate::css::css_pixels::CssPixelRect;+ let frame = super::geometry::Frame::of(writing_mode);+ let mut content = self.clone();+ if frame.is_physical() {+ return content;+ }+ let to_physical = |rect: used_values::FfiCssPixelRect| -> used_values::FfiCssPixelRect {+ frame.rect_to_physical(CssPixelRect::from(rect), content_size).into()+ };+ let delta_to_physical = |delta: used_values::FfiCssPixelPoint| -> used_values::FfiCssPixelPoint {+ let origin = frame.rect_to_physical(CssPixelRect::default(), content_size);+ let moved = frame.rect_to_physical(+ CssPixelRect::new(delta.x, delta.y, CssPixels::default(), CssPixels::default()),+ content_size,+ );+ used_values::FfiCssPixelPoint {+ x: moved.x - origin.x,+ y: moved.y - origin.y,+ }+ };+ // NB: Glyphs that run along a vertical line are turned a quarter turn clockwise, so their line-over side+ // faces the physical right side. That is the block-start side of the frame of vertical-rl, but the+ // block-end side of the frame of vertical-lr, where each line is laid out mirrored in the block axis.+ // https://drafts.csswg.org/css-writing-modes-4/#line-orientation+ // FIXME: Turn the glyphs of sideways-lr a quarter turn counterclockwise instead, so that they face its+ // line-over side on the left and run upwards like its inline axis.+ let lines_are_mirrored = writing_mode == crate::css::css_enums::writing_mode::VERTICAL_LR;+ let mirror_in_line = |line_index: u32, block_offset: CssPixels, block_length: CssPixels| -> CssPixels {+ if !lines_are_mirrored {+ return block_offset;+ }+ let Some(line) = self.lines.get(line_index as usize) else {+ return block_offset;+ };+ let line_block_start = line.block_end - line.block_length;+ line_block_start + line.block_end - block_offset - block_length+ };+ for line in &mut content.lines {+ line.rect = to_physical(line.rect);+ line.writing_mode = writing_mode;+ }+ for (_, rect) in &mut content.elided_content_rects {+ *rect = to_physical(*rect);+ }+ if let Some(rect) = content.lines_after_clamp_point_rect.as_deref_mut() {+ *rect = to_physical(*rect);+ }+ for fragment in &mut content.fragments {+ let block_offset = mirror_in_line(fragment.line_index, fragment.block_offset, fragment.block_length);+ let rect = frame.rect_to_physical(+ CssPixelRect::new(+ fragment.inline_offset,+ block_offset,+ fragment.inline_length,+ fragment.block_length,+ ),+ content_size,+ );+ // NB: A vertical fragment keeps its inline offset and length along the physical vertical axis.+ fragment.writing_mode = writing_mode;+ fragment.inline_offset = rect.y;+ fragment.block_offset = rect.x;+ fragment.inline_length = rect.height;+ fragment.block_length = rect.width;+ fragment.relpos_delta = delta_to_physical(fragment.relpos_delta);+ }+ for piece in &mut content.inline_box_pieces {+ let mut rect = piece.border_box_rect;+ rect.y = mirror_in_line(piece.line_index, rect.y, rect.height);+ piece.border_box_rect = to_physical(rect);+ piece.relpos_delta = delta_to_physical(piece.relpos_delta);+ }+ content+ }+fn item_position(&self, item: InlineItem) -> (NodeSlotId, u32) {match item {InlineItem::BoxPiece(index) => {@@ -421,10 +510,6 @@ impl FragmentRecord {super::geometry::to_physical(self.writing_mode, self.inline_length, self.block_length)}- pub(crate) fn physical_horizontal_extent(&self) -> CssPixels {- super::geometry::to_physical(self.writing_mode, self.inline_length, self.block_length).0- }-pub(crate) fn physical_vertical_extent(&self) -> CssPixels {super::geometry::to_physical(self.writing_mode, self.inline_length, self.block_length).1}diff --git a/Libraries/LibWeb/Rust/src/layout/inline_formatting_context.rs b/Libraries/LibWeb/Rust/src/layout/inline_formatting_context.rsindex 0e07414e18a..52609b30081 100644--- a/Libraries/LibWeb/Rust/src/layout/inline_formatting_context.rs+++ b/Libraries/LibWeb/Rust/src/layout/inline_formatting_context.rs@@ -455,17 +455,13 @@ fn nesting_depth(context: &InlineFormattingContext, node: Node) -> u32 {depth}-fn edge_bits(horizontal: bool, low: bool, high: bool) -> u8 {- let mut edges = if horizontal {- EDGE_TOP | EDGE_BOTTOM- } else {- EDGE_LEFT | EDGE_RIGHT- };+fn edge_bits(low: bool, high: bool) -> u8 {+ let mut edges = EDGE_TOP | EDGE_BOTTOM;if low {- edges |= if horizontal { EDGE_LEFT } else { EDGE_TOP };+ edges |= EDGE_LEFT;}if high {- edges |= if horizontal { EDGE_RIGHT } else { EDGE_BOTTOM };+ edges |= EDGE_RIGHT;}edges}@@ -492,7 +488,6 @@ struct FirstAndLastContentLineCorners {pub(crate) fn compute(context: &InlineFormattingContext,) -> (Vec<InlineBoxPieceData>, Vec<InlineContainingBlockRectCandidate>) {- let horizontal = context.style(context.containing_block).writing_mode() == writing_mode::HORIZONTAL_TB;let collect_inline_containing_block_rects = context.run.fragments@@ -521,41 +516,26 @@ pub(crate) fn compute();let position = fragment.offset();let size = fragment.size();- let mut inline_start = if horizontal { position.0 } else { position.1 };- let mut inline_end = inline_start + if horizontal { size.0 } else { size.1 };- let block_start = if horizontal { position.1 } else { position.0 };- let block_length = if horizontal { size.1 } else { size.0 };+ let mut inline_start = position.0;+ let mut inline_end = inline_start + size.0;+ let block_start = position.1;+ let block_length = size.1;if !interrupting && fragment.is_atomic_inline {let used = context.used(fragment.layout_node);- if horizontal {- inline_start -= used.margin_left.get() + used.border_box_left(false);- inline_end += used.margin_right.get() + used.border_box_right(false);- } else {- inline_start -= used.margin_top.get() + used.border_box_top(false);- inline_end += used.margin_bottom.get() + used.border_box_bottom(false);- }+ inline_start -= used.margin_left.get() + used.border_box_left(false);+ inline_end += used.margin_right.get() + used.border_box_right(false);}let interrupting_block = if interrupting {let block_used = context.used(fragment.layout_node);let collapsed = block_used.uses_collapsing_borders_model.get();- let (border_box_inline_low, border_box_block_low, border_box_inline_size, border_box_block_size) =- if horizontal {- (- block_used.border_box_left(collapsed),- block_used.border_box_top(collapsed),- block_used.border_box_inline_size(collapsed),- block_used.border_box_block_size(collapsed),- )- } else {- (- block_used.border_box_top(collapsed),- block_used.border_box_left(collapsed),- block_used.border_box_block_size(collapsed),- block_used.border_box_inline_size(collapsed),- )- };+ let (border_box_inline_low, border_box_block_low, border_box_inline_size, border_box_block_size) = (+ block_used.border_box_left(collapsed),+ block_used.border_box_top(collapsed),+ block_used.border_box_inline_size(collapsed),+ block_used.border_box_block_size(collapsed),+ );let extent_inline_start = inline_start - border_box_inline_low;let extent_block_start = block_start - border_box_block_low;Some((@@ -655,25 +635,14 @@ pub(crate) fn compute(border_padding_block_high,margin_low,margin_high,- ) = if horizontal {- (- used.border_box_left(false),- used.border_box_right(false),- used.border_box_top(false),- used.border_box_bottom(false),- used.margin_left.get(),- used.margin_right.get(),- )- } else {- (- used.border_box_top(false),- used.border_box_bottom(false),- used.border_box_left(false),- used.border_box_right(false),- used.margin_top.get(),- used.margin_bottom.get(),- )- };+ ) = (+ used.border_box_left(false),+ used.border_box_right(false),+ used.border_box_top(false),+ used.border_box_bottom(false),+ used.margin_left.get(),+ used.margin_right.get(),+ );let node_is_inline_containing_block = collect_inline_containing_block_rects&& context@@ -713,7 +682,7 @@ pub(crate) fn compute(relpos_delta: FfiCssPixelPoint::default(),baseline: inline_box_baseline,accumulated_vertical_shift: inline_box_vertical_shift,- present_edges: edge_bits(horizontal, true, true),+ present_edges: edge_bits(true, true),is_geometry_only_placeholder: true,},depth,@@ -752,20 +721,11 @@ pub(crate) fn compute(let border_block_start = content_block_start - border_padding_block_low;let border_block_length = content_block_length + border_padding_block_low + border_padding_block_high;let (inline_box_baseline, inline_box_vertical_shift) = inline_box_anchor();- let rect = if horizontal {- FfiCssPixelRect {- x: border_inline_start,- y: border_block_start,- width: border_inline_end - border_inline_start,- height: border_block_length,- }- } else {- FfiCssPixelRect {- x: border_block_start,- y: border_inline_start,- width: border_block_length,- height: border_inline_end - border_inline_start,- }+ let rect = FfiCssPixelRect {+ x: border_inline_start,+ y: border_block_start,+ width: border_inline_end - border_inline_start,+ height: border_block_length,};staged.push(StagedPiece {piece: InlineBoxPieceData {@@ -777,7 +737,7 @@ pub(crate) fn compute(relpos_delta: FfiCssPixelPoint::default(),baseline: inline_box_baseline,accumulated_vertical_shift: inline_box_vertical_shift,- present_edges: edge_bits(horizontal, has_low_edge, has_high_edge),+ present_edges: edge_bits(has_low_edge, has_high_edge),is_geometry_only_placeholder: false,},depth,@@ -813,7 +773,6 @@ pub(crate) fn compute(&& let Some(rect) = padding_box_rect_spanning_first_and_last_content_lines(&corners,used,- horizontal,reversed,container_inline_axis_is_reverse,)@@ -828,16 +787,9 @@ pub(crate) fn compute(for (index, node) in without_fragments.into_iter().enumerate() {context.used(node);let line_height = context.style(node).line_height();- let placeholder_rect = if horizontal {- FfiCssPixelRect {- height: line_height,- ..Default::default()- }- } else {- FfiCssPixelRect {- width: line_height,- ..Default::default()- }+ let placeholder_rect = FfiCssPixelRect {+ height: line_height,+ ..Default::default()};if collect_inline_containing_block_rects&& context@@ -866,7 +818,7 @@ pub(crate) fn compute(relpos_delta: FfiCssPixelPoint::default(),baseline: CssPixels::default(),accumulated_vertical_shift: CssPixels::default(),- present_edges: edge_bits(horizontal, true, true),+ present_edges: edge_bits(true, true),is_geometry_only_placeholder: true,},depth: nesting_depth(context, node),@@ -881,28 +833,18 @@ pub(crate) fn compute(fn padding_box_rect_spanning_first_and_last_content_lines(corners: &FirstAndLastContentLineCorners,used: &UsedValues,- horizontal: bool,inline_axis_is_reverse: bool,container_inline_axis_is_reverse: bool,) -> Option<CssPixelRect> {let first = corners.first?;let last = corners.last?;- let (border_inline_low, border_inline_high, border_block_low, border_block_high) = if horizontal {- (- used.border_left.get(),- used.border_right.get(),- used.border_top.get(),- used.border_bottom.get(),- )- } else {- (- used.border_top.get(),- used.border_bottom.get(),- used.border_left.get(),- used.border_right.get(),- )- };+ let (border_inline_low, border_inline_high, border_block_low, border_block_high) = (+ used.border_left.get(),+ used.border_right.get(),+ used.border_top.get(),+ used.border_bottom.get(),+ );let direction_matches = inline_axis_is_reverse == container_inline_axis_is_reverse;let (contracted_inline_low, contracted_inline_high) = if direction_matches {(border_inline_low, border_inline_high)@@ -922,20 +864,11 @@ fn padding_box_rect_spanning_first_and_last_content_lines(let size = (start - end).max(CssPixels::default());(start - size, size)};- Some(if horizontal {- CssPixelRect {- x: inline_low,- y: block_start,- width: inline_size,- height: block_size,- }- } else {- CssPixelRect {- x: block_start,- y: inline_low,- width: block_size,- height: inline_size,- }+ Some(CssPixelRect {+ x: inline_low,+ y: block_start,+ width: inline_size,+ height: block_size,})}#[derive(Clone, Copy, Debug, Default)]@@ -1423,10 +1356,6 @@ impl<'context> InlineFormattingContext<'context> {) -> (Vec<line_box::LineBoxData>, usize) {if self.containing_block != self.run.box_|| !previous.inline_box_pieces.is_empty()- || previous- .lines- .iter()- .any(|line| line.writing_mode != writing_mode::HORIZONTAL_TB)|| iterator.items().iter()@@ -2655,9 +2584,7 @@ pub(crate) fn inline_content_is_measurable_from_items(style: StyleValues<'_>,inline_basis: CssPixels,) -> bool {- !facts.is_scroll_container()- && style.writing_mode() == writing_mode::HORIZONTAL_TB- && style.text_indent().to_px(inline_basis) == CssPixels::default()+ !facts.is_scroll_container() && style.text_indent().to_px(inline_basis) == CssPixels::default()}#[derive(Clone, Copy, Debug, PartialEq, Eq)]@@ -2736,23 +2663,10 @@ enum TextItemWrapOpportunity {}pub(crate) fn line_physical_horizontal_extent(line: &line_box::LineBoxData) -> CssPixels {- if line.has_block_level_box || line.writing_mode == writing_mode::HORIZONTAL_TB {- if let Some(ellipsis) = line.fragments.last().filter(|fragment| fragment.is_block_ellipsis) {- return line.inline_length - ellipsis.inline_length;- }- return line.inline_length;+ if let Some(ellipsis) = line.fragments.last().filter(|fragment| fragment.is_block_ellipsis) {+ return line.inline_length - ellipsis.inline_length;}- let Some(first) = line.fragments.first() else {- return CssPixels::default();- };- let mut left = first.offset().0;- let mut right = left + first.physical_horizontal_extent();- for fragment in &line.fragments[1..] {- let fragment_left = fragment.offset().0;- left = left.min(fragment_left);- right = right.max(fragment_left + fragment.physical_horizontal_extent());- }- right - left+ line.inline_length}// https://drafts.csswg.org/css-overflow-3/#ellipsing-details@@ -2844,9 +2758,7 @@ pub(crate) fn line_rect(line: &line_box::LineBoxData, content_inline_size: CssPiheight: line.physical_vertical_extent(),};};- if line.writing_mode == writing_mode::HORIZONTAL_TB {- rect.y = line.physical_vertical_end() - line.physical_vertical_extent();- rect.height = line.physical_vertical_extent();- }+ rect.y = line.physical_vertical_end() - line.physical_vertical_extent();+ rect.height = line.physical_vertical_extent();rect}diff --git a/Libraries/LibWeb/Rust/src/layout/layout_node_arena.rs b/Libraries/LibWeb/Rust/src/layout/layout_node_arena.rsindex 833837d4a4d..a45525665d5 100644--- a/Libraries/LibWeb/Rust/src/layout/layout_node_arena.rs+++ b/Libraries/LibWeb/Rust/src/layout/layout_node_arena.rs@@ -61,6 +61,8 @@ pub(crate) struct IntrinsicSizeCacheKey {pub(crate) percentage_basis_inline_size: Option<CssPixels>,pub(crate) percentage_basis_block_size: Option<CssPixels>,pub(crate) quirks_mode_percentage_basis_block_size: Option<CssPixels>,+ /// Whether the box was measured in a transposed frame, where its sizes are those of the other axes.+ pub(crate) measured_in_transposed_frame: bool,}impl IntrinsicSizeCacheKey {diff --git a/Libraries/LibWeb/Rust/src/layout/layout_pass.rs b/Libraries/LibWeb/Rust/src/layout/layout_pass.rsindex 3bf1341cd05..631a6561721 100644--- a/Libraries/LibWeb/Rust/src/layout/layout_pass.rs+++ b/Libraries/LibWeb/Rust/src/layout/layout_pass.rs@@ -67,6 +67,8 @@ pub(crate) struct LayoutPass<'arena> {pub(crate) initial_containing_block_inline_size: CssPixels,pub(crate) initial_containing_block_block_size: CssPixels,pub(crate) document_in_quirks_mode: bool,+ /// The frame of the formatting context the pass is laying out, in which style reads see sizes and box sides.+ pub(crate) frame: super::geometry::Frame,}impl<'arena> LayoutPass<'arena> {@@ -85,9 +87,17 @@ impl<'arena> LayoutPass<'arena> {initial_containing_block_inline_size,initial_containing_block_block_size,document_in_quirks_mode,+ frame: super::geometry::Frame::PHYSICAL,}}+ /// This pass, laying out in the frame of `writing_mode`.+ #[inline]+ pub(crate) fn in_frame_of(mut self, writing_mode: u8) -> Self {+ self.frame = super::geometry::Frame::of(writing_mode);+ self+ }+pub(crate) fn arena(&self) -> &'arena LayoutNodeArena {self.arena}diff --git a/Libraries/LibWeb/Rust/src/layout/line_builder.rs b/Libraries/LibWeb/Rust/src/layout/line_builder.rsindex d79c9bc423c..26e4f5205fe 100644--- a/Libraries/LibWeb/Rust/src/layout/line_builder.rs+++ b/Libraries/LibWeb/Rust/src/layout/line_builder.rs@@ -61,7 +61,6 @@ pub(crate) struct LineBuilder<'builder, 'context> {text_indent_hanging: bool,text_indent_each_line: bool,direction: u8,- writing_mode: u8,last_line_needs_update: bool,is_continuation: bool,should_advance_to_last_line_box_block_end: bool,@@ -113,7 +112,6 @@ impl<'builder, 'context> LineBuilder<'builder, 'context> {text_indent_hanging: style.text_indent_hanging(),text_indent_each_line: style.text_indent_each_line(),direction: style.direction(),- writing_mode: style.writing_mode(),last_line_needs_update: false,is_continuation: false,should_advance_to_last_line_box_block_end: false,@@ -153,7 +151,8 @@ impl<'builder, 'context> LineBuilder<'builder, 'context> {.line_boxes.push(line_box::LineBoxData::new(self.direction,- self.writing_mode,+ // NB: Lines are laid out in the frame of their formatting context, where they run horizontally.+ writing_mode::HORIZONTAL_TB,self.context().current_line_start.get(),));}@@ -538,23 +537,12 @@ impl<'builder, 'context> LineBuilder<'builder, 'context> {) {let used = self.context().used(node);assert!(used.has_content_offset.get());- let (inline_offset, block_offset) = geometry::to_logical(- self.writing_mode,- used.content_offset.get().x,- used.content_offset.get().y,- );- let (inline_length, block_length) = geometry::to_logical(- self.writing_mode,- used.content_inline_size.get(),- used.content_block_size.get(),- );+ let inline_offset = used.content_offset.get().x;+ let block_offset = used.content_offset.get().y;+ let inline_length = used.content_inline_size.get();+ let block_length = used.content_block_size.get();let border_start = used.border_box_top(false);- let line_inline_length = geometry::to_logical(- self.writing_mode,- used.margin_box_inline_size(false),- used.margin_box_block_size(false),- )- .0;+ let line_inline_length = used.margin_box_inline_size(false);let ensured_line_index = self.ensure_last_line_index();assert_eq!(line_index, ensured_line_index);assert!(self.line(line_index).fragments.is_empty());@@ -568,7 +556,7 @@ impl<'builder, 'context> LineBuilder<'builder, 'context> {block_length,border_start,self.direction,- self.writing_mode,+ writing_mode::HORIZONTAL_TB,None,self.fragment_facts(node),);@@ -714,11 +702,8 @@ impl<'builder, 'context> LineBuilder<'builder, 'context> {// A top- or bottom-aligned box is the root of an aligned subtree, laid out on the baseline here and// shifted into place once the final line box size is known. These arms therefore only see boxes that// form no aligned subtree: the containing block itself, whose alignment does not apply to the line box- // it establishes, and every box in a writing mode below.- // FIXME: Line box alignment still uses physical vertical metrics in non-horizontal writing modes.- vertical_align::TOP if self.writing_mode == writing_mode::HORIZONTAL_TB => alphabetic,- vertical_align::TOP => self.current_block_offset + metrics.effective_box_block_start_offset,- vertical_align::BOTTOM => alphabetic,+ // it establishes.+ vertical_align::TOP | vertical_align::BOTTOM => alphabetic,vertical_align::TEXT_TOP => {self.current_block_offset + line_box_baseline- CssPixels::nearest_value_for_f32(parent_style.font_ascent())@@ -737,12 +722,6 @@ impl<'builder, 'context> LineBuilder<'builder, 'context> {// https://drafts.csswg.org/css2/#line-heightfn line_relative_aligned_subtree_root(&self, style_source: Node) -> Option<(Node, u8)> {- // FIXME: Line box alignment still uses physical vertical metrics in non-horizontal writing modes, where- // top and bottom are approximated without forming aligned subtrees.- if self.writing_mode != writing_mode::HORIZONTAL_TB {- return None;- }-// An aligned subtree contains its inline-level box and the aligned subtrees of all children except any// descendant subtree whose root is itself aligned to the line box. Walking outwards therefore stops at the// nearest ancestor aligned to the line box, and at the first ancestor that is not an inline box of this@@ -854,11 +833,7 @@ impl<'builder, 'context> LineBuilder<'builder, 'context> {}};let inline_offset = aligned_inline_offset(self.line(line_index).inline_length);- let mut block_offset = CssPixels::default();- if self.writing_mode != writing_mode::HORIZONTAL_TB {- block_offset =- self.available_inline_size_for_current_line.to_px_or_zero() - self.line(line_index).block_length;- }+ let block_offset = CssPixels::default();let strut_baseline = Self::baseline_for_style(containing_style, containing_style.line_height());let mut should_align_strut_to_line_box_baseline = false;@@ -1104,7 +1079,7 @@ impl<'builder, 'context> LineBuilder<'builder, 'context> {let is_text_node = self.line(line_index).fragments[fragment_index].is_block_ellipsis|| self.facts(snapshot.layout_node).is_text_node();- if is_text_node && self.writing_mode == writing_mode::HORIZONTAL_TB {+ if is_text_node {let font_box_size = normal_line_height(style);let font_baseline = Self::baseline_for_style(style, font_box_size);let fragment_mut = &mut self.line_mut(line_index).fragments[fragment_index];diff --git a/Libraries/LibWeb/Rust/src/layout/node_facts.rs b/Libraries/LibWeb/Rust/src/layout/node_facts.rsindex 8e9308a08dd..97461ebe013 100644--- a/Libraries/LibWeb/Rust/src/layout/node_facts.rs+++ b/Libraries/LibWeb/Rust/src/layout/node_facts.rs@@ -443,6 +443,7 @@ pub(crate) fn node_creates_block_formatting_context(data: &NodeData,style: Option<ComputedValuesView<'_>>,parent_is_flex_or_grid_container: bool,+ parent_writing_mode: impl FnOnce() -> Option<u8>,) -> bool {if kind_is_replaced_box(data.kind.get()) {return false;@@ -460,6 +461,16 @@ pub(crate) fn node_creates_block_formatting_context({return true;}+ // https://drafts.csswg.org/css-writing-modes-4/#block-flow+ // If a box has a different 'writing-mode' value than its parent box (i.e. nearest ancestor without+ // 'display: contents'):+ // - If the box is a block container, then it establishes an independent block formatting context.+ if display.is_flow_inside()+ && !display.is_inline_outside()+ && parent_writing_mode().is_some_and(|writing_mode| writing_mode != style.writing_mode())+ {+ return true;+ }// An inline flow box that is its own children's containing block is laid out as an atomic inline, and an atomic// inline establishes an independent formatting context: the boxes inside it belong to a context it establishes// rather than to the one its line is part of.@@ -785,6 +796,13 @@ impl<'pass> NodeFacts<'pass> {self.style_payloads}+ /// The writing mode of the box's parent box, which it lays out its contents in if it has another one.+ pub(crate) fn parent_writing_mode(&self) -> Option<u8> {+ self.parent_data()+ .and_then(node_style_view)+ .map(|style| style.writing_mode())+ }+fn parent_data(&self) -> Option<&'pass NodeData> {let parent = self.data().parent.get();(!parent.is_invalid()).then(|| self.callbacks.node_data(parent))@@ -796,6 +814,7 @@ impl<'pass> NodeFacts<'pass> {.expect("styled node must publish its style container before layout"),).for_kind(self.data().kind.get())+ .in_frame(self.callbacks.frame)}pub(super) fn computed_values_view_if_styled(&self) -> Option<ComputedValuesView<'pass>> {@@ -812,7 +831,28 @@ impl<'pass> NodeFacts<'pass> {}#[inline]+ /// The natural and default sizes of the box's replaced content, as width and height in the frame of the pass.fn replaced_content(&self) -> crate::layout::FfiReplacedContentFacts {+ let facts = self.physical_replaced_content();+ if !self.callbacks.frame.is_transposed() {+ return facts;+ }+ crate::layout::FfiReplacedContentFacts {+ has_auto_content_width: facts.has_auto_content_height,+ auto_content_width: facts.auto_content_height,+ has_auto_content_height: facts.has_auto_content_width,+ auto_content_height: facts.auto_content_width,+ auto_content_aspect_ratio_numerator: facts.auto_content_aspect_ratio_denominator,+ auto_content_aspect_ratio_denominator: facts.auto_content_aspect_ratio_numerator,+ has_default_preferred_width: facts.has_default_preferred_height,+ default_preferred_width: facts.default_preferred_height,+ has_default_preferred_height: facts.has_default_preferred_width,+ default_preferred_height: facts.default_preferred_width,+ text_entry_content_is_ordinary_box: facts.text_entry_content_is_ordinary_box,+ }+ }++ fn physical_replaced_content(&self) -> crate::layout::FfiReplacedContentFacts {if self.data().kind.get() == NodeKind::SVGSVGBox {return self.svg_root_replaced_content();}@@ -1078,6 +1118,7 @@ impl<'pass> NodeFacts<'pass> {self.data(),self.computed_values_view_if_styled(),self.parent_is_flex_or_grid_container(),+ || self.parent_writing_mode(),)}diff --git a/Libraries/LibWeb/Rust/src/layout/partial_relayout.rs b/Libraries/LibWeb/Rust/src/layout/partial_relayout.rsindex a98d4930620..6ea0d2207e7 100644--- a/Libraries/LibWeb/Rust/src/layout/partial_relayout.rs+++ b/Libraries/LibWeb/Rust/src/layout/partial_relayout.rs@@ -189,7 +189,8 @@ impl LayoutNodeArena {formatting_context_type_created_by_node_data(data,style,- node_facts::node_is_flex_or_grid_container(parent_style)+ node_facts::node_is_flex_or_grid_container(parent_style),+ || parent_style.map(|style| style.writing_mode()),),Some(FormattingContextType::Block@@ -609,7 +610,8 @@ impl LayoutNodeArena {formatting_context_type_created_by_node_data(parent_data,parent_style,- node_facts::node_is_flex_or_grid_container(grandparent_style)+ node_facts::node_is_flex_or_grid_container(grandparent_style),+ || grandparent_style.map(|style| style.writing_mode()),),None | Some(FormattingContextType::Block | FormattingContextType::Flex)) {diff --git a/Libraries/LibWeb/Rust/src/layout/script_entries.rs b/Libraries/LibWeb/Rust/src/layout/script_entries.rsindex c5608979673..78f3e49a0b2 100644--- a/Libraries/LibWeb/Rust/src/layout/script_entries.rs+++ b/Libraries/LibWeb/Rust/src/layout/script_entries.rs@@ -643,12 +643,19 @@ pub extern "C" fn layout_script_anchor_resolved_size(return None;}arena.with_committed_fragment_link(slot, |link| {- let sizes = link?.abspos_layout_inputs.as_ref()?.resolved_anchor_sizes;+ let link = link?;+ let sizes = link.abspos_layout_inputs.as_ref()?.resolved_anchor_sizes;+ // NB: The sizes lie in the frame the box was laid out in, whose axes a vertical writing mode transposes.+ let (physical_width, physical_height) = if link.frame.is_transposed() {+ ((sizes.min_height, sizes.max_height), (sizes.min_width, sizes.max_width))+ } else {+ ((sizes.min_width, sizes.max_width), (sizes.min_height, sizes.max_height))+ };match property {- FfiAnchorSizedProperty::MinWidth => sizes.min_width,- FfiAnchorSizedProperty::MinHeight => sizes.min_height,- FfiAnchorSizedProperty::MaxWidth => sizes.max_width,- FfiAnchorSizedProperty::MaxHeight => sizes.max_height,+ FfiAnchorSizedProperty::MinWidth => physical_width.0,+ FfiAnchorSizedProperty::MaxWidth => physical_width.1,+ FfiAnchorSizedProperty::MinHeight => physical_height.0,+ FfiAnchorSizedProperty::MaxHeight => physical_height.1,}})});diff --git a/Libraries/LibWeb/Rust/src/layout/sizing_context.rs b/Libraries/LibWeb/Rust/src/layout/sizing_context.rsindex 6b8624e4dd2..8ec299c9ac3 100644--- a/Libraries/LibWeb/Rust/src/layout/sizing_context.rs+++ b/Libraries/LibWeb/Rust/src/layout/sizing_context.rs@@ -139,7 +139,7 @@ impl<'pass> SizingContext<'pass> {payloads}};- let style = StyleValues::new(payloads).for_kind(kind);+ let style = StyleValues::new(payloads).for_kind(kind).in_frame(self.callbacks.frame);if !style.is_absolutely_positioned() {return style;}@@ -188,7 +188,7 @@ impl<'pass> SizingContext<'pass> {let facts = self.facts(node);if !facts.is_text_node() {let style = self.style(node);- if style.writing_mode() != writing_mode::HORIZONTAL_TB {+ if geometry::Frame::of(style.writing_mode()).is_orthogonal_to(self.callbacks.frame) {return true;}if style.display().is_flex_inside()@@ -2125,7 +2125,7 @@ impl<'pass> SizingContext<'pass> {fn block_root_inline_size_follows_from_style(&self, node: Node) -> bool {let facts = self.facts(node);- self.style(node).writing_mode() == writing_mode::HORIZONTAL_TB+ !self.establishes_orthogonal_flow(node)&& !facts.has_preferred_aspect_ratio()&& !facts.has_auto_content_box_size()&& !facts.uses_button_layout()@@ -2221,12 +2221,23 @@ impl<'pass> SizingContext<'pass> {- used.border_bottom.get()}+ /// Whether `node` lays out its contents in a frame orthogonal to the one this context sizes it in.+ pub(crate) fn establishes_orthogonal_flow(&self, node: Node) -> bool {+ formatting_context::frame_established_by(&self.callbacks, node).is_orthogonal_to(self.callbacks.frame)+ }++ fn key_in_frame(&self, mut key: IntrinsicSizeCacheKey) -> IntrinsicSizeCacheKey {+ key.measured_in_transposed_frame = self.callbacks.frame.is_transposed();+ key+ }+fn intrinsic_block_cache_get(&self,node: Node,kind: IntrinsicSizeCacheKind,key: IntrinsicSizeCacheKey,) -> Option<IntrinsicBlockSizeMeasurement> {+ let key = self.key_in_frame(key);let measurement = self.callbacks.intrinsic_size_caches().intrinsic_block_size_cache_get(self.callbacks.intrinsic_size_cache_stamp(node),kind,@@ -2246,6 +2257,7 @@ impl<'pass> SizingContext<'pass> {key: IntrinsicSizeCacheKey,value: IntrinsicBlockSizeMeasurement,) {+ let key = self.key_in_frame(key);self.callbacks.intrinsic_size_caches().intrinsic_block_size_cache_put(self.callbacks.intrinsic_size_cache_stamp(node),kind,@@ -2260,6 +2272,7 @@ impl<'pass> SizingContext<'pass> {kind: IntrinsicSizeCacheKind,key: IntrinsicSizeCacheKey,) -> Option<IntrinsicInlineSizeMeasurement> {+ let key = self.key_in_frame(key);let measurement = self.callbacks.intrinsic_size_caches()@@ -2278,6 +2291,7 @@ impl<'pass> SizingContext<'pass> {key: IntrinsicSizeCacheKey,value: IntrinsicInlineSizeMeasurement,) {+ let key = self.key_in_frame(key);self.callbacks.intrinsic_size_caches().intrinsic_inline_size_measurement_cache_put(@@ -2823,6 +2837,7 @@ impl<'pass> SizingContext<'pass> {AvailableSize::Indefinite};if kind == IntrinsicSizeCacheKind::MaxContentInline+ && !self.establishes_orthogonal_flow(node)&& let Some(sizes) = intrinsic_sizing::compute_inline_sizes(self.callbacks,node,@@ -2933,6 +2948,15 @@ impl<'pass> SizingContext<'pass> {) -> CssPixels {// https://www.w3.org/TR/css-sizing-3/#min-content-block-sizelet facts = self.facts(node);+ // NB: The block axis of a box that establishes an orthogonal flow is its own inline axis.+ if self.establishes_orthogonal_flow(node) && self.has_children(node) {+ return self.measure_intrinsic_block_size(+ node,+ inline_size,+ constraints,+ IntrinsicSizeCacheKind::MinContentBlock,+ );+ }// For block containers, tables, and inline boxes, this is equivalent to the max-content block size.// NB: So it is for a non-replaced box with a preferred aspect ratio, whose block size follows from its inline size.if facts.is_block_container()@@ -2958,6 +2982,14 @@ impl<'pass> SizingContext<'pass> {inline_size: CssPixels,constraints: ContainingBlockConstraints,) -> CssPixels {+ if self.establishes_orthogonal_flow(node) && self.has_children(node) {+ return self.measure_intrinsic_block_size(+ node,+ inline_size,+ constraints,+ IntrinsicSizeCacheKind::MaxContentBlock,+ );+ }if self.facts(node).has_preferred_aspect_ratio() {// OPTIMIZATION: The automatic minimum size measures the content, so the result is cached.let kind = IntrinsicSizeCacheKind::MaxContentBlock;@@ -3445,6 +3477,102 @@ impl<'pass> SizingContext<'pass> {(basis - margins - edges).max(CssPixels::default())}+ /// The used inline size of a box that establishes an orthogonal flow and whose inline size its containing block+ /// leaves undetermined, in the box's own frame.+ pub(crate) fn orthogonal_flow_inline_size(+ &self,+ node: Node,+ available_space: AvailableSpace,+ constraints: ContainingBlockConstraints,+ ) -> CssPixels {+ let style = self.style(node);+ let initial_containing_block_size = if self.callbacks.frame.is_transposed() {+ self.callbacks.initial_containing_block_block_size+ } else {+ self.callbacks.initial_containing_block_inline_size+ };+ // https://drafts.csswg.org/css-writing-modes-4/#orthogonal-auto+ // In these cases, an additional constraint is used as a fallback in place of the available inline space for+ // calculations that require a definite available inline space-- the smallest of+ // - the size represented by the containing block’s inner max size (if that is fixed) floored by its inner min+ // size (if that is fixed)+ // - the nearest ancestor scrollport’s inner size if that is fixed, else / capped by its inner max size if+ // that is fixed, floored by its inner min size if that is fixed+ // - the initial containing block’s size+ // FIXME: Consider the nearest ancestor scrollport.+ // NB: An intrinsic size measurement of the box has no available space, but its containing block's size, which+ // the available space is when it is definite, still arrives as the percentage basis.+ let available_inline_size = match (available_space.inline_size, constraints.percentage_basis_inline_size) {+ (AvailableSize::Definite(size), _) | (_, Some(size)) => size,+ _ => {+ let containing_block = self.callbacks.in_flow_containing_block(node);+ let fixed_size = |size: &ComputedSize| {+ (size.is_length_percentage() && !size.contains_percentage())+ .then(|| size.to_px(CssPixels::default()))+ };+ let containing_block_max_size = (!containing_block.is_invalid())+ .then(|| {+ let style = self.style(containing_block);+ fixed_size(style.max_width()).map(|maximum| {+ fixed_size(style.min_width()).map_or(maximum, |minimum| maximum.max(minimum))+ })+ })+ .flatten();+ containing_block_max_size.map_or(initial_containing_block_size, |maximum| {+ maximum.min(initial_containing_block_size)+ })+ }+ };+ let inline_space = AvailableSpace {+ inline_size: AvailableSize::definite(available_inline_size),+ block_size: available_space.block_size,+ };+ let mut inline_size = if self.should_treat_inline_size_as_auto(node, inline_space) {+ // https://drafts.csswg.org/css-writing-modes-4/#auto-multicol+ // If 'column-count' and 'column-width' are both auto, use the shrink-to-fit formula+ // min(max-content, max(min-content, constraint)), where:+ // min-content: the min-content inline size of the box+ // max-content: the max-content inline size of the box+ // constraint: the inline-axis size that would stretch fit into to the smallest of+ // - the available space: the containing block’s size if that is fixed, else the size represented by the+ // containing block’s inner max size (if that is fixed) floored by its inner min size (if that is fixed)+ // - the nearest ancestor scrollport’s inner size if that is fixed, else / capped by its inner max size if+ // that is fixed, floored by its inner min size if that is fixed+ // - the initial containing block’s size+ // FIXME: Lay out the box in columns of that width where its content overflows its block size.+ let constraint = self.calculate_stretch_fit_inline_size(+ node,+ AvailableSize::definite(available_inline_size.min(initial_containing_block_size)),+ );+ let max_content = self.calculate_max_content_inline_size(node, constraints);+ if max_content <= constraint {+ max_content+ } else {+ self.calculate_min_content_inline_size(node, constraints)+ .max(constraint)+ }+ } else {+ self.calculate_inner_inline_size(node, inline_space.inline_size, style.width(), constraints)+ };+ if !self.should_treat_max_inline_size_as_none(node, inline_space.inline_size, constraints) {+ inline_size = inline_size.min(self.calculate_inner_inline_size(+ node,+ inline_space.inline_size,+ style.max_width(),+ constraints,+ ));+ }+ if !is_plain_auto(style.min_width()) {+ inline_size = inline_size.max(self.calculate_inner_inline_size(+ node,+ inline_space.inline_size,+ style.min_width(),+ constraints,+ ));+ }+ inline_size.max(CssPixels::default())+ }+pub(crate) fn calculate_inner_inline_size(&self,node: Node,diff --git a/Libraries/LibWeb/Rust/src/layout/style_values.rs b/Libraries/LibWeb/Rust/src/layout/style_values.rsindex 683434e7d6d..c72d91a30bb 100644--- a/Libraries/LibWeb/Rust/src/layout/style_values.rs+++ b/Libraries/LibWeb/Rust/src/layout/style_values.rs@@ -15,6 +15,26 @@ pub(crate) enum InsetField {Left,}+impl InsetField {+ pub(crate) fn side(self) -> geometry::Side {+ match self {+ Self::Top => geometry::Side::Top,+ Self::Right => geometry::Side::Right,+ Self::Bottom => geometry::Side::Bottom,+ Self::Left => geometry::Side::Left,+ }+ }++ pub(crate) fn from_side(side: geometry::Side) -> Self {+ match side {+ geometry::Side::Top => Self::Top,+ geometry::Side::Right => Self::Right,+ geometry::Side::Bottom => Self::Bottom,+ geometry::Side::Left => Self::Left,+ }+ }+}+/// A resolved px-or-auto inset produced by anchor resolution. It takes/// precedence over every style read and reports/// contains_anchor_function() == false.@@ -95,6 +115,7 @@ pub(crate) enum ResolvedSizeOverride {/// those functions resolved by the abspos engine. A property without one stays None and reads from style, as does a/// sizing property whose anchor-size() functions all resolve to their fallback values. Margins also carry the zero that/// auto resolves to in the axes a position area or anchor-center aligns the box in.+/// NB: The properties are those of the frame the box is laid out in, as style reads see them there./// https://drafts.csswg.org/css-anchor-position-1/#anchor-size-fn#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]pub(crate) struct ResolvedAnchorSizes {@@ -129,6 +150,8 @@ pub(crate) struct AnchorResolvedValues {margin_right: Option<ComputedLengthPercentageOrAuto>,margin_bottom: Option<ComputedLengthPercentageOrAuto>,margin_left: Option<ComputedLengthPercentageOrAuto>,+ /// The frame the box is laid out in, whose sides and axes the values are those of.+ frame: geometry::Frame,}impl std::fmt::Debug for AnchorResolvedValues {@@ -138,7 +161,7 @@ impl std::fmt::Debug for AnchorResolvedValues {}impl AnchorResolvedValues {- pub(crate) fn new(resolved: &ResolvedAnchorSizes) -> Self {+ pub(crate) fn new(resolved: &ResolvedAnchorSizes, frame: geometry::Frame) -> Self {let size = |value: Option<ResolvedSizeOverride>| {value.map(|value| match value {ResolvedSizeOverride::Length(px) => ComputedSize {@@ -165,6 +188,7 @@ impl AnchorResolvedValues {margin_right: margin(resolved.margin_right),margin_bottom: margin(resolved.margin_bottom),margin_left: margin(resolved.margin_left),+ frame,}}}@@ -204,6 +228,7 @@ pub(crate) struct StyleValues<'a> {anchor_resolved_values: Option<&'a AnchorResolvedValues>,vertical_align_override: Option<u8>,is_non_devolvable_widget: bool,+ frame: geometry::Frame,}impl<'a> std::ops::Deref for StyleValues<'a> {@@ -223,12 +248,295 @@ impl<'a> StyleValues<'a> {anchor_resolved_values: None,vertical_align_override: None,is_non_devolvable_widget: false,+ frame: geometry::Frame::PHYSICAL,}}#[inline]pub(crate) fn for_node(callbacks: &LayoutPass<'a>, node: Node) -> Self {- StyleValues::new(callbacks.style_payloads(node)).for_kind(callbacks.node_data(node).kind.get())+ StyleValues::new(callbacks.style_payloads(node))+ .for_kind(callbacks.node_data(node).kind.get())+ .in_frame(callbacks.frame)+ }++ /// The view as seen from `frame`, whose sides and axes the box's sizes and box model properties are read in.+ #[inline]+ pub(crate) fn in_frame(mut self, frame: geometry::Frame) -> Self {+ self.frame = frame;+ self+ }++ #[inline]+ fn physical(self, side: geometry::Side) -> geometry::Side {+ self.frame.physical_side(side)+ }++ /// Whether the inline-start side is the frame's right side rather than its left side.+ #[inline]+ pub(crate) fn inline_axis_is_reverse(self) -> bool {+ if self.frame.is_physical() {+ return self.style.inline_axis_is_reverse();+ }+ // NB: The left side of a frame is the line-left side, which is inline-start in ltr text.+ self.style.direction() == direction::RTL+ }++ /// Whether the block-start side is the frame's bottom side rather than its top side.+ #[inline]+ pub(crate) fn block_axis_is_reverse(self) -> bool {+ if self.frame.is_physical() {+ return self.style.block_axis_is_reverse();+ }+ false+ }++ #[inline]+ pub(crate) fn unresolved_width(self) -> &'a ComputedSize {+ if self.frame.is_transposed() {+ self.style.height()+ } else {+ self.style.width()+ }+ }++ #[inline]+ pub(crate) fn unresolved_height(self) -> &'a ComputedSize {+ if self.frame.is_transposed() {+ self.style.width()+ } else {+ self.style.height()+ }+ }++ #[inline]+ pub(crate) fn unresolved_min_width(self) -> &'a ComputedSize {+ if self.frame.is_transposed() {+ self.style.min_height()+ } else {+ self.style.min_width()+ }+ }++ #[inline]+ pub(crate) fn unresolved_min_height(self) -> &'a ComputedSize {+ if self.frame.is_transposed() {+ self.style.min_width()+ } else {+ self.style.min_height()+ }+ }++ #[inline]+ pub(crate) fn unresolved_max_width(self) -> &'a ComputedSize {+ if self.frame.is_transposed() {+ self.style.max_height()+ } else {+ self.style.max_width()+ }+ }++ #[inline]+ pub(crate) fn unresolved_max_height(self) -> &'a ComputedSize {+ if self.frame.is_transposed() {+ self.style.max_width()+ } else {+ self.style.max_height()+ }+ }++ #[inline]+ pub(crate) fn contain_intrinsic_width_has_length(self) -> bool {+ if self.frame.is_transposed() {+ self.style.contain_intrinsic_height_has_length()+ } else {+ self.style.contain_intrinsic_width_has_length()+ }+ }++ #[inline]+ pub(crate) fn contain_intrinsic_width_px(self) -> f64 {+ if self.frame.is_transposed() {+ self.style.contain_intrinsic_height_px()+ } else {+ self.style.contain_intrinsic_width_px()+ }+ }++ #[inline]+ pub(crate) fn contain_intrinsic_height_has_length(self) -> bool {+ if self.frame.is_transposed() {+ self.style.contain_intrinsic_width_has_length()+ } else {+ self.style.contain_intrinsic_height_has_length()+ }+ }++ #[inline]+ pub(crate) fn contain_intrinsic_height_px(self) -> f64 {+ if self.frame.is_transposed() {+ self.style.contain_intrinsic_width_px()+ } else {+ self.style.contain_intrinsic_height_px()+ }+ }++ /// The preferred aspect ratio as a width to height fraction in the frame.+ #[inline]+ pub(crate) fn css_preferred_aspect_ratio(self) -> (CssPixels, CssPixels) {+ let (numerator, denominator) = self.style.css_preferred_aspect_ratio();+ if self.frame.is_transposed() {+ (denominator, numerator)+ } else {+ (numerator, denominator)+ }+ }++ #[inline]+ pub(crate) fn border_spacing_horizontal(self) -> CssPixels {+ if self.frame.is_transposed() {+ self.style.border_spacing_vertical()+ } else {+ self.style.border_spacing_horizontal()+ }+ }++ #[inline]+ pub(crate) fn border_spacing_vertical(self) -> CssPixels {+ if self.frame.is_transposed() {+ self.style.border_spacing_horizontal()+ } else {+ self.style.border_spacing_vertical()+ }+ }++ fn physical_margin(self, side: geometry::Side) -> &'a ComputedLengthPercentageOrAuto {+ match side {+ geometry::Side::Top => self.style.margin_top(),+ geometry::Side::Right => self.style.margin_right(),+ geometry::Side::Bottom => self.style.margin_bottom(),+ geometry::Side::Left => self.style.margin_left(),+ }+ }++ #[inline]+ pub(crate) fn unresolved_margin_top(self) -> &'a ComputedLengthPercentageOrAuto {+ if self.frame.is_physical() {+ return self.style.margin_top();+ }+ self.physical_margin(self.physical(geometry::Side::Top))+ }++ #[inline]+ pub(crate) fn unresolved_margin_right(self) -> &'a ComputedLengthPercentageOrAuto {+ if self.frame.is_physical() {+ return self.style.margin_right();+ }+ self.physical_margin(self.physical(geometry::Side::Right))+ }++ #[inline]+ pub(crate) fn unresolved_margin_bottom(self) -> &'a ComputedLengthPercentageOrAuto {+ if self.frame.is_physical() {+ return self.style.margin_bottom();+ }+ self.physical_margin(self.physical(geometry::Side::Bottom))+ }++ #[inline]+ pub(crate) fn unresolved_margin_left(self) -> &'a ComputedLengthPercentageOrAuto {+ if self.frame.is_physical() {+ return self.style.margin_left();+ }+ self.physical_margin(self.physical(geometry::Side::Left))+ }++ fn physical_border(self, side: geometry::Side) -> (CssPixels, u8, u32) {+ match side {+ geometry::Side::Top => (+ self.style.border_top_width(),+ self.style.border_top_style(),+ self.style.border_top_color(),+ ),+ geometry::Side::Right => (+ self.style.border_right_width(),+ self.style.border_right_style(),+ self.style.border_right_color(),+ ),+ geometry::Side::Bottom => (+ self.style.border_bottom_width(),+ self.style.border_bottom_style(),+ self.style.border_bottom_color(),+ ),+ geometry::Side::Left => (+ self.style.border_left_width(),+ self.style.border_left_style(),+ self.style.border_left_color(),+ ),+ }+ }++ #[inline]+ pub(crate) fn border_top_style(self) -> u8 {+ if self.frame.is_physical() {+ return self.style.border_top_style();+ }+ self.physical_border(self.physical(geometry::Side::Top)).1+ }++ #[inline]+ pub(crate) fn border_right_style(self) -> u8 {+ if self.frame.is_physical() {+ return self.style.border_right_style();+ }+ self.physical_border(self.physical(geometry::Side::Right)).1+ }++ #[inline]+ pub(crate) fn border_bottom_style(self) -> u8 {+ if self.frame.is_physical() {+ return self.style.border_bottom_style();+ }+ self.physical_border(self.physical(geometry::Side::Bottom)).1+ }++ #[inline]+ pub(crate) fn border_left_style(self) -> u8 {+ if self.frame.is_physical() {+ return self.style.border_left_style();+ }+ self.physical_border(self.physical(geometry::Side::Left)).1+ }++ #[inline]+ pub(crate) fn border_top_color(self) -> u32 {+ if self.frame.is_physical() {+ return self.style.border_top_color();+ }+ self.physical_border(self.physical(geometry::Side::Top)).2+ }++ #[inline]+ pub(crate) fn border_right_color(self) -> u32 {+ if self.frame.is_physical() {+ return self.style.border_right_color();+ }+ self.physical_border(self.physical(geometry::Side::Right)).2+ }++ #[inline]+ pub(crate) fn border_bottom_color(self) -> u32 {+ if self.frame.is_physical() {+ return self.style.border_bottom_color();+ }+ self.physical_border(self.physical(geometry::Side::Bottom)).2+ }++ #[inline]+ pub(crate) fn border_left_color(self) -> u32 {+ if self.frame.is_physical() {+ return self.style.border_left_color();+ }+ self.physical_border(self.physical(geometry::Side::Left)).2}/// The view for a box of `kind`. A non-devolvable widget is drawn natively to fill its box, so author padding and@@ -248,68 +556,70 @@ impl<'a> StyleValues<'a> {}pub(crate) fn with_anchor_resolved_values(mut self, resolved: Option<&'a AnchorResolvedValues>) -> Self {- self.anchor_resolved_values = resolved;+ // FIXME: Map the resolved values into the frame of a box that lays out its contents in another writing mode+ // than its containing block, rather than reading its computed values there.+ self.anchor_resolved_values = resolved.filter(|resolved| resolved.frame == self.frame);self}pub(crate) fn width(self) -> &'a ComputedSize {self.anchor_resolved_values.and_then(|resolved| resolved.width.as_ref())- .unwrap_or_else(|| unresolvable_anchor_size_or(self.style.width(), auto_computed_size()))+ .unwrap_or_else(|| unresolvable_anchor_size_or(self.unresolved_width(), auto_computed_size()))}pub(crate) fn min_width(self) -> &'a ComputedSize {self.anchor_resolved_values.and_then(|resolved| resolved.min_width.as_ref())- .unwrap_or_else(|| unresolvable_anchor_size_or(self.style.min_width(), auto_computed_size()))+ .unwrap_or_else(|| unresolvable_anchor_size_or(self.unresolved_min_width(), auto_computed_size()))}pub(crate) fn max_width(self) -> &'a ComputedSize {self.anchor_resolved_values.and_then(|resolved| resolved.max_width.as_ref())- .unwrap_or_else(|| unresolvable_anchor_size_or(self.style.max_width(), none_computed_size()))+ .unwrap_or_else(|| unresolvable_anchor_size_or(self.unresolved_max_width(), none_computed_size()))}pub(crate) fn height(self) -> &'a ComputedSize {self.anchor_resolved_values.and_then(|resolved| resolved.height.as_ref())- .unwrap_or_else(|| unresolvable_anchor_size_or(self.style.height(), auto_computed_size()))+ .unwrap_or_else(|| unresolvable_anchor_size_or(self.unresolved_height(), auto_computed_size()))}pub(crate) fn min_height(self) -> &'a ComputedSize {self.anchor_resolved_values.and_then(|resolved| resolved.min_height.as_ref())- .unwrap_or_else(|| unresolvable_anchor_size_or(self.style.min_height(), auto_computed_size()))+ .unwrap_or_else(|| unresolvable_anchor_size_or(self.unresolved_min_height(), auto_computed_size()))}pub(crate) fn max_height(self) -> &'a ComputedSize {self.anchor_resolved_values.and_then(|resolved| resolved.max_height.as_ref())- .unwrap_or_else(|| unresolvable_anchor_size_or(self.style.max_height(), none_computed_size()))+ .unwrap_or_else(|| unresolvable_anchor_size_or(self.unresolved_max_height(), none_computed_size()))}pub(crate) fn margin_top(self) -> &'a ComputedLengthPercentageOrAuto {self.anchor_resolved_values.and_then(|resolved| resolved.margin_top.as_ref())- .unwrap_or_else(|| self.style.margin_top())+ .unwrap_or_else(|| self.unresolved_margin_top())}pub(crate) fn margin_right(self) -> &'a ComputedLengthPercentageOrAuto {self.anchor_resolved_values.and_then(|resolved| resolved.margin_right.as_ref())- .unwrap_or_else(|| self.style.margin_right())+ .unwrap_or_else(|| self.unresolved_margin_right())}pub(crate) fn margin_bottom(self) -> &'a ComputedLengthPercentageOrAuto {self.anchor_resolved_values.and_then(|resolved| resolved.margin_bottom.as_ref())- .unwrap_or_else(|| self.style.margin_bottom())+ .unwrap_or_else(|| self.unresolved_margin_bottom())}pub(crate) fn margin_left(self) -> &'a ComputedLengthPercentageOrAuto {self.anchor_resolved_values.and_then(|resolved| resolved.margin_left.as_ref())- .unwrap_or_else(|| self.style.margin_left())+ .unwrap_or_else(|| self.unresolved_margin_left())}fn bare_anchor_wrapper(self, field: InsetField) -> Option<&'a crate::css::style_value::StyleValueData> {@@ -331,12 +641,18 @@ impl<'a> StyleValues<'a> {}fn inset_value(self, field: InsetField) -> InsetValue<'a> {+ // NB: The abspos engine resolves anchor functions per side of the frame it lays the box out in.if let Some(resolved) = self.resolved_anchor_insets.and_then(|insets| insets.override_for(field)){return InsetValue::Resolved(resolved);}+ let field = if self.frame.is_physical() {+ field+ } else {+ InsetField::from_side(self.physical(field.side()))+ };if let Some(wrapper) = self.bare_anchor_wrapper(field) {return InsetValue::BareAnchor(wrapper);}@@ -384,36 +700,77 @@ impl<'a> StyleValues<'a> {}}+ fn physical_padding(self, side: geometry::Side) -> PaddingValue<'a> {+ self.padding_unless_non_devolvable(match side {+ geometry::Side::Top => self.style.padding_top(),+ geometry::Side::Right => self.style.padding_right(),+ geometry::Side::Bottom => self.style.padding_bottom(),+ geometry::Side::Left => self.style.padding_left(),+ })+ }+pub(crate) fn padding_top(self) -> PaddingValue<'a> {- self.padding_unless_non_devolvable(self.style.padding_top())+ if self.frame.is_physical() {+ return self.padding_unless_non_devolvable(self.style.padding_top());+ }+ self.physical_padding(self.physical(geometry::Side::Top))}pub(crate) fn padding_right(self) -> PaddingValue<'a> {- self.padding_unless_non_devolvable(self.style.padding_right())+ if self.frame.is_physical() {+ return self.padding_unless_non_devolvable(self.style.padding_right());+ }+ self.physical_padding(self.physical(geometry::Side::Right))}pub(crate) fn padding_bottom(self) -> PaddingValue<'a> {- self.padding_unless_non_devolvable(self.style.padding_bottom())+ if self.frame.is_physical() {+ return self.padding_unless_non_devolvable(self.style.padding_bottom());+ }+ self.physical_padding(self.physical(geometry::Side::Bottom))}pub(crate) fn padding_left(self) -> PaddingValue<'a> {- self.padding_unless_non_devolvable(self.style.padding_left())+ if self.frame.is_physical() {+ return self.padding_unless_non_devolvable(self.style.padding_left());+ }+ self.physical_padding(self.physical(geometry::Side::Left))}pub(crate) fn border_top_width(self) -> CssPixels {- self.border_width_unless_non_devolvable(self.style.border_top_width())+ let width = if self.frame.is_physical() {+ self.style.border_top_width()+ } else {+ self.physical_border(self.physical(geometry::Side::Top)).0+ };+ self.border_width_unless_non_devolvable(width)}pub(crate) fn border_right_width(self) -> CssPixels {- self.border_width_unless_non_devolvable(self.style.border_right_width())+ let width = if self.frame.is_physical() {+ self.style.border_right_width()+ } else {+ self.physical_border(self.physical(geometry::Side::Right)).0+ };+ self.border_width_unless_non_devolvable(width)}pub(crate) fn border_bottom_width(self) -> CssPixels {- self.border_width_unless_non_devolvable(self.style.border_bottom_width())+ let width = if self.frame.is_physical() {+ self.style.border_bottom_width()+ } else {+ self.physical_border(self.physical(geometry::Side::Bottom)).0+ };+ self.border_width_unless_non_devolvable(width)}pub(crate) fn border_left_width(self) -> CssPixels {- self.border_width_unless_non_devolvable(self.style.border_left_width())+ let width = if self.frame.is_physical() {+ self.style.border_left_width()+ } else {+ self.physical_border(self.physical(geometry::Side::Left)).0+ };+ self.border_width_unless_non_devolvable(width)}pub(crate) fn with_vertical_align_keyword(mut self, keyword: u8) -> Self {diff --git a/Libraries/LibWeb/Rust/src/layout/used_values.rs b/Libraries/LibWeb/Rust/src/layout/used_values.rsindex 81384037749..91e546e6dc1 100644--- a/Libraries/LibWeb/Rust/src/layout/used_values.rs+++ b/Libraries/LibWeb/Rust/src/layout/used_values.rs@@ -136,6 +136,13 @@ impl<T: Copy> SealableCell<T> {self.sealed.set(true);}+ /// Sets the value even where it is sealed, for moving a box's metrics between the frames of writing modes: that+ /// changes how they read, not what they are.+ #[inline]+ pub(crate) fn set_ignoring_seal(&self, value: T) {+ self.value.set(value);+ }+pub(crate) fn is_sealed(&self) -> bool {self.sealed.get()}@@ -503,6 +510,7 @@ impl UsedValues {std::mem::take(data.as_mut()),callbacks.arena(),self.content_inline_size.get(),+ callbacks.frame.writing_mode(),)),};*state = LineDataState::Finished(content.clone());@@ -542,6 +550,45 @@ impl UsedValues {self.content_offset.seal();}+ /// Moves the box's sizes, size constraints and box sides from frame `from` to frame `to`, keeping its placement.+ pub(crate) fn move_box_metrics_to_frame(&self, from: geometry::Frame, to: geometry::Frame) {+ if from == to {+ return;+ }+ let state = UsedValuesCellState::capture(self).in_frame(from, to);+ macro_rules! move_sealable {+ ($($field:ident),+) => {+ $(self.$field.set_ignoring_seal(state.$field);)++ };+ }+ move_sealable!(+ content_inline_size,+ content_block_size,+ margin_left,+ margin_right,+ margin_top,+ margin_bottom,+ border_left,+ border_right,+ border_top,+ border_bottom,+ padding_left,+ padding_right,+ padding_top,+ padding_bottom,+ inset_left,+ inset_right,+ inset_top,+ inset_bottom+ );+ self.has_definite_inline_size.set(state.has_definite_inline_size);+ self.has_definite_block_size.set(state.has_definite_block_size);+ self.inline_size_constraint.set(state.inline_size_constraint);+ self.block_size_constraint.set(state.block_size_constraint);+ self.has_first_baseline.set(state.has_first_baseline);+ self.has_last_baseline.set(state.has_last_baseline);+ }+pub(crate) fn own_metrics_are_sealed(&self) -> bool {self.content_inline_size.is_sealed()}@@ -632,6 +679,47 @@ used_values_cell_state! {}impl UsedValuesCellState {+ /// The state, with the sizes, size constraints and box sides it holds in frame `from` read in frame `to` instead.+ pub(crate) fn in_frame(mut self, from: geometry::Frame, to: geometry::Frame) -> Self {+ if from == to {+ return self;+ }+ [self.margin_top, self.margin_right, self.margin_bottom, self.margin_left] = from.sides_in(+ [self.margin_top, self.margin_right, self.margin_bottom, self.margin_left],+ to,+ );+ [self.border_top, self.border_right, self.border_bottom, self.border_left] = from.sides_in(+ [self.border_top, self.border_right, self.border_bottom, self.border_left],+ to,+ );+ [+ self.padding_top,+ self.padding_right,+ self.padding_bottom,+ self.padding_left,+ ] = from.sides_in(+ [+ self.padding_top,+ self.padding_right,+ self.padding_bottom,+ self.padding_left,+ ],+ to,+ );+ [self.inset_top, self.inset_right, self.inset_bottom, self.inset_left] = from.sides_in(+ [self.inset_top, self.inset_right, self.inset_bottom, self.inset_left],+ to,+ );+ if from.is_orthogonal_to(to) {+ std::mem::swap(&mut self.content_inline_size, &mut self.content_block_size);+ std::mem::swap(&mut self.has_definite_inline_size, &mut self.has_definite_block_size);+ std::mem::swap(&mut self.inline_size_constraint, &mut self.block_size_constraint);+ self.has_first_baseline = false;+ self.has_last_baseline = false;+ }+ self+ }+pub(crate) fn materialize_record(&self) -> UsedValues {let record = UsedValues::default();self.apply_to_record(&record);@@ -971,6 +1059,7 @@ pub(crate) fn create_used_values(&& facts.display().is_block_outside()&& facts.parent_is_unfloated_flow_container()&& containing_block_has_definite_size(Axis::Inline)+ && !formatting_context::frame_established_by(callbacks, node).is_orthogonal_to(callbacks.frame){let available = containing_block_size_for_axis(Axis::Inline);return Some(clamp_to_max_dimension_value(diff --git a/Libraries/LibWeb/Rust/src/painting/layout_tree_dump.rs b/Libraries/LibWeb/Rust/src/painting/layout_tree_dump.rsindex 11384790490..a8a2cb66468 100644--- a/Libraries/LibWeb/Rust/src/painting/layout_tree_dump.rs+++ b/Libraries/LibWeb/Rust/src/painting/layout_tree_dump.rs@@ -458,6 +458,7 @@ fn push_box_suffix(data,arena.node_style_if_live(slot),crate::layout::node_facts::node_is_flex_or_grid_container(parent_style),+ || parent_style.map(|style| style.writing_mode()),).and_then(formatting_context_name){diff --git a/Libraries/LibWeb/Rust/src/painting/paintable_build.rs b/Libraries/LibWeb/Rust/src/painting/paintable_build.rsindex 6444cef4391..575237284c3 100644--- a/Libraries/LibWeb/Rust/src/painting/paintable_build.rs+++ b/Libraries/LibWeb/Rust/src/painting/paintable_build.rs@@ -225,9 +225,24 @@ impl<'a> PaintableCommit<'a> {previous_offset: Option<used_values::FfiCssPixelPoint>,) -> ReplacedCommittedFragmentLink {let fragment = &link.fragment;- let new_content_size = used_values::FfiCssPixelSize {- width: fragment.content_inline_size,- height: fragment.content_block_size,+ let frame = link.frame;+ let new_content_size = frame.size_to_physical(fragment.content_inline_size, fragment.content_block_size);+ let new_offset: used_values::FfiCssPixelPoint = if frame.is_physical() {+ link.committed_offset+ } else {+ crate::painting::paintable_geometry::physical_content_rect_in_containing_block(+ self.arena(),+ frame,+ self.committed_containing_block(node, Some(link)),+ CssPixelRect::new(+ link.committed_offset.x,+ link.committed_offset.y,+ fragment.content_inline_size,+ fragment.content_block_size,+ ),+ )+ .location()+ .into()};let mut content_size_change = None;let mut own_paint_unchanged = false;@@ -263,10 +278,10 @@ impl<'a> PaintableCommit<'a> {own_paint_unchanged &= old_link.has_same_placement(link);(old_link.fragment.identity,- used_values::FfiCssPixelSize {- width: old_link.fragment.content_inline_size,- height: old_link.fragment.content_block_size,- },+ frame.size_to_physical(+ old_link.fragment.content_inline_size,+ old_link.fragment.content_block_size,+ ),)})});@@ -296,7 +311,7 @@ impl<'a> PaintableCommit<'a> {// A reused run root can have a new identity while its box and subtree are unchanged.let fragment_content_unchanged =(reuses_committed_subtree && root_box_unchanged) || (old_identity != 0 && !fragment_content_changed);- let offset_unchanged = previous_offset == Some(link.committed_offset);+ let offset_unchanged = previous_offset == Some(new_offset);let enclosing_inline_paint_changed = painted_geometry_lives_in_enclosing_line_root&& (enclosing_line_root_changes.inline_content_changed|| (enclosing_line_root_changes.fragment_changed@@ -350,8 +365,9 @@ impl<'a> PaintableCommit<'a> {let arena = self.arena_mut();let mut paintable_rows = arena.paintable_rows_mut();let mut data = paintable_rows.paintable_data_mut(node);+ data.set_frame(frame);data.content_size = new_content_size;- data.offset = link.committed_offset;+ data.offset = new_offset;}self.arena().set_committed_fragment_link(node,@@ -462,6 +478,15 @@ impl<'a> PaintableCommit<'a> {if !node_painting::has_lines(self.arena(), slot) {return LineDataChange::default();}+ let writing_mode = line_data.writing_mode;+ let physical_line_data;+ let line_data = if writing_mode == crate::css::css_enums::writing_mode::HORIZONTAL_TB {+ line_data+ } else {+ let content_size = self.arena().live_paintable_data(slot).content_size;+ physical_line_data = std::sync::Arc::new(line_data.in_physical_plane(writing_mode, content_size));+ &physical_line_data+ };let has_pieces = !line_data.inline_box_pieces.is_empty();let (content_changed, item_order_changed) = previous_fragmented_content.map_or((false, false), |previous| {if std::sync::Arc::ptr_eq(&previous, line_data) || *previous == **line_data {diff --git a/Libraries/LibWeb/Rust/src/painting/paintable_data.rs b/Libraries/LibWeb/Rust/src/painting/paintable_data.rsindex 4bb44dd9109..1edcf789670 100644--- a/Libraries/LibWeb/Rust/src/painting/paintable_data.rs+++ b/Libraries/LibWeb/Rust/src/painting/paintable_data.rs@@ -22,6 +22,10 @@ pub enum PaintableFlag {HasLaterBoxFragments = 1 << 6,}+/// The flag bits that hold the writing mode of the frame a box was laid out in.+const FRAME_WRITING_MODE_SHIFT: u32 = 7;+const FRAME_WRITING_MODE_MASK: u32 = 0b111;+#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]#[repr(C)]pub struct FfiPixelBox {@@ -88,6 +92,16 @@ impl PaintableData {self.flags & flag as u32 != 0}+ /// The writing mode of the frame the box was laid out in: that of its containing block.+ pub(crate) fn frame(&self) -> crate::layout::geometry::Frame {+ crate::layout::geometry::Frame::of(((self.flags >> FRAME_WRITING_MODE_SHIFT) & FRAME_WRITING_MODE_MASK) as u8)+ }++ pub(crate) fn set_frame(&mut self, frame: crate::layout::geometry::Frame) {+ self.flags = (self.flags & !(FRAME_WRITING_MODE_MASK << FRAME_WRITING_MODE_SHIFT))+ | ((u32::from(frame.writing_mode()) & FRAME_WRITING_MODE_MASK) << FRAME_WRITING_MODE_SHIFT);+ }+pub fn set_flag(&mut self, flag: PaintableFlag, value: bool) {if value {self.flags |= flag as u32;diff --git a/Libraries/LibWeb/Rust/src/painting/paintable_geometry.rs b/Libraries/LibWeb/Rust/src/painting/paintable_geometry.rsindex 3ac6cbb174b..51b00cf5104 100644--- a/Libraries/LibWeb/Rust/src/painting/paintable_geometry.rs+++ b/Libraries/LibWeb/Rust/src/painting/paintable_geometry.rs@@ -6,6 +6,7 @@use crate::css::css_pixels::CssPixels;use crate::css::css_pixels::{CssPixelPoint, CssPixelRect};+use crate::layout::geometry::Frame;use crate::layout::node_data::NodeSlotId;use crate::layout::{formatting_context, grid_formatting_context, svg_formatting_context, table_formatting_context, used_values,@@ -14,11 +15,56 @@ use crate::painting::node_painting;use crate::painting::paint_read::GeometryRead;use crate::painting::paintable_data::*;+/// The frame the box was laid out in, in which its committed fragment holds its geometry.+pub(crate) fn committed_frame(arena: &impl GeometryRead, slot: NodeSlotId) -> Frame {+ arena.paintable_data(slot).frame()+}++/// The physical rect of a box's content box within its containing block's content box, from the rect its fragment+/// link holds in the frame the box was laid out in.+pub(crate) fn physical_content_rect_in_containing_block(+ arena: &impl GeometryRead,+ frame: Frame,+ containing_block: NodeSlotId,+ rect_in_frame: CssPixelRect,+) -> CssPixelRect {+ if frame.is_physical() {+ return rect_in_frame;+ }+ let containing_block_size = if containing_block.is_invalid() || !arena.paintable_row_is_populated(containing_block)+ {+ used_values::FfiCssPixelSize::default()+ } else {+ committed_content_size(arena, containing_block)+ };+ frame.rect_to_physical(rect_in_frame, containing_block_size)+}++fn link_content_rect(link: &crate::layout::fragment_tree::FragmentLink) -> CssPixelRect {+ CssPixelRect::new(+ link.committed_offset.x,+ link.committed_offset.y,+ link.fragment.content_inline_size,+ link.fragment.content_block_size,+ )+}+pub(crate) fn committed_offset(arena: &impl GeometryRead, slot: NodeSlotId) -> used_values::FfiCssPixelPoint {let data = arena.paintable_data(slot);if node_painting::is_fragmented_inline(arena, slot) {return data.offset;}+ let frame = data.frame();+ if !frame.is_physical() {+ let containing_block = data.containing_block;+ return arena+ .with_committed_fragment_link(slot, |link| link.map(link_content_rect))+ .map_or_else(used_values::FfiCssPixelPoint::default, |rect| {+ physical_content_rect_in_containing_block(arena, frame, containing_block, rect)+ .location()+ .into()+ });+ }arena.with_committed_fragment_link(slot, |link| {link.map_or_else(used_values::FfiCssPixelPoint::default, |link| link.committed_offset)})@@ -29,64 +75,96 @@ pub(crate) fn committed_content_size(arena: &impl GeometryRead, slot: NodeSlotIdif node_painting::is_fragmented_inline(arena, slot) {return data.content_size;}+ let frame = data.frame();arena.with_committed_fragment_link(slot, |link| {link.map_or_else(used_values::FfiCssPixelSize::default, |link| {- used_values::FfiCssPixelSize {- width: link.fragment.content_inline_size,- height: link.fragment.content_block_size,- }+ frame.size_to_physical(link.fragment.content_inline_size, link.fragment.content_block_size)})})}+pub(crate) fn sides_to_physical(frame: Frame, sides: FfiPixelBox) -> FfiPixelBox {+ if frame.is_physical() {+ return sides;+ }+ let [top, right, bottom, left] =+ frame.sides_in([sides.top, sides.right, sides.bottom, sides.left], Frame::PHYSICAL);+ FfiPixelBox {+ top,+ right,+ bottom,+ left,+ }+}+pub(crate) fn committed_margin(arena: &impl GeometryRead, slot: NodeSlotId) -> FfiPixelBox {+ let frame = committed_frame(arena, slot);arena.with_committed_fragment_link(slot, |link| {- link.map_or_else(FfiPixelBox::default, |link| FfiPixelBox {- top: link.fragment.margin_top,- right: link.fragment.margin_right,- bottom: link.fragment.margin_bottom,- left: link.fragment.margin_left,+ link.map_or_else(FfiPixelBox::default, |link| {+ sides_to_physical(+ frame,+ FfiPixelBox {+ top: link.fragment.margin_top,+ right: link.fragment.margin_right,+ bottom: link.fragment.margin_bottom,+ left: link.fragment.margin_left,+ },+ )})})}-fn border_of(fragment: &crate::layout::fragment_tree::Fragment) -> FfiPixelBox {- FfiPixelBox {- top: fragment.border_top,- right: fragment.border_right,- bottom: fragment.border_bottom,- left: fragment.border_left,- }+fn border_of(fragment: &crate::layout::fragment_tree::Fragment, frame: Frame) -> FfiPixelBox {+ sides_to_physical(+ frame,+ FfiPixelBox {+ top: fragment.border_top,+ right: fragment.border_right,+ bottom: fragment.border_bottom,+ left: fragment.border_left,+ },+ )}-fn padding_of(fragment: &crate::layout::fragment_tree::Fragment) -> FfiPixelBox {- FfiPixelBox {- top: fragment.padding_top,- right: fragment.padding_right,- bottom: fragment.padding_bottom,- left: fragment.padding_left,- }+fn padding_of(fragment: &crate::layout::fragment_tree::Fragment, frame: Frame) -> FfiPixelBox {+ sides_to_physical(+ frame,+ FfiPixelBox {+ top: fragment.padding_top,+ right: fragment.padding_right,+ bottom: fragment.padding_bottom,+ left: fragment.padding_left,+ },+ )}pub(crate) fn committed_border(arena: &impl GeometryRead, slot: NodeSlotId) -> FfiPixelBox {+ let frame = committed_frame(arena, slot);arena.with_committed_fragment_link(slot, |link| {- link.map_or_else(FfiPixelBox::default, |link| border_of(&link.fragment))+ link.map_or_else(FfiPixelBox::default, |link| border_of(&link.fragment, frame))})}pub(crate) fn committed_padding(arena: &impl GeometryRead, slot: NodeSlotId) -> FfiPixelBox {+ let frame = committed_frame(arena, slot);arena.with_committed_fragment_link(slot, |link| {- link.map_or_else(FfiPixelBox::default, |link| padding_of(&link.fragment))+ link.map_or_else(FfiPixelBox::default, |link| padding_of(&link.fragment, frame))})}pub(crate) fn committed_inset(arena: &impl GeometryRead, slot: NodeSlotId) -> FfiPixelBox {+ let frame = committed_frame(arena, slot);arena.with_committed_fragment_link(slot, |link| {- link.map_or_else(FfiPixelBox::default, |link| FfiPixelBox {- top: link.inset_top,- right: link.inset_right,- bottom: link.inset_bottom,- left: link.inset_left,+ link.map_or_else(FfiPixelBox::default, |link| {+ sides_to_physical(+ frame,+ FfiPixelBox {+ top: link.inset_top,+ right: link.inset_right,+ bottom: link.inset_bottom,+ left: link.inset_left,+ },+ )})})}@@ -418,14 +496,20 @@ pub(crate) fn committed_fragment_padding(arena: &impl GeometryRead, slot: NodeSlif index == 0 {return committed_padding(arena, slot);}- with_later_box_fragment(arena, slot, index, |fragment| padding_of(&fragment.link.fragment)).unwrap_or_default()+ with_later_box_fragment(arena, slot, index, |fragment| {+ padding_of(&fragment.link.fragment, committed_frame(arena, slot))+ })+ .unwrap_or_default()}pub(crate) fn committed_fragment_border(arena: &impl GeometryRead, slot: NodeSlotId, index: usize) -> FfiPixelBox {if index == 0 {return committed_border_box_edges(arena, slot);}- with_later_box_fragment(arena, slot, index, |fragment| border_of(&fragment.link.fragment)).unwrap_or_default()+ with_later_box_fragment(arena, slot, index, |fragment| {+ border_of(&fragment.link.fragment, committed_frame(arena, slot))+ })+ .unwrap_or_default()}pub(crate) fn committed_fragment_present_edges(arena: &impl GeometryRead, slot: NodeSlotId, index: usize) -> u8 {diff --git a/Tests/LibWeb/Crash/Layout/table-in-container-of-other-writing-mode.html b/Tests/LibWeb/Crash/Layout/table-in-container-of-other-writing-mode.htmlnew file mode 100644index 00000000000..9f316f16316--- /dev/null+++ b/Tests/LibWeb/Crash/Layout/table-in-container-of-other-writing-mode.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<div style="display: grid">+ <div style="display: table; writing-mode: vertical-rl"><div style="display: table-cell; writing-mode: horizontal-tb">x</div></div>+</div>+<div style="display: flex">+ <div style="display: table; writing-mode: vertical-lr">x</div>+</div>+<div style="display: grid; writing-mode: vertical-lr">+ <div style="display: table; writing-mode: vertical-rl">x</div>+</div>+<div style="display: flex; writing-mode: vertical-rl">+ <div style="display: table; writing-mode: sideways-lr">x</div>+</div>+<div style="display: grid; writing-mode: sideways-rl">+ <div style="display: table; writing-mode: vertical-rl"><div style="display: table-cell; writing-mode: horizontal-tb">x</div></div>+</div>diff --git a/Tests/LibWeb/Layout/expected/abspos-inline-containing-block-atomic-inline-border-box.txt b/Tests/LibWeb/Layout/expected/abspos-inline-containing-block-atomic-inline-border-box.txtindex 0b58adea7e3..22b7e711d73 100644--- a/Tests/LibWeb/Layout/expected/abspos-inline-containing-block-atomic-inline-border-box.txt+++ b/Tests/LibWeb/Layout/expected/abspos-inline-containing-block-atomic-inline-border-box.txt@@ -1,4 +1,4 @@-Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline overflow: [0,0 800x808]+Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline overflow: [0,0 800x772]BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inlineBlockContainer <body> at [0,0] positioned [0+0+0 400 0+0+0] [0+0+0 400 0+0+0] [BFC] children: not-inlineBlockContainer <(anonymous)> at [0,0] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline@@ -59,87 +59,87 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenBlockContainer <span.overlay> at [50.75,321] positioned [0+0+0 10 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inlineBlockContainer <(anonymous)> at [0,364] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inlineTextNode <#text> (not painted)- BlockContainer <div.case.vertical> at [20,364] [20+0+0 360 0+0+20] [20+0+0 10 0+0+20] children: inline- InlineNode <span.host> at [375,364] [0+0+0 0 0+0+0] [0+0+0 10 0+0+0]- frag 0 from BlockContainer start: 0, length: 0, rect: [375,369 0x0] baseline: 5- BlockContainer <span.atomic.border-only> at [375,369] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline- BlockContainer <span.overlay> at [375,364] positioned [0+0+0 0 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline+ BlockContainer <div.case.vertical> at [20,364] [20+0+0 20 0+0+20] [20+0+0 10 0+0+20] [BFC] children: inline+ InlineNode <span.host> at [35,364] [0+0+0 0 0+0+0] [0+0+0 10 0+0+0]+ frag 0 from BlockContainer start: 0, length: 0, rect: [35,369 0x0] baseline: 5+ BlockContainer <span.atomic.border-only> at [35,369] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline+ BlockContainer <span.overlay> at [35,364] positioned [0+0+0 0 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inlineBlockContainer <(anonymous)> at [0,394] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inlineTextNode <#text> (not painted)- BlockContainer <div.case.vertical> at [20,394] [20+0+0 360 0+0+20] [20+0+0 30 0+0+20] children: inline- InlineNode <span.host> at [367,398] [0+0+0 8 0+0+0] [0+0+0 22 0+0+0]- frag 0 from BlockContainer start: 0, length: 0, rect: [367,403 8x12] baseline: 5- BlockContainer <span.atomic.sized-padded> at [367,403] inline-block [0+2+7 12 7+2+0] [0+2+3 8 3+2+0] [BFC] children: not-inline- BlockContainer <span.percentage> at [362,424] positioned [0+0+0 8 0+0+0] [0+0+0 22 0+0+0] [BFC] children: not-inline- BlockContainer <(anonymous)> at [0,444] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline- TextNode <#text> (not painted)- BlockContainer <div.case.vertical> at [20,444] [20+0+0 360 0+0+20] [20+0+0 10 0+0+20] children: inline- InlineNode <span.host.large-line-height> at [375,444] [0+0+0 0 0+0+0] [0+0+0 10 0+0+0]- frag 0 from BlockContainer start: 0, length: 0, rect: [375,449 0x0] baseline: 5- BlockContainer <span.atomic.border-only> at [375,449] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline- BlockContainer <span.overlay> at [375,444] positioned [0+0+0 0 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline- BlockContainer <(anonymous)> at [0,474] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline- TextNode <#text> (not painted)- BlockContainer <div.case.vertical-lr> at [20,474] [20+0+0 360 0+0+20] [20+0+0 30 0+0+20] children: inline- InlineNode <span.host> at [367,478] [0+0+0 8 0+0+0] [0+0+0 22 0+0+0]- frag 0 from BlockContainer start: 0, length: 0, rect: [367,483 8x12] baseline: 5- BlockContainer <span.atomic.sized-padded> at [367,483] inline-block [0+2+7 12 7+2+0] [0+2+3 8 3+2+0] [BFC] children: not-inline- BlockContainer <span.overlay> at [367,478] positioned [0+0+0 8 0+0+0] [0+0+0 22 0+0+0] [BFC] children: not-inline- BlockContainer <(anonymous)> at [0,524] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline- TextNode <#text> (not painted)- BlockContainer <div.case.vertical> at [20,524] [20+0+0 360 0+0+20] [20+0+0 10 0+0+20] children: inline- InlineNode <span.host> at [381,524] [0+0+0 0 0+0+0] [0+0+0 10 0+0+0]- frag 0 from BlockContainer start: 0, length: 0, rect: [381,529 0x0] baseline: 10- BlockContainer <span.atomic.baseline.border-only> at [381,529] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline- BlockContainer <span.overlay> at [381,524] positioned [0+0+0 0 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline- BlockContainer <(anonymous)> at [0,554] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline- TextNode <#text> (not painted)- BlockContainer <div.case.vertical> at [20,554] [20+0+0 360 0+0+20] [20+0+0 10 0+0+20] children: inline- InlineNode <span.host> at [380,554] [0+0+0 0 0+0+0] [0+0+0 10 0+0+0]- frag 0 from BlockContainer start: 0, length: 0, rect: [380,559 0x0] baseline: 10.375- BlockContainer <span.atomic.middle.border-only> at [380,559] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline- BlockContainer <span.overlay> at [380,554] positioned [0+0+0 0 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline- BlockContainer <(anonymous)> at [0,584] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline- TextNode <#text> (not painted)- BlockContainer <div.case> at [20,584] [20+0+0 360 0+0+20] [20+0+0 20 0+0+20] children: inline- InlineNode <span.host> at [20,594] [0+0+0 10 0+0+0] [0+0+0 0 0+0+0]- frag 0 from BlockContainer start: 0, length: 0, rect: [25,594 0x0] baseline: 10.375- BlockContainer <span.atomic.middle.border-only> at [25,594] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline- BlockContainer <span.overlay> at [20,594] positioned [0+0+0 10 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline- BlockContainer <(anonymous)> at [0,624] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline- TextNode <#text> (not painted)- BlockContainer <div.case> at [20,624] [20+0+0 360 0+0+20] [20+0+0 40 0+0+20] children: inline- InlineNode <span.zero-host> at [20,624] [0+0+0 68.5 0+0+0] [0+0+0 40 0+0+0]- frag 0 from TextNode start: 0, length: 5, rect: [20,624 45.046875x20] baseline: 16+ BlockContainer <div.case.vertical> at [20,394] [20+0+0 30 0+0+20] [20+0+0 18 0+0+20] [BFC] children: inline+ InlineNode <span.host> at [29,394] [0+0+0 12 0+0+0] [0+0+0 18 0+0+0]+ frag 0 from BlockContainer start: 0, length: 0, rect: [29,399 12x8] baseline: 9+ BlockContainer <span.atomic.sized-padded> at [29,399] inline-block [0+2+7 12 7+2+0] [0+2+3 8 3+2+0] [BFC] children: not-inline+ BlockContainer <span.percentage> at [38,412] positioned [0+0+0 12 0+0+0] [0+0+0 18 0+0+0] [BFC] children: not-inline+ BlockContainer <(anonymous)> at [0,432] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline+ TextNode <#text> (not painted)+ BlockContainer <div.case.vertical> at [20,432] [20+0+0 20 0+0+20] [20+0+0 10 0+0+20] [BFC] children: inline+ InlineNode <span.host.large-line-height> at [35,432] [0+0+0 0 0+0+0] [0+0+0 10 0+0+0]+ frag 0 from BlockContainer start: 0, length: 0, rect: [35,437 0x0] baseline: 5+ BlockContainer <span.atomic.border-only> at [35,437] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline+ BlockContainer <span.overlay> at [35,432] positioned [0+0+0 0 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline+ BlockContainer <(anonymous)> at [0,462] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline+ TextNode <#text> (not painted)+ BlockContainer <div.case.vertical-lr> at [20,462] [20+0+0 30 0+0+20] [20+0+0 18 0+0+20] [BFC] children: inline+ InlineNode <span.host> at [29,462] [0+0+0 12 0+0+0] [0+0+0 18 0+0+0]+ frag 0 from BlockContainer start: 0, length: 0, rect: [29,467 12x8] baseline: 9+ BlockContainer <span.atomic.sized-padded> at [29,467] inline-block [0+2+7 12 7+2+0] [0+2+3 8 3+2+0] [BFC] children: not-inline+ BlockContainer <span.overlay> at [29,462] positioned [0+0+0 12 0+0+0] [0+0+0 18 0+0+0] [BFC] children: not-inline+ BlockContainer <(anonymous)> at [0,500] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline+ TextNode <#text> (not painted)+ BlockContainer <div.case.vertical> at [20,500] [20+0+0 20 0+0+20] [20+0+0 10 0+0+20] [BFC] children: inline+ InlineNode <span.host> at [29,500] [0+0+0 0 0+0+0] [0+0+0 10 0+0+0]+ frag 0 from BlockContainer start: 0, length: 0, rect: [29,505 0x0] baseline: 10+ BlockContainer <span.atomic.baseline.border-only> at [29,505] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline+ BlockContainer <span.overlay> at [29,500] positioned [0+0+0 0 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline+ BlockContainer <(anonymous)> at [0,530] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline+ TextNode <#text> (not painted)+ BlockContainer <div.case.vertical> at [20,530] [20+0+0 20 0+0+20] [20+0+0 10 0+0+20] [BFC] children: inline+ InlineNode <span.host> at [30,530] [0+0+0 0 0+0+0] [0+0+0 10 0+0+0]+ frag 0 from BlockContainer start: 0, length: 0, rect: [30,535 0x0] baseline: 10.375+ BlockContainer <span.atomic.middle.border-only> at [30,535] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline+ BlockContainer <span.overlay> at [30,530] positioned [0+0+0 0 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline+ BlockContainer <(anonymous)> at [0,560] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline+ TextNode <#text> (not painted)+ BlockContainer <div.case> at [20,560] [20+0+0 360 0+0+20] [20+0+0 20 0+0+20] children: inline+ InlineNode <span.host> at [20,570] [0+0+0 10 0+0+0] [0+0+0 0 0+0+0]+ frag 0 from BlockContainer start: 0, length: 0, rect: [25,570 0x0] baseline: 10.375+ BlockContainer <span.atomic.middle.border-only> at [25,570] inline-block [0+5+0 0 0+5+0] [0+5+0 0 0+5+0] [BFC] children: not-inline+ BlockContainer <span.overlay> at [20,570] positioned [0+0+0 10 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline+ BlockContainer <(anonymous)> at [0,600] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline+ TextNode <#text> (not painted)+ BlockContainer <div.case> at [20,600] [20+0+0 360 0+0+20] [20+0+0 40 0+0+20] children: inline+ InlineNode <span.zero-host> at [20,600] [0+0+0 68.5 0+0+0] [0+0+0 40 0+0+0]+ frag 0 from TextNode start: 0, length: 5, rect: [20,600 45.046875x20] baseline: 16"first"- frag 0 from TextNode start: 0, length: 6, rect: [20,644 68.5x20] baseline: 16+ frag 0 from TextNode start: 0, length: 6, rect: [20,620 68.5x20] baseline: 16"second"TextNode <#text> (not painted)BreakNode <br> (not painted)TextNode <#text> (not painted)- BlockContainer <span.overlay> at [20,624] positioned [0+0+0 68.5 0+0+0] [0+0+0 40 0+0+0] [BFC] children: not-inline- BlockContainer <(anonymous)> at [0,684] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline- TextNode <#text> (not painted)- BlockContainer <div.case.sideways> at [20,684] [20+0+0 360 0+0+20] [20+0+0 24 0+0+20] children: inline- InlineNode <span.host> at [361,696] [0+0+0 8 0+0+0] [0+0+0 16 0+0+0]- frag 0 from BlockContainer start: 0, length: 0, rect: [361,701 8x0] baseline: 5- BlockContainer <span.atomic.asymmetric> at [361,701] inline-block [0+8+9 0 1+6+0] [0+2+3 8 7+4+0] [BFC] children: not-inline- BlockContainer <span.overlay> at [361,696] positioned [0+0+0 8 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline- BlockContainer <(anonymous)> at [0,728] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline- TextNode <#text> (not painted)- BlockContainer <div.case.sideways-lr> at [20,728] [20+0+0 360 0+0+20] [20+0+0 24 0+0+20] children: inline- InlineNode <span.host> at [361,740] [0+0+0 8 0+0+0] [0+0+0 16 0+0+0]- frag 0 from BlockContainer start: 0, length: 0, rect: [361,745 8x0] baseline: 5- BlockContainer <span.atomic.asymmetric> at [361,745] inline-block [0+8+9 0 1+6+0] [0+2+3 8 7+4+0] [BFC] children: not-inline- BlockContainer <span.overlay> at [361,740] positioned [0+0+0 8 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline- BlockContainer <(anonymous)> at [0,772] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline- TextNode <#text> (not painted)- BlockContainer <div.case.sideways> at [20,772] [20+0+0 360 0+0+20] [20+0+0 24 0+0+20] children: inline- InlineNode <span.host.large-line-height> at [361,784] [0+0+0 8 0+0+0] [0+0+0 16 0+0+0]- frag 0 from BlockContainer start: 0, length: 0, rect: [361,789 8x0] baseline: 5- BlockContainer <span.atomic.asymmetric> at [361,789] inline-block [0+8+9 0 1+6+0] [0+2+3 8 7+4+0] [BFC] children: not-inline- BlockContainer <span.overlay> at [361,784] positioned [0+0+0 8 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline- BlockContainer <(anonymous)> at [0,816] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline+ BlockContainer <span.overlay> at [20,600] positioned [0+0+0 68.5 0+0+0] [0+0+0 40 0+0+0] [BFC] children: not-inline+ BlockContainer <(anonymous)> at [0,660] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline+ TextNode <#text> (not painted)+ BlockContainer <div.case.sideways> at [20,660] [20+0+0 24 0+0+20] [20+0+0 24 0+0+20] [BFC] children: inline+ InlineNode <span.host> at [37,660] [0+0+0 0 0+0+0] [0+0+0 24 0+0+0]+ frag 0 from BlockContainer start: 0, length: 0, rect: [37,665 0x8] baseline: 7+ BlockContainer <span.atomic.asymmetric> at [37,665] inline-block [0+8+9 0 1+6+0] [0+2+3 8 7+4+0] [BFC] children: not-inline+ BlockContainer <span.overlay> at [37,660] positioned [0+0+0 0 0+0+0] [0+0+0 24 0+0+0] [BFC] children: not-inline+ BlockContainer <(anonymous)> at [0,704] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline+ TextNode <#text> (not painted)+ BlockContainer <div.case.sideways-lr> at [20,704] [20+0+0 24 0+0+20] [20+0+0 24 0+0+20] [BFC] children: inline+ InlineNode <span.host> at [37,704] [0+0+0 0 0+0+0] [0+0+0 24 0+0+0]+ frag 0 from BlockContainer start: 0, length: 0, rect: [37,709 0x8] baseline: 17+ BlockContainer <span.atomic.asymmetric> at [37,709] inline-block [0+8+9 0 1+6+0] [0+2+3 8 7+4+0] [BFC] children: not-inline+ BlockContainer <span.overlay> at [37,704] positioned [0+0+0 0 0+0+0] [0+0+0 24 0+0+0] [BFC] children: not-inline+ BlockContainer <(anonymous)> at [0,748] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline+ TextNode <#text> (not painted)+ BlockContainer <div.case.sideways> at [20,748] [20+0+0 24 0+0+20] [20+0+0 24 0+0+20] [BFC] children: inline+ InlineNode <span.host.large-line-height> at [37,748] [0+0+0 0 0+0+0] [0+0+0 24 0+0+0]+ frag 0 from BlockContainer start: 0, length: 0, rect: [37,753 0x8] baseline: 7+ BlockContainer <span.atomic.asymmetric> at [37,753] inline-block [0+8+9 0 1+6+0] [0+2+3 8 7+4+0] [BFC] children: not-inline+ BlockContainer <span.overlay> at [37,748] positioned [0+0+0 0 0+0+0] [0+0+0 24 0+0+0] [BFC] children: not-inline+ BlockContainer <(anonymous)> at [0,792] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inlineTextNode <#text> (not painted)SC for Viewport<#document> [0,0 800x600] (z-index: auto)diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/block-in-inline-vertical-writing-mode.txt b/Tests/LibWeb/Layout/expected/block-and-inline/block-in-inline-vertical-writing-mode.txtindex 26dc10b4ca5..cd7f65f25fd 100644--- a/Tests/LibWeb/Layout/expected/block-and-inline/block-in-inline-vertical-writing-mode.txt+++ b/Tests/LibWeb/Layout/expected/block-and-inline/block-in-inline-vertical-writing-mode.txt@@ -1,16 +1,16 @@Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inlineBlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 200 0+0+0] [BFC] children: not-inlineBlockContainer <body> at [0,0] [0+0+0 800 0+0+0] [0+0+0 200 0+0+0] children: not-inline- BlockContainer <div> at [0,0] [0+0+0 300 0+0+500] [0+0+0 200 0+0+0] children: inline- InlineNode <span> at [280,0] [0+0+0 60 0+0+0] [0+0+0 10 0+0+0]- frag 0 from TextNode start: 0, length: 1, rect: [280,0 20x10] baseline: 13+ BlockContainer <div> at [0,0] [0+0+0 300 0+0+500] [0+0+0 200 0+0+0] [BFC] children: inline+ InlineNode <span> at [215,0] [0+0+0 80 0+0+0] [0+0+0 10 0+0+0]+ frag 0 from TextNode start: 0, length: 1, rect: [285,0 10x10] baseline: 8"a"- frag 0 from BlockContainer start: 0, length: 0, rect: [0,20 50x20] baseline: 0- frag 0 from TextNode start: 0, length: 1, rect: [320,0 20x10] baseline: 13+ frag 0 from BlockContainer start: 0, length: 0, rect: [230,0 50x20] baseline: 0+ frag 0 from TextNode start: 0, length: 1, rect: [215,0 10x10] baseline: 8"c"TextNode <#text> (not painted)- BlockContainer <div> at [0,20] [0+0+0 50 0+0+250] [0+0+0 20 0+0+0] children: inline- frag 0 from TextNode start: 0, length: 1, rect: [30,20 20x10] baseline: 13+ BlockContainer <div> at [230,0] [0+0+0 50 0+0+0] [0+0+0 20 0+0+180] children: inline+ frag 0 from TextNode start: 0, length: 1, rect: [265,0 10x10] baseline: 8"b"TextNode <#text> (not painted)TextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/expected/form-controls-and-canvas-resized-after-first-layout.txt b/Tests/LibWeb/Layout/expected/form-controls-and-canvas-resized-after-first-layout.txtindex dc54b98b7ab..8d91ece46c1 100644--- a/Tests/LibWeb/Layout/expected/form-controls-and-canvas-resized-after-first-layout.txt+++ b/Tests/LibWeb/Layout/expected/form-controls-and-canvas-resized-after-first-layout.txt@@ -25,8 +25,8 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenTextNode <#text> (not painted)TextNode <#text> (not painted)TextAreaBox <textarea#vertical-textarea> at [512.75,11] inline-block [0+1+2 65 2+1+0] [0+1+2 77.96875 2+1+0] [BFC] children: not-inline- Box <div> at [512.75,11] flex-container(row) [0+0+0 65 0+0+0] [0+0+0 0 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [512.75,11] flex-item [0+0+0 65 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline+ Box <div> at [564.75,11] flex-container(row) [0+0+0 13 0+0+0] [0+0+0 77.96875 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [564.75,11] flex-item [0+0+0 13 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [564.75,11 13x0] baseline: 10.390625TextNode <#text> (not painted)TextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/expected/grid/grid-item-block-fit-content-uses-content-width.txt b/Tests/LibWeb/Layout/expected/grid/grid-item-block-fit-content-uses-content-width.txtindex ab20bf2253a..edc16d32cf9 100644--- a/Tests/LibWeb/Layout/expected/grid/grid-item-block-fit-content-uses-content-width.txt+++ b/Tests/LibWeb/Layout/expected/grid/grid-item-block-fit-content-uses-content-width.txt@@ -13,7 +13,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenBox <div.grid> at [8,48] [0+0+0 784 0+0+0] [0+0+0 40 0+0+0] [GFC] children: not-inlineBlockContainer <div> at [8,48] [0+0+0 100 0+0+0] [0+0+0 0 0+0+40] [BFC] children: not-inlineBlockContainer <div.item.orthogonal> at [118,58] [0+0+10 80 10+0+0] [0+0+10 20 10+0+0] [BFC] children: not-inline- BlockContainer <div.horizontal> at [118,58] [0+0+0 80 0+0+0] [0+0+0 20 0+0+0] children: inline+ BlockContainer <div.horizontal> at [118,58] [0+0+0 80 0+0+0] [0+0+0 20 0+0+0] [BFC] children: inlinefrag 0 from BlockContainer start: 0, length: 0, rect: [118,58 45x10] baseline: 10frag 1 from BlockContainer start: 0, length: 0, rect: [118,68 45x10] baseline: 10BlockContainer <span> at [118,58] inline-block [0+0+0 45 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inlinediff --git a/Tests/LibWeb/Layout/expected/inline-block-baseline-vertical-writing-mode.txt b/Tests/LibWeb/Layout/expected/inline-block-baseline-vertical-writing-mode.txtindex 7b1d667fb25..e3df5bec034 100644--- a/Tests/LibWeb/Layout/expected/inline-block-baseline-vertical-writing-mode.txt+++ b/Tests/LibWeb/Layout/expected/inline-block-baseline-vertical-writing-mode.txt@@ -1,15 +1,15 @@Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 92.28125 0+0+0] [BFC] children: not-inline- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 76.28125 0+0+8] children: inline- frag 0 from TextNode start: 0, length: 7, rect: [8,51 60.53125x16] baseline: 12.796875+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 112.890625 0+0+0] [BFC] children: not-inline+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 96.890625 0+0+8] children: inline+ frag 0 from TextNode start: 0, length: 7, rect: [8,54 60.53125x16] baseline: 12.796875"before "- frag 1 from BlockContainer start: 0, length: 0, rect: [68.53125,8 100x59.640625] baseline: 56.4375- frag 2 from TextNode start: 0, length: 6, rect: [168.53125,51 48.1875x16] baseline: 12.796875+ frag 1 from BlockContainer start: 0, length: 0, rect: [68.53125,8 100x59.640625] baseline: 59.640625+ frag 2 from TextNode start: 0, length: 6, rect: [168.53125,54 48.1875x16] baseline: 12.796875" after"- frag 3 from TextNode start: 1, length: 7, rect: [8,67 60.53125x16] baseline: 12.796875+ frag 3 from TextNode start: 1, length: 7, rect: [8,88 60.53125x16] baseline: 12.796875"before "- frag 4 from BlockContainer start: 0, length: 0, rect: [68.53125,70 100x10] baseline: 10- frag 5 from TextNode start: 0, length: 6, rect: [168.53125,67 48.1875x16] baseline: 12.796875+ frag 4 from BlockContainer start: 0, length: 0, rect: [68.53125,70 100x30] baseline: 30+ frag 5 from TextNode start: 0, length: 6, rect: [168.53125,88 48.1875x16] baseline: 12.796875" after"TextNode <#text> (not painted)BlockContainer <div> at [68.53125,8] inline-block [0+0+0 100 0+0+0] [0+0+0 59.640625 0+0+0] [BFC] children: inline@@ -19,10 +19,10 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenTextNode <#text> (not painted)BreakNode <br> (not painted)TextNode <#text> (not painted)- BlockContainer <div> at [68.53125,70] inline-block [0+0+0 100 0+0+0] [0+0+0 10 0+0+0] [BFC] children: inline- frag 0 from BlockContainer start: 0, length: 0, rect: [138.53125,70 30x10] baseline: 30- BlockContainer <span> at [138.53125,70] inline-block [0+0+0 10 0+0+0] [0+0+0 30 0+0+0] [BFC] children: not-inline+ BlockContainer <div> at [68.53125,70] inline-block [0+0+0 100 0+0+0] [0+0+0 30 0+0+0] [BFC] children: inline+ frag 0 from BlockContainer start: 0, length: 0, rect: [156.53125,70 10x30] baseline: 10+ BlockContainer <span> at [156.53125,70] inline-block [0+0+0 10 0+0+0] [0+0+0 30 0+0+0] [BFC] children: not-inlineTextNode <#text> (not painted)SC for Viewport<#document> [0,0 800x600] (z-index: auto)- SC for BlockContainer<HTML> [0,0 800x92.28125] (z-index: auto)+ SC for BlockContainer<HTML> [0,0 800x112.890625] (z-index: auto)diff --git a/Tests/LibWeb/Layout/expected/textarea-box-writing-modes.txt b/Tests/LibWeb/Layout/expected/textarea-box-writing-modes.txtindex 478c878af8d..7177ecd25c1 100644--- a/Tests/LibWeb/Layout/expected/textarea-box-writing-modes.txt+++ b/Tests/LibWeb/Layout/expected/textarea-box-writing-modes.txt@@ -21,8 +21,8 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenTextNode <#text> (not painted)TextNode <#text> (not painted)TextAreaBox <textarea> at [180.9375,11] inline-block [0+1+2 260 2+1+0] [0+1+2 155.9375 2+1+0] [BFC] children: not-inline- Box <div> at [180.9375,11] flex-container(row) [0+0+0 260 0+0+0] [0+0+0 0 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [180.9375,11] flex-item [0+0+0 260 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline+ Box <div> at [427.9375,11] flex-container(row) [0+0+0 13 0+0+0] [0+0+0 155.9375 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [427.9375,11] flex-item [0+0+0 13 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [427.9375,11 13x0] baseline: 10.390625TextNode <#text> (not painted)TextNode <#text> (not painted)@@ -33,8 +33,8 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenTextNode <#text> (not painted)TextNode <#text> (not painted)TextAreaBox <textarea> at [507.921875,127] inline-block [0+1+2 26 2+1+0] [0+1+2 38.984375 2+1+0] [BFC] children: not-inline- Box <div> at [507.921875,127] flex-container(row) [0+0+0 26 0+0+0] [0+0+0 0 0+0+0] [FFC] children: not-inline- BlockContainer <div> at [507.921875,127] flex-item [0+0+0 26 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline+ Box <div> at [520.921875,127] flex-container(row) [0+0+0 13 0+0+0] [0+0+0 38.984375 0+0+0] [FFC] children: not-inline+ BlockContainer <div> at [520.921875,127] flex-item [0+0+0 13 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inlinefrag 0 from TextNode start: 0, length: 0, rect: [520.921875,127 13x0] baseline: 10.390625TextNode <#text> (not painted)TextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/expected/vertical-align-line-relative-subtrees.txt b/Tests/LibWeb/Layout/expected/vertical-align-line-relative-subtrees.txtindex e74c9b12c02..d3e89a93b65 100644--- a/Tests/LibWeb/Layout/expected/vertical-align-line-relative-subtrees.txt+++ b/Tests/LibWeb/Layout/expected/vertical-align-line-relative-subtrees.txt@@ -34,13 +34,13 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] childrenBlockContainer <span.tall> at [20,108] inline-block [0+0+0 20 0+0+0] [0+0+0 60 0+0+0] [BFC] children: not-inlineBlockContainer <(anonymous)> at [0,172] [0+0+0 800 0+0+0] [0+0+0 0 0+0+0] children: inlineTextNode <#text> (not painted)- BlockContainer <div.vertical> at [0,172] [0+0+0 800 0+0+0] [0+0+0 200 0+0+0] children: inline- InlineNode <span.middle> at [758,172] [0+0+0 40 0+0+0] [0+0+0 30 0+0+0]- frag 0 from TextNode start: 0, length: 1, rect: [758,172 20x20] baseline: 16+ BlockContainer <div.vertical> at [0,172] [0+0+0 22 0+0+0] [0+0+0 200 0+0+0] [BFC] children: inline+ InlineNode <span.middle> at [2,172] [0+0+0 20 0+0+0] [0+0+0 60 0+0+0]+ frag 0 from TextNode start: 0, length: 1, rect: [2,172 20x20] baseline: 16"x"- frag 1 from BlockContainer start: 0, length: 0, rect: [760,192 40x10] baseline: 0+ frag 1 from BlockContainer start: 0, length: 0, rect: [12,192 10x40] baseline: 0TextNode <#text> (not painted)- BlockContainer <span.vertical-top> at [760,192] inline-block [0+0+0 10 0+0+0] [0+0+0 40 0+0+0] [BFC] children: not-inline+ BlockContainer <span.vertical-top> at [12,192] inline-block [0+0+0 10 0+0+0] [0+0+0 40 0+0+0] [BFC] children: not-inlineBlockContainer <(anonymous)> at [0,372] [0+0+0 800 0+0+0] [0+0+0 0 0+0+0] children: inlineTextNode <#text> (not painted)diff --git a/Tests/LibWeb/Layout/expected/writing-modes-vertical-rl.txt b/Tests/LibWeb/Layout/expected/writing-modes-vertical-rl.txtindex 428d21de179..ddc15099cb8 100644--- a/Tests/LibWeb/Layout/expected/writing-modes-vertical-rl.txt+++ b/Tests/LibWeb/Layout/expected/writing-modes-vertical-rl.txt@@ -1,9 +1,9 @@Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 186.265625 0+0+0] [BFC] children: not-inline- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 170.265625 0+0+8] children: inline+ BlockContainer <html> at [768,0] [0+0+0 32 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline+ BlockContainer <body> at [776,8] [8+0+0 16 0+0+8] [8+0+0 584 0+0+8] children: inlinefrag 0 from TextNode start: 0, length: 24, rect: [776,8 16x170.265625] baseline: 12.796875"Well, hello friends! :-)"TextNode <#text> (not painted)SC for Viewport<#document> [0,0 800x600] (z-index: auto)- SC for BlockContainer<HTML> [0,0 800x186.265625] (z-index: auto)+ SC for BlockContainer<HTML> [768,0 32x600] (z-index: auto)diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xhtnew file mode 100644index 00000000000..2c269fa0965--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht@@ -0,0 +1,30 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta content="image" name="flags" />++ <style type="text/css"><![CDATA[+ img#green-square+ {+ left: 80px;+ position: relative;+ top: 160px;+ }+ ]]></style>+ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div><img id="green-square" src="support/swatch-green.png" width="80" height="80" alt="Image download support must be enabled" /></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-007-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-007-ref.xhtnew file mode 100644index 00000000000..9fe444cfc64--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-007-ref.xht@@ -0,0 +1,38 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta content="image" name="flags" />++ <style type="text/css"><![CDATA[+ div+ {+ margin-left: 0.5em;+ }++ img+ {+ vertical-align: top;+ }++ img#green-square+ {+ position: relative;+ left: 96px; /* 80px + p's margin-left (1em) */+ top: 160px;+ }+ ]]></style>+ </head>++ <body>++ <div><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /><img id="green-square" src="support/swatch-green.png" width="80" height="80" alt="Image download support must be enabled" /></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-013-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-013-ref.xhtnew file mode 100644index 00000000000..299aff3fae9--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-013-ref.xht@@ -0,0 +1,38 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta content="image" name="flags" />++ <style type="text/css"><![CDATA[+ div+ {+ margin-left: 0.5em;+ }++ img+ {+ vertical-align: top;+ }++ img#green-square+ {+ position: relative;+ left: 96px; /* 80px + p's margin-left (1em) */+ top: 80px;+ }+ ]]></style>+ </head>++ <body>++ <div><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /><img id="green-square" src="support/swatch-green.png" width="80" height="80" alt="Image download support must be enabled" /></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-155-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-155-ref.xhtnew file mode 100644index 00000000000..427963efdf8--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-155-ref.xht@@ -0,0 +1,38 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta content="image" name="flags" />++ <style type="text/css"><![CDATA[+ div+ {+ margin-left: 0.5em;+ }++ img+ {+ vertical-align: top;+ }++ img#green-square+ {+ position: relative;+ left: 176px;+ top: 160px;+ }+ ]]></style>+ </head>++ <body>++ <div><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /><img id="green-square" src="support/swatch-green.png" width="80" height="80" alt="Image download support must be enabled" /></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/block-flow-direction-002-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/block-flow-direction-002-ref.xhtnew file mode 100644index 00000000000..d8f2ff94a8b--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/block-flow-direction-002-ref.xht@@ -0,0 +1,37 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Reftest Reference</title>+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2014-11-26 and 2016-11-14 -->++ <!-- This reference file is the right-aligned version of+ block-flow-direction-001-ref.xht+ -->++ <meta name="flags" content="ahem" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ direction: rtl;+ }++ div+ {+ background-color: blue;+ color: yellow;+ font: 20px/1 Ahem;+ padding: 1em;+ width: 19em;+ }+ ]]></style>++ </head>++ <body>++ <div>P1ro A1ro S1ro S1ro P P A A S S P P A A S S P4ro A4ro S4ro S4ro P A A S S P A A S S P A A S7ro S7ro</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/block-flow-direction-025-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/block-flow-direction-025-ref.xhtnew file mode 100644index 00000000000..27dec99d2bf--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/block-flow-direction-025-ref.xht@@ -0,0 +1,38 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta content="image" name="flags" />++ <style type="text/css"><![CDATA[+ p+ {+ margin: 0px;+ }++ img+ {+ float: right;+ padding-left: 16px;+ }+ ]]></style>+ </head>++ <body>++ <p><img src="support/swatch-blue.png" width="100" height="100" alt="Image download support must be enabled" /><img src="support/block-flow-direction-025-exp-res.png" width="359" height="36" alt="Image download support must be enabled" /></p>++ <!--+ The image says:+ Test passes if there is a blue square in the+ <strong>upper-right corner</strong> of the page.+ -->++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/block-flow-direction-066-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/block-flow-direction-066-ref.xhtnew file mode 100644index 00000000000..bb5c6dc95cd--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/block-flow-direction-066-ref.xht@@ -0,0 +1,44 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta content="image" name="flags" />++ <style type="text/css"><![CDATA[+ p+ {+ bottom: 8px;+ margin-bottom: 0px;+ position: absolute;+ }++ img+ {+ vertical-align: bottom;+ }++ img + img+ {+ padding-left: 16px;+ }+ ]]></style>+ </head>++ <body>++ <p><img src="support/swatch-blue.png" width="100" height="100" alt="Image download support must be enabled" /><img src="support/block-flow-direction-066-exp-res.png" width="358" height="36" alt="Image download support must be enabled" /></p>++ <!--+ The image says:+ Test passes if there is a blue square in the+ <strong>bottom-left corner</strong> of the page.+ -->++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/block-flow-direction-vrl-026-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/block-flow-direction-vrl-026-ref.xhtnew file mode 100644index 00000000000..9387181c015--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/block-flow-direction-vrl-026-ref.xht@@ -0,0 +1,34 @@+<?xml version="1.0" encoding="UTF-8"?>+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Reftest Reference</title>+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <meta name="flags" content="ahem" />+ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css">+ div+ {+ background: pink;+ border: 1px solid black;+ color: blue;+ font: 20px/1 "Ahem";+ margin: 10px;+ width: 3em;+ white-space: pre;+ }+ </style>+ </head>+ <body>+ <p>Test passes if the 2 pink-and-blue rectangles are <strong>identical</strong>.</p>++ <div>7 1+ 52+ 63</div>++ <div>7 1+ 52+ 63</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/reference/available-size-001-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/reference/available-size-001-ref.htmlnew file mode 100644index 00000000000..d59cde45f6e--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/reference/available-size-001-ref.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>Test reference</title>+<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">+<style>+body > div {+ font-family: monospace; /* to be able to reliably measure things in ch*/+ font-size: 20px;+ color: transparent;+ writing-mode: vertical-rl;+ background: green;+ border-top: 1ch solid white;+ height: 1ch;+}+</style>++<p>Test passes if there is a <strong>green rectangle</strong> below and <strong>no red</strong>.++<div>0</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/reference/available-size-002-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/reference/available-size-002-ref.htmlnew file mode 100644index 00000000000..ddebe938189--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/reference/available-size-002-ref.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>Test reference</title>+<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">+<style>+body > div {+ font-family: monospace; /* to be able to reliably measure things in ch*/+ font-size: 20px;+ color: transparent;+ writing-mode: vertical-rl;+ background: green;+ height: 1ch;+}+</style>++<p>Test passes if there is a <strong>green rectangle</strong> below and <strong>no red</strong>.++<div>0</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-001-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-001-ref.xhtnew file mode 100644index 00000000000..d9635b15fac--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-001-ref.xht@@ -0,0 +1,77 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ width: calc(136px + 100vw + 136px);+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin: 8px 0px;+ }++ table+ {+ border-spacing: 0px;+ position: absolute;+ padding: 0px 84px;+ width: calc(136px + 100% + 136px);+ }++ td+ {+ padding: 0px;+ vertical-align: top;+ }++ td#after, td#before+ {+ width: 52px;+ }++ p#sentence-after, p#sentence-before+ {+ writing-mode: vertical-lr;+ }++ td#data+ {+ border: blue solid 3px;+ display: block;+ }+ ]]></style>+ </head>++ <body>++ <table>++ <tr>++ <td id="before"><p id="sentence-before">Sentence before.</p></td>++ <td id="data">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</td>++ <td id="after"><p id="sentence-after">Sentence after.</p></td>++ </tr>++ </table>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-004-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-004-ref.xhtnew file mode 100644index 00000000000..b09fed4117a--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-004-ref.xht@@ -0,0 +1,46 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ width: calc(100px + 100vw + 100px);+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin: 8px 0px;+ }++ div+ {+ border: blue solid 3px;+ box-sizing: border-box;+ margin: 0px 100px;+ width: 100vw;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++<script>+ document.scrollingElement.scrollLeft=document.scrollingElement.scrollWidth;+</script>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-006-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-006-ref.xhtnew file mode 100644index 00000000000..381f01947f0--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-006-ref.xht@@ -0,0 +1,36 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ float: left;+ margin-left: 92px;+ }+ ]]></style>+ </head>++ <body>++ <div>123456789012345</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-007-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-007-ref.xhtnew file mode 100644index 00000000000..259727af45c--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-007-ref.xht@@ -0,0 +1,82 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin: 8px 0px;+ }++ table+ {+ border-spacing: 0px;+ left: 0px;+ padding: 0px 84px;+ position: absolute;+ width: 672px;+ /*+ 136px :+ ++ 400px :+ ++ 136px :+ ===========+ 672px+ */+ }++ td+ {+ padding: 0px;+ vertical-align: top;+ }++ td#after, td#before+ {+ width: 52px;+ }++ p#sentence-after, p#sentence-before+ {+ writing-mode: vertical-lr;+ }++ td#data+ {+ border: blue solid 3px;+ display: block;+ }+ ]]></style>+ </head>++ <body>++ <table>++ <tr>++ <td id="before"><p id="sentence-before">Sentence before.</p></td>++ <td id="data">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</td>++ <td id="after"><p id="sentence-after">Sentence after.</p></td>++ </tr>++ </table>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-011-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-011-ref.xhtnew file mode 100644index 00000000000..7e93f207200--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-011-ref.xht@@ -0,0 +1,36 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ float: left;+ margin-left: 92px;+ }+ ]]></style>+ </head>++ <body>++ <div>01020304050607080910111213141516171819202122232425</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-013-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-013-ref.xhtnew file mode 100644index 00000000000..9c0066e6616--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-013-ref.xht@@ -0,0 +1,76 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ width: calc(52px + 100vw + 52px);+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin: 8px 0px;+ }++ table+ {+ border-spacing: 0px;+ position: absolute;+ width: calc(52px + 100% + 52px);+ }++ td+ {+ padding: 0px;+ vertical-align: top;+ }++ td#after, td#before+ {+ width: 52px;+ }++ p#sentence-after, p#sentence-before+ {+ writing-mode: vertical-lr;+ }++ td#data+ {+ border: blue solid 3px;+ display: block;+ }+ ]]></style>+ </head>++ <body>++ <table>++ <tr>++ <td id="before"><p id="sentence-before">Sentence before.</p></td>++ <td id="data">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</td>++ <td id="after"><p id="sentence-after">Sentence after.</p></td>++ </tr>++ </table>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-018-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-018-ref.xhtnew file mode 100644index 00000000000..0dad6eff1a5--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-018-ref.xht@@ -0,0 +1,36 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ }++ div+ {+ border: blue solid 3px;+ float: left;+ }+ ]]></style>+ </head>++ <body>++ <div>123456789012345</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-019-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-019-ref.xhtnew file mode 100644index 00000000000..b3b58cdc452--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-019-ref.xht@@ -0,0 +1,80 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin: 8px 0px;+ }++ table+ {+ border-spacing: 0px;+ position: absolute;+ width: 504px;+ /*+ 52px :+ ++ 400px :+ ++ 52px :+ ============+ 504px+ */+ }++ td+ {+ padding: 0px;+ vertical-align: top;+ }++ td#after, td#before+ {+ width: 52px;+ }++ p#sentence-after, p#sentence-before+ {+ writing-mode: vertical-lr;+ }++ td#data+ {+ border: blue solid 3px;+ display: block;+ }+ ]]></style>+ </head>++ <body>++ <table>++ <tr>++ <td id="before"><p id="sentence-before">Sentence before.</p></td>++ <td id="data">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</td>++ <td id="after"><p id="sentence-after">Sentence after.</p></td>++ </tr>++ </table>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-023-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-023-ref.xhtnew file mode 100644index 00000000000..08f92001835--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-023-ref.xht@@ -0,0 +1,36 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin: 8px 0px;+ }++ div+ {+ border: blue solid 3px;+ float: left;+ }+ ]]></style>+ </head>++ <body>++ <div>01020304050607080910111213141516171819202122232425</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-006-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-006-ref.xhtnew file mode 100644index 00000000000..c04509cb5e7--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-006-ref.xht@@ -0,0 +1,36 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ float: right;+ margin-right: 92px;+ }+ ]]></style>+ </head>++ <body>++ <div>123456789012345</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-007-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-007-ref.xhtnew file mode 100644index 00000000000..3d3c8061e95--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-007-ref.xht@@ -0,0 +1,83 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin: 8px 0px;+ }++ table+ {+ border-spacing: 0px;+ left: calc(100% - 136px - 400px - 136px);+ /* or more elegantly right: 0px; Chrome 57+ has a bug here */+ padding: 0px 84px;+ position: absolute;+ width: 672px;+ /*+ 136px :+ ++ 400px :+ ++ 136px :+ ===========+ 672px+ */+ }++ td+ {+ padding: 0px;+ vertical-align: top;+ }++ td#after, td#before+ {+ width: 52px;+ }++ p#sentence-after, p#sentence-before+ {+ writing-mode: vertical-rl;+ }++ td#data+ {+ border: blue solid 3px;+ display: block;+ }+ ]]></style>+ </head>++ <body>++ <table>++ <tr>++ <td id="after"><p id="sentence-after">Sentence after.</p></td>++ <td id="data">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</td>++ <td id="before"><p id="sentence-before">Sentence before.</p></td>++ </tr>++ </table>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-010-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-010-ref.xhtnew file mode 100644index 00000000000..b4b3146e393--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-010-ref.xht@@ -0,0 +1,37 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ float: right;+ margin-right: 92px;+ width: 394px;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-011-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-011-ref.xhtnew file mode 100644index 00000000000..9cf63a8c289--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-011-ref.xht@@ -0,0 +1,36 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ float: right;+ margin-right: 92px;+ }+ ]]></style>+ </head>++ <body>++ <div>01020304050607080910111213141516171819202122232425</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-018-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-018-ref.xhtnew file mode 100644index 00000000000..abb838180c7--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-018-ref.xht@@ -0,0 +1,36 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-right: 0px;+ }++ div+ {+ border: blue solid 3px;+ float: right;+ }+ ]]></style>+ </head>++ <body>++ <div>123456789012345</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-019-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-019-ref.xhtnew file mode 100644index 00000000000..528dfc0d9cb--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-019-ref.xht@@ -0,0 +1,73 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin: 8px 0px;+ }++ table+ {+ border-spacing: 0px;+ left: calc(100% - 52px - 400px - 52px);+ /* or more elegantly right: 0px; Chrome 57+ has a bug here */+ position: absolute;+ width: 504px; /* 52px + 400px + 52px == 504px */+ }++ td+ {+ padding: 0px;+ vertical-align: top;+ }++ td#after, td#before+ {+ width: 52px;+ }++ p#sentence-after, p#sentence-before+ {+ writing-mode: vertical-rl;+ }++ td#data+ {+ border: blue solid 3px;+ display: block;+ }+ ]]></style>+ </head>++ <body>++ <table>++ <tr>++ <td id="after"><p id="sentence-after">Sentence after.</p></td>++ <td id="data">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</td>++ <td id="before"><p id="sentence-before">Sentence before.</p></td>++ </tr>++ </table>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-022-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-022-ref.xhtnew file mode 100644index 00000000000..036655d4102--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-022-ref.xht@@ -0,0 +1,37 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin: 8px 0px;+ }++ div+ {+ border: blue solid 3px;+ float: right;+ width: 394px;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-023-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-023-ref.xhtnew file mode 100644index 00000000000..29af2db8c04--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-023-ref.xht@@ -0,0 +1,36 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin: 8px 0px;+ }++ div+ {+ border: blue solid 3px;+ float: right;+ }+ ]]></style>+ </head>++ <body>++ <div>01020304050607080910111213141516171819202122232425</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-001-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-001-ref.xhtnew file mode 100644index 00000000000..07718ec3665--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-001-ref.xht@@ -0,0 +1,72 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-27T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-08T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin: 8px 0px;+ }++ table+ {+ border-spacing: 0px;+ position: absolute;+ padding: 0px 84px;+ width: calc(136px + 35px + 50vw + 35px + 136px);+ }++ td+ {+ padding: 0px;+ vertical-align: top;+ }++ td#after, td#before+ {+ width: 52px;+ }++ p#sentence-after, p#sentence-before+ {+ writing-mode: vertical-lr;+ }++ td#data+ {+ border: blue solid 35px;+ display: block;+ }+ ]]></style>+ </head>++ <body>++ <table>++ <tr>++ <td id="before"><p id="sentence-before">Sentence before.</p></td>++ <td id="data">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</td>++ <td id="after"><p id="sentence-after">Sentence after.</p></td>++ </tr>++ </table>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-002-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-002-ref.xhtnew file mode 100644index 00000000000..8983440cd18--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-002-ref.xht@@ -0,0 +1,36 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-27T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-29T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ margin-left: 92px;+ width: 50vw;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-003-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-003-ref.xhtnew file mode 100644index 00000000000..52e4221be7c--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-003-ref.xht@@ -0,0 +1,71 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-27T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-29T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin: 8px 0px;+ }++ table+ {+ border-spacing: 0px;+ padding: 0px 84px;+ width: calc(136px + 3px + 200px + 3px + 136px);+ }++ td+ {+ padding: 0px;+ vertical-align: top;+ }++ td#after, td#before+ {+ width: 52px;+ }++ p#sentence-after, p#sentence-before+ {+ writing-mode: vertical-lr;+ }++ td#data+ {+ border: blue solid 3px;+ display: block;+ }+ ]]></style>+ </head>++ <body>++ <table>++ <tr>++ <td id="before"><p id="sentence-before">Sentence before.</p></td>++ <td id="data">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</td>++ <td id="after"><p id="sentence-after">Sentence after.</p></td>++ </tr>++ </table>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-005-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-005-ref.xhtnew file mode 100644index 00000000000..93a65a228a1--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-005-ref.xht@@ -0,0 +1,78 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-27T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-08T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin: 8px 0px;+ }++ table+ {+ border-spacing: 0px;+ position: absolute;+ width: calc(52px + 35px + 50vw + 35px + 52px);+ /*+ 52px : offsetWidth of sentence-before+ 35px : left border+ 50vw : content width of tested orthogonal block+ 35px : right border+ 52px : offsetWidth of sentence-after+ */+ }++ td+ {+ padding: 0px;+ vertical-align: top;+ }++ td#after, td#before+ {+ width: 52px;+ }++ p#sentence-after, p#sentence-before+ {+ writing-mode: vertical-lr;+ }++ td#data+ {+ border: blue solid 35px;+ display: block;+ }+ ]]></style>+ </head>++ <body>++ <table>++ <tr>++ <td id="before"><p id="sentence-before">Sentence before.</p></td>++ <td id="data">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</td>++ <td id="after"><p id="sentence-after">Sentence after.</p></td>++ </tr>++ </table>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-007-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-007-ref.xhtnew file mode 100644index 00000000000..39abb34774a--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-007-ref.xht@@ -0,0 +1,83 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-28T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-29T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin: 8px 0px;+ }++ table+ {+ border-spacing: 0px;+ width: 310px;+ /*+ 52px :+ ++ 3px :+ ++ 200px :+ ++ 3px :+ ++ 52px :+ ============+ 310px+ */+ }++ td+ {+ padding: 0px;+ vertical-align: top;+ }++ td#after, td#before+ {+ width: 52px;+ }++ p#sentence-after, p#sentence-before+ {+ writing-mode: vertical-lr;+ }++ td#data+ {+ border: blue solid 3px;+ display: block;+ }+ ]]></style>+ </head>++ <body>++ <table>++ <tr>++ <td id="before"><p id="sentence-before">Sentence before.</p></td>++ <td id="data">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</td>++ <td id="after"><p id="sentence-after">Sentence after.</p></td>++ </tr>++ </table>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-001-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-001-ref.xhtnew file mode 100644index 00000000000..bd5116f4cbd--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-001-ref.xht@@ -0,0 +1,73 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-22T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-29T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin: 8px 0px;+ }++ table+ {+ border-spacing: 0px;+ position: absolute;+ padding: 0px 84px;+ left: calc(50% - 136px - 35px - 35px - 136px);+ width: calc(136px + 35px + 50vw + 35px + 136px);+ }++ td+ {+ padding: 0px;+ vertical-align: top;+ }++ td#after, td#before+ {+ width: 52px;+ }++ p#sentence-after, p#sentence-before+ {+ writing-mode: vertical-rl;+ }++ td#data+ {+ border: blue solid 35px;+ display: block;+ }+ ]]></style>+ </head>++ <body>++ <table>++ <tr>++ <td id="after"><p id="sentence-after">Sentence after.</p></td>++ <td id="data">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</td>++ <td id="before"><p id="sentence-before">Sentence before.</p></td>++ </tr>++ </table>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-002-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-002-ref.xhtnew file mode 100644index 00000000000..9bbfc8384d1--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-002-ref.xht@@ -0,0 +1,37 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-22T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-29T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ position: absolute;+ right: 100px;+ width: 50vw;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-003-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-003-ref.xhtnew file mode 100644index 00000000000..d7f8c9e079f--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-003-ref.xht@@ -0,0 +1,86 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-27T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-04T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin: 8px 0px;+ }++ table+ {+ border-spacing: 0px;+ left: calc(100% - 478px);+ padding: 0px 84px;+ position: absolute;+ width: 478px;+ /*+ 136px :+ ++ 3px :+ ++ 200px :+ ++ 3px :+ ++ 136px :+ ==========+ 478px+ */+ }++ td+ {+ padding: 0px;+ vertical-align: top;+ }++ td#after, td#before+ {+ width: 52px;+ }++ p#sentence-after, p#sentence-before+ {+ writing-mode: vertical-rl;+ }++ td#data+ {+ border: blue solid 3px;+ display: block;+ }+ ]]></style>+ </head>++ <body>++ <table>++ <tr>++ <td id="after"><p id="sentence-after">Sentence after.</p></td>++ <td id="data">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</td>++ <td id="before"><p id="sentence-before">Sentence before.</p></td>++ </tr>++ </table>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-004-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-004-ref.xhtnew file mode 100644index 00000000000..bc41035cfdb--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-004-ref.xht@@ -0,0 +1,37 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-27T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-29T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ position: absolute;+ right: 100px;+ width: 200px;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-005-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-005-ref.xhtnew file mode 100644index 00000000000..e21533cea90--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-005-ref.xht@@ -0,0 +1,72 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-22T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-29T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin: 8px 0px;+ }++ table+ {+ border-spacing: 0px;+ position: absolute;+ right: 0px;+ width: calc(52px + 35px + 50vw + 35px + 52px);+ }++ td+ {+ padding: 0px;+ vertical-align: top;+ }++ td#after, td#before+ {+ width: 52px;+ }++ p#sentence-after, p#sentence-before+ {+ writing-mode: vertical-rl;+ }++ td#data+ {+ border: blue solid 35px;+ display: block;+ }+ ]]></style>+ </head>++ <body>++ <table>++ <tr>++ <td id="after"><p id="sentence-after">Sentence after.</p></td>++ <td id="data">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</td>++ <td id="before"><p id="sentence-before">Sentence before.</p></td>++ </tr>++ </table>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-006-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-006-ref.xhtnew file mode 100644index 00000000000..6ff98c746ec--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-006-ref.xht@@ -0,0 +1,37 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-22T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-29T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ right: 0px;+ position: absolute;+ width: 50%;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-007-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-007-ref.xhtnew file mode 100644index 00000000000..4085dd5f568--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-007-ref.xht@@ -0,0 +1,85 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-28T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin: 8px 0px;+ }++ table+ {+ border-spacing: 0px;+ left: calc(100% - 310px);+ position: absolute;+ width: 310px;+ /*+ 52px :+ ++ 3px :+ ++ 200px :+ ++ 3px :+ ++ 52px :+ ===========+ 310px+ */+ }++ td+ {+ padding: 0px;+ vertical-align: top;+ }++ td#after, td#before+ {+ width: 52px;+ }++ p#sentence-after, p#sentence-before+ {+ writing-mode: vertical-rl;+ }++ td#data+ {+ border: blue solid 3px;+ display: block;+ }+ ]]></style>+ </head>++ <body>++ <table>++ <tr>++ <td id="after"><p id="sentence-after">Sentence after.</p></td>++ <td id="data">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</td>++ <td id="before"><p id="sentence-before">Sentence before.</p></td>++ </tr>++ </table>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-008-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-008-ref.xhtnew file mode 100644index 00000000000..6a12158605f--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-008-ref.xht@@ -0,0 +1,37 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-28T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-29T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ position: absolute;+ right: 0px;+ width: 200px;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-001-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-001-ref.xhtnew file mode 100644index 00000000000..b105906e223--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-001-ref.xht@@ -0,0 +1,75 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-22T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-29T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ padding: 100px 0px;+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ p+ {+ left: 8px;+ position: absolute;+ writing-mode: horizontal-tb;+ }++ p#sentence-before+ {+ margin-top: 0px;+ top: 100px;+ }++ div+ {+ border: blue solid 35px;+ height: 50%;+ left: 8px;+ position: absolute;+ top: 136px;+ width: auto;+ }++ p#sentence-after+ {+ top: calc(100px - 16px + 52px + 35px + 50vh + 35px);+ /*+ 50vh means 50 vh unit where each vh is equal to+ 1% of the height of the initial containing block.+ So 50vh == half of the height of initial containing block+ 5.1.2. Viewport-percentage lengths: the vw, vh, vmin, vmax units+ https://www.w3.org/TR/css3-values/#vh+ */+ padding-bottom: 100px;+ }+ ]]></style>+ </head>++ <body>++ <p id="sentence-before">Sentence before.</p>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-002-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-002-ref.xhtnew file mode 100644index 00000000000..daf920a5387--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-002-ref.xht@@ -0,0 +1,44 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-22T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-29T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ padding: 100px 0px;+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ height: 50%;+ left: 8px;+ position: absolute;+ top: 100px;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-003-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-003-ref.xhtnew file mode 100644index 00000000000..265cac44d5e--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-003-ref.xht@@ -0,0 +1,67 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-22T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-29T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ padding: 100px 0px;+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ p+ {+ left: 8px;+ position: absolute;+ writing-mode: horizontal-tb;+ }++ p#sentence-before+ {+ margin-top: 0px;+ top: 100px;+ }++ div+ {+ border: blue solid 3px;+ height: 200px;+ left: 8px;+ position: absolute;+ top: 136px;+ }++ p#sentence-after+ {+ padding-bottom: 222px; /* 600px - 342px - 36px == 222px */+ top: 342px; /* 100px - 16px + 52px + 3px + 200px + 3px == 342px */+ }+ ]]></style>+ </head>++ <body>++ <p id="sentence-before">Sentence before.</p>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-004-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-004-ref.xhtnew file mode 100644index 00000000000..b59df490869--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-004-ref.xht@@ -0,0 +1,45 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-22T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ height: 400px;+ padding: 100px 0px;+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ height: 200px;+ left: 8px;+ position: absolute;+ top: 100px;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-005-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-005-ref.xhtnew file mode 100644index 00000000000..ed404746eed--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-005-ref.xht@@ -0,0 +1,71 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-22T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ p+ {+ left: 8px;+ position: absolute;+ writing-mode: horizontal-tb;+ }++ p#sentence-before+ {+ margin-top: 8px;+ }++ div+ {+ border: blue solid 35px;+ height: 50%;+ left: 8px;+ position: absolute;+ top: 52px;+ }++ p#sentence-after+ {+ top: calc(52px + 35px + 50vh + 35px);+ /*+ 50vh means 50 vh unit where each vh is equal to+ 1% of the height of the initial containing block.+ So 50vh == half of the height of initial containing block+ 5.1.2. Viewport-percentage lengths: the vw, vh, vmin, vmax units+ https://www.w3.org/TR/css3-values/#vh+ */+ }+ ]]></style>+ </head>++ <body>++ <p id="sentence-before">Sentence before.</p>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-006-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-006-ref.xhtnew file mode 100644index 00000000000..68b165dcf62--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-006-ref.xht@@ -0,0 +1,43 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-22T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ height: 50%;+ left: 8px;+ position: absolute;+ top: 0px;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-007-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-007-ref.xhtnew file mode 100644index 00000000000..61b5a6cc109--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-007-ref.xht@@ -0,0 +1,65 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-22T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ p+ {+ left: 8px;+ position: absolute;+ writing-mode: horizontal-tb;+ }++ p#sentence-before+ {+ margin-top: 8px;+ }++ div+ {+ border: blue solid 3px;+ height: 200px;+ left: 8px;+ position: absolute;+ top: 52px;+ }++ p#sentence-after+ {+ padding-bottom: 122px;+ top: 258px; /* 52px + 3px + 200px + 3px == 258px */+ }+ ]]></style>+ </head>++ <body>++ <p id="sentence-before">Sentence before.</p>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-008-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-008-ref.xhtnew file mode 100644index 00000000000..71feed3c3c6--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-008-ref.xht@@ -0,0 +1,44 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-22T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ height: 400px;+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ height: 200px;+ left: 8px;+ position: absolute;+ top: 0px;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-001-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-001-ref.xhtnew file mode 100644index 00000000000..1e06bc9ecea--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-001-ref.xht@@ -0,0 +1,74 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-22T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ padding: 100px 0px;+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ p+ {+ left: 8px;+ position: absolute;+ writing-mode: horizontal-tb;+ }++ p#sentence-before+ {+ margin-top: 0px;+ top: 100px;+ }++ div+ {+ border: blue solid 35px;+ height: 50%;+ left: 8px;+ position: absolute;+ top: 136px;+ }++ p#sentence-after+ {+ top: calc(100px - 16px + 52px + 35px + 50vh + 35px);+ /*+ 50vh means 50 vh unit where each vh is equal to+ 1% of the height of the initial containing block.+ So 50vh == half of the height of initial containing block+ 5.1.2. Viewport-percentage lengths: the vw, vh, vmin, vmax units+ https://www.w3.org/TR/css3-values/#vh+ */+ padding-bottom: 100px;+ }+ ]]></style>+ </head>++ <body>++ <p id="sentence-before">Sentence before.</p>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-002-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-002-ref.xhtnew file mode 100644index 00000000000..6a740497a79--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-002-ref.xht@@ -0,0 +1,44 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-22T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ padding: 100px 0px;+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ height: 50%;+ left: 8px;+ position: absolute;+ top: 100px;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-003-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-003-ref.xhtnew file mode 100644index 00000000000..f442b1c0c53--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-003-ref.xht@@ -0,0 +1,67 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-22T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ padding: 100px 0px;+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ p+ {+ left: 8px;+ position: absolute;+ writing-mode: horizontal-tb;+ }++ p#sentence-before+ {+ margin-top: 0px;+ top: 100px;+ }++ div+ {+ border: blue solid 3px;+ height: 200px;+ left: 8px;+ position: absolute;+ top: 136px;+ }++ p#sentence-after+ {+ padding-bottom: 222px; /* 600px - 342px - 36px == 222px */+ top: 342px; /* 100px - 16px + 52px + 3px + 200px + 3px == 342px */+ }+ ]]></style>+ </head>++ <body>++ <p id="sentence-before">Sentence before.</p>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-004-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-004-ref.xhtnew file mode 100644index 00000000000..7404c778d5c--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-004-ref.xht@@ -0,0 +1,45 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-22T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ height: 400px;+ padding: 100px 0px;+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ height: 200px;+ left: 8px;+ position: absolute;+ top: 100px;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-005-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-005-ref.xhtnew file mode 100644index 00000000000..74b244cd5db--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-005-ref.xht@@ -0,0 +1,71 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-22T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ p+ {+ left: 8px;+ position: absolute;+ writing-mode: horizontal-tb;+ }++ p#sentence-before+ {+ margin-top: 8px;+ }++ div+ {+ border: blue solid 35px;+ height: 50%;+ left: 8px;+ position: absolute;+ top: 52px;+ }++ p#sentence-after+ {+ top: calc(52px + 35px + 50vh + 35px);+ /*+ 50vh means 50 vh unit where each vh is equal to+ 1% of the height of the initial containing block.+ So 50vh == half of the height of initial containing block+ 5.1.2. Viewport-percentage lengths: the vw, vh, vmin, vmax units+ https://www.w3.org/TR/css3-values/#vh+ */+ }+ ]]></style>+ </head>++ <body>++ <p id="sentence-before">Sentence before.</p>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-006-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-006-ref.xhtnew file mode 100644index 00000000000..424df699953--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-006-ref.xht@@ -0,0 +1,43 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-22T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ height: 50%;+ left: 8px;+ position: absolute;+ top: 0px;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-007-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-007-ref.xhtnew file mode 100644index 00000000000..238579e5a70--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-007-ref.xht@@ -0,0 +1,65 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-22T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ p+ {+ left: 8px;+ position: absolute;+ writing-mode: horizontal-tb;+ }++ p#sentence-before+ {+ margin-top: 8px;+ }++ div+ {+ border: blue solid 3px;+ height: 200px;+ left: 8px;+ position: absolute;+ top: 52px;+ }++ p#sentence-after+ {+ padding-bottom: 122px;+ top: 258px; /* 52px + 3px + 200px + 3px == 258px */+ }+ ]]></style>+ </head>++ <body>++ <p id="sentence-before">Sentence before.</p>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-008-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-008-ref.xhtnew file mode 100644index 00000000000..5f4bb53dd83--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-008-ref.xht@@ -0,0 +1,44 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-22T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ height: 400px;+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ height: 200px;+ left: 8px;+ position: absolute;+ top: 0px;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-001-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-001-ref.xhtnew file mode 100644index 00000000000..8bf0812b74b--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-001-ref.xht@@ -0,0 +1,77 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ height: 100%;+ padding: 100px 0px;+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ height: 100%;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ p+ {+ left: 8px;+ position: absolute;+ writing-mode: horizontal-tb;+ }++ p#sentence-before+ {+ margin-top: 0px;+ top: 100px;+ }++ div+ {+ border: blue solid 3px;+ box-sizing: border-box;+ height: 100%;+ left: 8px;+ position: absolute;+ top: 136px;+ }++ p#sentence-after+ {+ padding-bottom: 100px;+ top: calc(100px - 16px + 52px + 100vh);+ /*+ 100vh means 100 vh unit where each vh is equal to+ 1% of the height of the initial containing block.+ So 100vh == height of initial containing block+ 5.1.2. Viewport-percentage lengths: the vw, vh, vmin, vmax units+ https://www.w3.org/TR/css3-values/#vh+ */+ }+ ]]></style>+ </head>++ <body>++ <p id="sentence-before">Sentence before.</p>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-004-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-004-ref.xhtnew file mode 100644index 00000000000..81b4f6b652a--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-004-ref.xht@@ -0,0 +1,47 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ height: 100%;+ padding: 100px 0px;+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ height: 100%;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ box-sizing: border-box;+ height: 100%;+ left: 8px;+ position: absolute;+ top: 100px;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-006-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-006-ref.xhtnew file mode 100644index 00000000000..4948c0697b5--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-006-ref.xht@@ -0,0 +1,44 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ padding: 100px 0px;+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ height: auto;+ left: 8px;+ position: absolute;+ top: 100px;+ }+ ]]></style>+ </head>++ <body>++ <div>123456789012345</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-007-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-007-ref.xhtnew file mode 100644index 00000000000..19b5f6f0b20--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-007-ref.xht@@ -0,0 +1,68 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ padding: 100px 0px;+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ p+ {+ left: 8px;+ position: absolute;+ writing-mode: horizontal-tb;+ }++ p#sentence-before+ {+ margin-top: 0px;+ top: 100px;+ }++ div+ {+ border: blue solid 3px;+ box-sizing: border-box;+ height: 400px;+ left: 8px;+ position: absolute;+ top: 136px;+ }++ p#sentence-after+ {+ padding-bottom: 28px; /* 600px - 536px -52px + 16px == 28px */+ top: 536px; /* 100px - 16px + 52px + 400px == 536px */+ }+ ]]></style>+ </head>++ <body>++ <p id="sentence-before">Sentence before.</p>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-010-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-010-ref.xhtnew file mode 100644index 00000000000..4120ffd84d4--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-010-ref.xht@@ -0,0 +1,45 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ height: 400px;+ padding: 100px 0px;+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ height: 394px;+ left: 8px;+ position: absolute;+ top: 100px;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-011-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-011-ref.xhtnew file mode 100644index 00000000000..af1c2a75c9e--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-011-ref.xht@@ -0,0 +1,45 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ padding: 100px 0px;+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ box-sizing: border-box;+ height: auto;+ left: 8px;+ position: absolute;+ top: 100px;+ }+ ]]></style>+ </head>++ <body>++ <div>01020304050607080910111213141516171819202122232425</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-012-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-012-ref.xhtnew file mode 100644index 00000000000..5b6c215b43f--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-012-ref.xht@@ -0,0 +1,42 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-08T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ padding: 92px 0px;+ height: 416px;+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ display: inline-block;+ }+ ]]></style>+ </head>++ <body>++ <div>123456789012345</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-013-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-013-ref.xhtnew file mode 100644index 00000000000..4b120fac8b0--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-013-ref.xht@@ -0,0 +1,75 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ height: 100%;+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ height: 100%;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ p+ {+ left: 8px;+ position: absolute;+ writing-mode: horizontal-tb;+ }++ p#sentence-before+ {+ margin-top: 8px;+ }++ div+ {+ border: blue solid 3px;+ box-sizing: border-box;+ height: 100%;+ left: 8px;+ position: absolute;+ top: 52px;+ }++ p#sentence-after+ {+ padding-bottom: 1em;+ top: calc(52px + 100vh);+ /*+ 100vh means 100 vh unit where each vh is equal to+ 1% of the height of the initial containing block.+ So 100vh == height of initial containing block+ 5.1.2. Viewport-percentage lengths: the vw, vh, vmin, vmax units+ https://www.w3.org/TR/css3-values/#vh+ */+ }+ ]]></style>+ </head>++ <body>++ <p id="sentence-before">Sentence before.</p>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-016-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-016-ref.xhtnew file mode 100644index 00000000000..ba102400e2b--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-016-ref.xht@@ -0,0 +1,45 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div+ {+ border: blue solid 35px;+ box-sizing: border-box;+ height: 100%;+ left: 8px;+ position: absolute;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-018-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-018-ref.xhtnew file mode 100644index 00000000000..c0d941755e8--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-018-ref.xht@@ -0,0 +1,43 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ height: auto;+ left: 8px;+ position: absolute;+ top: 0px;+ }+ ]]></style>+ </head>++ <body>++ <div>123456789012345</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-019-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-019-ref.xhtnew file mode 100644index 00000000000..2b199e80844--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-019-ref.xht@@ -0,0 +1,65 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ p+ {+ left: 8px;+ position: absolute;+ writing-mode: horizontal-tb;+ }++ p#sentence-before+ {+ margin-top: 8px;+ }++ div+ {+ border: blue solid 3px;+ height: 394px;+ left: 8px;+ position: absolute;+ top: 52px;+ }++ p#sentence-after+ {+ top: 452px; /* 52px + 400px == 452px */+ padding-bottom: 1em;+ }+ ]]></style>+ </head>++ <body>++ <p id="sentence-before">Sentence before.</p>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-022-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-022-ref.xhtnew file mode 100644index 00000000000..73b85e8d8c6--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-022-ref.xht@@ -0,0 +1,43 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ height: 394px;+ left: 8px;+ position: absolute;+ top: 0px;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-023-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-023-ref.xhtnew file mode 100644index 00000000000..d7e13430ca3--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-023-ref.xht@@ -0,0 +1,43 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ height: auto;+ left: 8px;+ position: absolute;+ top: 0px;+ }+ ]]></style>+ </head>++ <body>++ <div>01020304050607080910111213141516171819202122232425</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-001-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-001-ref.xhtnew file mode 100644index 00000000000..70c5fdf3f28--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-001-ref.xht@@ -0,0 +1,77 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ height: 100%;+ padding: 100px 0px;+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ height: 100%;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ p+ {+ left: 8px;+ position: absolute;+ writing-mode: horizontal-tb;+ }++ p#sentence-before+ {+ margin-top: 0px;+ top: 100px;+ }++ div+ {+ border: blue solid 3px;+ box-sizing: border-box;+ height: 100%;+ left: 8px;+ position: absolute;+ top: 136px;+ }++ p#sentence-after+ {+ padding-bottom: 100px;+ top: calc(100px - 16px + 52px + 100vh);+ /*+ 100vh means 100 vh unit where each vh is equal to+ 1% of the height of the initial containing block.+ So 100vh == height of initial containing block+ 5.1.2. Viewport-percentage lengths: the vw, vh, vmin, vmax units+ https://www.w3.org/TR/css3-values/#vh+ */+ }+ ]]></style>+ </head>++ <body>++ <p id="sentence-before">Sentence before.</p>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-004-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-004-ref.xhtnew file mode 100644index 00000000000..e0c0c217077--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-004-ref.xht@@ -0,0 +1,47 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ height: 100%;+ padding: 100px 0px;+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ height: 100%;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ box-sizing: border-box;+ height: 100%;+ left: 8px;+ position: absolute;+ top: 100px;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-006-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-006-ref.xhtnew file mode 100644index 00000000000..611b5e1b53e--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-006-ref.xht@@ -0,0 +1,43 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ padding: 100px 0px;+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ left: 8px;+ position: absolute;+ top: 100px;+ }+ ]]></style>+ </head>++ <body>++ <div>123456789012345</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-007-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-007-ref.xhtnew file mode 100644index 00000000000..76db5128b2a--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-007-ref.xht@@ -0,0 +1,68 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ padding: 100px 0px;+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ p+ {+ left: 8px;+ position: absolute;+ writing-mode: horizontal-tb;+ }++ p#sentence-before+ {+ margin-top: 0px;+ top: 100px;+ }++ div+ {+ border: blue solid 3px;+ box-sizing: border-box;+ height: 400px;+ left: 8px;+ position: absolute;+ top: 136px;+ }++ p#sentence-after+ {+ padding-bottom: 28px; /* 600px - 536px -52px + 16px == 28px */+ top: 536px; /* 100px - 16px + 52px + 400px == 536px */+ }+ ]]></style>+ </head>++ <body>++ <p id="sentence-before">Sentence before.</p>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-010-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-010-ref.xhtnew file mode 100644index 00000000000..e8e8ea707f4--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-010-ref.xht@@ -0,0 +1,46 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ height: 400px;+ padding: 100px 0px;+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ box-sizing: border-box;+ height: 400px;+ left: 8px;+ position: absolute;+ top: 100px;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-011-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-011-ref.xhtnew file mode 100644index 00000000000..b6888380d63--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-011-ref.xht@@ -0,0 +1,44 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ padding: 100px 0px;+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ box-sizing: border-box;+ left: 8px;+ position: absolute;+ top: 100px;+ }+ ]]></style>+ </head>++ <body>++ <div>01020304050607080910111213141516171819202122232425</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-012-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-012-ref.xhtnew file mode 100644index 00000000000..28350899582--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-012-ref.xht@@ -0,0 +1,43 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-08T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ height: 600px;+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ left: 8px;+ position: absolute;+ top: 100px;+ }+ ]]></style>+ </head>++ <body>++ <div>123456789012345</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-013-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-013-ref.xhtnew file mode 100644index 00000000000..8e3e1acb0d9--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-013-ref.xht@@ -0,0 +1,77 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ height: 100%;+ writing-mode: vertical-rl;+ overflow: hidden; /* since test and reference might place scrollbars on+ different sides */+ }++ body+ {+ font-size: 16px;+ height: 100%;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ p+ {+ left: 8px;+ position: absolute;+ writing-mode: horizontal-tb;+ }++ p#sentence-before+ {+ margin-top: 8px;+ }++ div+ {+ border: blue solid 3px;+ box-sizing: border-box;+ height: 100%;+ left: 8px;+ position: absolute;+ top: 52px;+ }++ p#sentence-after+ {+ padding-bottom: 1em;+ top: calc(52px + 100vh);+ /*+ 100vh means 100 vh unit where each vh is equal to+ 1% of the height of the initial containing block.+ So 100vh == height of initial containing block+ 5.1.2. Viewport-percentage lengths: the vw, vh, vmin, vmax units+ https://www.w3.org/TR/css3-values/#vh+ */+ }+ ]]></style>+ </head>++ <body>++ <p id="sentence-before">Sentence before.</p>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-016-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-016-ref.xhtnew file mode 100644index 00000000000..9455290b63b--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-016-ref.xht@@ -0,0 +1,45 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div+ {+ border: blue solid 35px;+ box-sizing: border-box;+ height: 100%;+ left: 8px;+ position: absolute;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-018-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-018-ref.xhtnew file mode 100644index 00000000000..d8cc746d718--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-018-ref.xht@@ -0,0 +1,43 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ height: auto;+ left: 8px;+ position: absolute;+ top: 0px;+ }+ ]]></style>+ </head>++ <body>++ <div>123456789012345</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-019-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-019-ref.xhtnew file mode 100644index 00000000000..7e4161090cb--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-019-ref.xht@@ -0,0 +1,77 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ p+ {+ left: 8px;+ position: absolute;+ writing-mode: horizontal-tb;+ }++ p#sentence-before+ {+ margin-top: 8px;+ }++ div+ {+ border: blue solid 3px;+ height: 394px;+ left: 8px;+ position: absolute;+ top: 52px;+ }++ p#sentence-after+ {+ padding-bottom: 1em;+ top: 452px;+ /*+ 52px :+ ++ 3px :+ ++ 394px :+ ++ 3px :+ ============+ 452px+ */+ }++ ]]></style>+ </head>++ <body>++ <p id="sentence-before">Sentence before.</p>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-022-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-022-ref.xhtnew file mode 100644index 00000000000..8b4bcea3cd8--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-022-ref.xht@@ -0,0 +1,43 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ height: 394px;+ left: 8px;+ position: absolute;+ top: 0px;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-023-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-023-ref.xhtnew file mode 100644index 00000000000..329e70f196c--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-023-ref.xht@@ -0,0 +1,43 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ height: auto;+ left: 8px;+ position: absolute;+ top: 0px;+ }+ ]]></style>+ </head>++ <body>++ <div>01020304050607080910111213141516171819202122232425</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003.xhtnew file mode 100644index 00000000000..df9182d3e5f--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003.xht@@ -0,0 +1,116 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' and 'bottom' are 'auto', then set 'top' to the static position, then the height is based on the content and then solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ height: auto;+ position: absolute;+ top: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.++3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 160px : top: auto: set to static position+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++gives us:++ 160px : top: auto: set to static position+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-007.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-007.xhtnew file mode 100644index 00000000000..95a7fca04ff--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-007.xht@@ -0,0 +1,121 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-007-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' and 'bottom' are 'auto', then set 'top' to the static position, then the height is based on the content and then solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;++ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ height: auto;+ position: absolute;+ top: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.++3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 160px : top: auto: set to static position+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++gives us:++ 160px : top: auto: set to static position+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-015.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-015.xhtnew file mode 100644index 00000000000..e4b2663a8c5--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-015.xht@@ -0,0 +1,114 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' are 'auto' and bottom is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-009-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' are 'auto' and bottom is not 'auto', then the height is based on the content and then solve for 'top'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: 2em;+ color: green;+ height: auto;+ position: absolute;+ top: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 160px : bottom+ =====================+ 320px : height of containing block++gives us:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 160px : bottom+ =====================+ 320px : height of containing block++And so computed top value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-019.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-019.xhtnew file mode 100644index 00000000000..4d2bea6f126--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-019.xht@@ -0,0 +1,118 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-013-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content and then solve for 'top'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: 2em;+ color: green;+ height: auto;+ position: absolute;+ top: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 160px : bottom+ =====================+ 320px : height of containing block++gives us:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 160px : bottom+ =====================+ 320px : height of containing block++And so computed top value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-021.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-021.xhtnew file mode 100644index 00000000000..15621e454d0--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-021.xht@@ -0,0 +1,114 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'height' are 'auto and 'bottom' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-009-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content and then solve for 'top'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: 2em;+ color: green;+ height: auto;+ position: absolute;+ top: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 160px : bottom+ =====================+ 320px : height of containing block++gives us:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 160px : bottom+ =====================+ 320px : height of containing block++And so computed top value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-025.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-025.xhtnew file mode 100644index 00000000000..fb0ed8a85fb--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-025.xht@@ -0,0 +1,118 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-013-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'top', 'height' are 'auto' and bottom is not 'auto', then the height is based on the content and then solve for 'top'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: 2em;+ color: green;+ height: auto;+ position: absolute;+ top: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 160px : bottom+ =====================+ 320px : height of containing block++gives us:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 160px : bottom+ =====================+ 320px : height of containing block++And so computed top value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-027.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-027.xhtnew file mode 100644index 00000000000..7517e5992c5--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-027.xht@@ -0,0 +1,92 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to static position and solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ height: 1em;+ position: absolute;+ top: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position, otherwise set 'right' to the static position. Then solve for 'left' (if 'direction is 'rtl') or 'right' (if 'direction' is 'ltr').+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 160px : top: auto: set to static position+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-031.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-031.xhtnew file mode 100644index 00000000000..ebda2c13547--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-031.xht@@ -0,0 +1,97 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-007-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to static position and solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;++ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ height: 1em;+ position: absolute;+ top: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position, otherwise set 'right' to the static position. Then solve for 'left' (if 'direction is 'rtl') or 'right' (if 'direction' is 'ltr').+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 160px : top: auto: set to static position+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-039.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-039.xhtnew file mode 100644index 00000000000..fb42d02e860--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-039.xht@@ -0,0 +1,114 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-009-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content and then solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ height: auto;+ position: absolute;+ top: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 80px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++gives us:++ 80px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-043.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-043.xhtnew file mode 100644index 00000000000..1cf8f1647bd--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-043.xht@@ -0,0 +1,118 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-013-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content and then solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ height: auto;+ position: absolute;+ top: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 80px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++gives us:++ 80px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-045.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-045.xhtnew file mode 100644index 00000000000..8f928cf477b--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-045.xht@@ -0,0 +1,114 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-009-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content and then solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ height: auto;+ position: absolute;+ top: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 80px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++gives us:++ 80px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-049.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-049.xhtnew file mode 100644index 00000000000..f6c6b91d749--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-049.xht@@ -0,0 +1,118 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-013-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content and then solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ height: auto;+ position: absolute;+ top: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 80px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++gives us:++ 80px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-051.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-051.xhtnew file mode 100644index 00000000000..74805b027b0--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-051.xht@@ -0,0 +1,92 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto', then solve for 'top'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: 1em;+ color: green;+ height: 1em;+ position: absolute;+ top: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 80px : bottom+ =====================+ 320px : height of containing block++And so computed top value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-055.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-055.xhtnew file mode 100644index 00000000000..3880b86de11--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-055.xht@@ -0,0 +1,96 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-007-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto', then solve for 'top'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: 1em;+ color: green;+ height: 1em;+ position: absolute;+ top: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 80px : bottom+ =====================+ 320px : height of containing block++And so computed top value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-057.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-057.xhtnew file mode 100644index 00000000000..4287a84751c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-057.xht@@ -0,0 +1,92 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto', then solve for 'top'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: 1em;+ color: green;+ height: 1em;+ position: absolute;+ top: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 80px : bottom+ =====================+ 320px : height of containing block++And so computed top value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-061.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-061.xhtnew file mode 100644index 00000000000..8686c2557b2--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-061.xht@@ -0,0 +1,97 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-007-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto', then solve for 'top'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: 1em;+ color: green;+ height: 1em;+ position: absolute;+ top: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 80px : bottom+ =====================+ 320px : height of containing block++And so computed top value must be 160px .+*/+++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-063.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-063.xhtnew file mode 100644index 00000000000..c2085883e52--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-063.xht@@ -0,0 +1,92 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto', then solve for 'height'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: green;+ bottom: 1em;+ height: auto;+ position: absolute;+ top: 2em;+ width: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 160px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (solve) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 80px : bottom+ =====================+ 320px : height of containing block++And so computed height value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-067.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-067.xhtnew file mode 100644index 00000000000..da0ac761994--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-067.xht@@ -0,0 +1,96 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-007-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto', then solve for 'height'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: green;+ bottom: 1em;+ height: auto;+ position: absolute;+ top: 2em;+ width: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 160px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (solve) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 80px : bottom+ =====================+ 320px : height of containing block++And so computed height value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-069.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-069.xhtnew file mode 100644index 00000000000..211bd89db3d--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-069.xht@@ -0,0 +1,92 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto', then solve for 'height'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: green;+ bottom: 1em;+ height: auto;+ position: absolute;+ top: 2em;+ width: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 160px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (solve) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 80px : bottom+ =====================+ 320px : height of containing block++And so computed height value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-073.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-073.xhtnew file mode 100644index 00000000000..e30c17901e1--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-073.xht@@ -0,0 +1,96 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-007-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto', then solve for 'height'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: green;+ bottom: 1em;+ height: auto;+ position: absolute;+ top: 2em;+ width: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 160px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (solve) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 80px : bottom+ =====================+ 320px : height of containing block++And so computed height value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-075.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-075.xhtnew file mode 100644index 00000000000..9dbee339eff--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-075.xht@@ -0,0 +1,92 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-009-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto', then solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ height: 1em;+ position: absolute;+ top: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+6. 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 80px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-079.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-079.xhtnew file mode 100644index 00000000000..274f129bb20--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-079.xht@@ -0,0 +1,96 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-013-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto', then solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ height: 1em;+ position: absolute;+ top: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+6. 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 80px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-081.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-081.xhtnew file mode 100644index 00000000000..f78fb2749be--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-081.xht@@ -0,0 +1,92 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-009-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto', then solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ height: 1em;+ position: absolute;+ top: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+6. 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 80px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-085.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-085.xhtnew file mode 100644index 00000000000..3bb1a0a0729--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-085.xht@@ -0,0 +1,96 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-013-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto', then solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ height: 1em;+ position: absolute;+ top: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+6. 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 80px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-087.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-087.xhtnew file mode 100644index 00000000000..97107f29481--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-087.xht@@ -0,0 +1,116 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are not 'auto' (overconstrained)</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' and 'bottom' are not 'auto' and if the values are overconstrained, then ignore 'bottom' and solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: 2em;+ color: green;+ height: 1em;+ margin-bottom: 0em;+ margin-top: 0em;+ position: absolute;+ top: 2em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+If the values are over-constrained, ignore the value for 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 160px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 160px : bottom+ =====================+ 320px : height of containing block++gives us:++ 160px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom+ =====================+ 320px : height of containing block++And so computed bottom value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-091.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-091.xhtnew file mode 100644index 00000000000..e11d8e27d0a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-091.xht@@ -0,0 +1,120 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are not 'auto' (overconstrained)</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-007-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' and 'bottom' are not 'auto' and if the values are overconstrained, then ignore 'bottom' and solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: 2em;+ color: green;+ height: 1em;+ margin-bottom: 0em;+ margin-top: 0em;+ position: absolute;+ top: 2em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+If the values are over-constrained, ignore the value for 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 160px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 160px : bottom+ =====================+ 320px : height of containing block++gives us:++ 160px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom+ =====================+ 320px : height of containing block++And so computed bottom value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-103.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-103.xhtnew file mode 100644index 00000000000..a0fb5b1c6bc--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-103.xht@@ -0,0 +1,116 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'width' and 'right' are 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left', 'width' and 'right' are 'auto' and 'writing-mode' is 'vertical-lr', then set 'left' to the static position, the width is based on the content and then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: auto;+ width: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left properties and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+If all three of 'top', 'height', and 'bottom' are auto, set 'top' to the static position and apply rule number three below.++3. 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : left: auto: set to static position+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ (based on the content) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++gives us:++ 80px : left: auto: set to static position+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : (based on the content) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++And so computed right value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-107.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-107.xhtnew file mode 100644index 00000000000..b8cedb78f90--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-107.xht@@ -0,0 +1,120 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'width' and 'right' are 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-007-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left', 'width' and 'right' are 'auto' and 'writing-mode' is 'vertical-lr', then set 'left' to the static position, the width is based on the content and then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: auto;+ width: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+If all three of 'top', 'height', and 'bottom' are auto, set 'top' to the static position and apply rule number three below.++3. 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : left: auto: set to static position+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ (based on the content) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++gives us:++ 80px : left: auto: set to static position+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : (based on the content) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++And so computed right value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-109.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-109.xhtnew file mode 100644index 00000000000..41df94b099c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-109.xht@@ -0,0 +1,117 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'width' and 'right' are 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left', 'width' and 'right' are 'auto' and 'writing-mode' is 'vertical-lr', then set 'left' to the static position, the width is based on the content and then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: auto;+ width: auto;+ writing-mode: horizontal-tb;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+If all three of 'top', 'height', and 'bottom' are auto, set 'top' to the static position and apply rule number three below.++3. 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : left: auto: set to static position+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ (based on the content) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++gives us:++ 80px : left: auto: set to static position+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : (based on the content) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++And so computed right value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-119.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-119.xhtnew file mode 100644index 00000000000..f045f76760f--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-119.xht@@ -0,0 +1,114 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'width' and 'right' are 'auto' and 'left' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'width' and 'right' are 'auto' and 'left' is not 'auto' and 'writing-mode' is 'vertical-lr', then the width is based on the content and then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: 1em;+ position: absolute;+ right: auto;+ width: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+1. 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'top'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ (solve) : right: auto+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ (based on the content) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 80px : left+ =====================+ 320px : width of containing block++gives us:++ (solve) : right: auto+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : (based on the content) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 80px : left+ =====================+ 320px : width of containing block++And so computed right value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-123.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-123.xhtnew file mode 100644index 00000000000..43518b2fb86--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-123.xht@@ -0,0 +1,118 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'width' and 'right' are 'auto' and 'left' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-007-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'width' and 'right' are 'auto' and 'left' is not 'auto' and 'writing-mode' is 'vertical-rl', then the width is based on the content and then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: 1em;+ position: absolute;+ right: auto;+ width: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+1. 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'top'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ (solve) : right: auto+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ (based on the content) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 80px : left: auto+ =====================+ 320px : width of containing block++gives us:++ (solve) : right: auto+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : (based on the content) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 80px : left: auto+ =====================+ 320px : width of containing block++And so computed right value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-125.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-125.xhtnew file mode 100644index 00000000000..d17571624eb--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-125.xht@@ -0,0 +1,115 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'width' and 'right' are 'auto' and 'left' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'width' and 'right' are 'auto' and 'left' is not 'auto' and 'writing-mode' is 'vertical-rl', then the width is based on the content and then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: 1em;+ position: absolute;+ right: auto;+ width: auto;+ writing-mode: horizontal-tb;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+1. 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'top'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ (solve) : right: auto+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ (based on the content) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 80px : left+ =====================+ 320px : width of containing block++gives us:++ (solve) : right: auto+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : (based on the content) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 80px : left+ =====================+ 320px : width of containing block++And so computed right value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-135.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-135.xhtnew file mode 100644index 00000000000..da35c75e13c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-135.xht@@ -0,0 +1,92 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'right' are 'auto' and 'width' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left' and 'right' are 'auto' and 'width' is not 'auto' and 'writing-mode' is 'vertical-lr', then set 'left' to the static position and then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: green;+ height: 1em;+ left: auto;+ position: absolute;+ right: auto;+ width: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left properties and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+2. 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to the static position, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ (solve) : right: auto+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 80px : left: auto: set to static position+ =====================+ 320px : width of containing block++And so computed right value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-139.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-139.xhtnew file mode 100644index 00000000000..ca76dc4510a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-139.xht@@ -0,0 +1,96 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'right' are 'auto' and 'width' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-007-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left' and 'right' are 'auto' and 'width' is not 'auto' and 'writing-mode' is 'vertical-lr', then set 'left' to the static position and then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: green;+ height: 1em;+ left: auto;+ position: absolute;+ right: auto;+ width: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left properties and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+2. 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to the static position, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ (solve) : right: auto+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 80px : left: auto: set to static position+ =====================+ 320px : width of containing block++And so computed right value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-141.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-141.xhtnew file mode 100644index 00000000000..5e668133486--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-141.xht@@ -0,0 +1,93 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'right' are 'auto' and 'width' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left' and 'right' are 'auto' and 'width' is not 'auto' and 'writing-mode' is 'vertical-lr', then set 'left' to the static position and then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: green;+ height: 1em;+ left: auto;+ position: absolute;+ right: auto;+ width: 1em;+ writing-mode: horizontal-tb;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left properties and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+2. 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to the static position, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ (solve) : right: auto+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 80px : left: auto: set to static position+ =====================+ 320px : width of containing block++And so computed right value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-151.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-151.xhtnew file mode 100644index 00000000000..ced69468f0b--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-151.xht@@ -0,0 +1,92 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'width' are 'auto' and 'right' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left' and 'width' are 'auto' and 'right' is not 'auto' and 'writing-mode' is 'vertical-lr', then the width is based on the content and then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: 1em;+ width: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left properties and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+3. 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : (based on the content) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ (solve) : left: auto+ =====================+ 320px : width of containing block++And so computed left value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-155.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-155.xhtnew file mode 100644index 00000000000..074d5aa57b3--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-155.xht@@ -0,0 +1,96 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'width' are 'auto' and 'right' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-155-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left' and 'width' are 'auto' and 'right' is not 'auto' and 'writing-mode' is 'vertical-lr', then the width is based on the content and then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: 1em;+ width: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left properties and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+3. 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : (based on the content) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ (solve) : left: auto+ =====================+ 320px : width of containing block++And so computed left value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-157.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-157.xhtnew file mode 100644index 00000000000..915d19ae045--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-157.xht@@ -0,0 +1,93 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'width' are 'auto' and 'right' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left' and 'width' are 'auto' and 'right' is not 'auto' and 'writing-mode' is 'vertical-lr', then the width is based on the content and then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: 1em;+ width: auto;+ writing-mode: horizontal-tb;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left properties and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+3. 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : (based on the content) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ (solve) : left: auto+ =====================+ 320px : width of containing block++And so computed left value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-167.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-167.xhtnew file mode 100644index 00000000000..ab513cc9e46--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-167.xht@@ -0,0 +1,91 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'right' is 'auto', 'width' and 'left' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'right' is 'auto', 'width' and 'left' are not 'auto' and 'writing-mode' is 'vertical-lr', then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: green;+ height: 1em;+ left: 1em;+ position: absolute;+ right: auto;+ width: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left properties and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+4. 'top' is 'auto', 'height' and 'bottom' are not 'auto', then set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'top'"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ (solve) : right: auto+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 80px : left+ =====================+ 320px : width of containing block++And so computed right value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-171.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-171.xhtnew file mode 100644index 00000000000..06de6afea44--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-171.xht@@ -0,0 +1,96 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'right' is 'auto' and 'width' and 'left' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-007-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'right' is 'auto' and 'width' and 'left' are not 'auto' and 'writing-mode' is 'vertical-lr', then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: green;+ height: 1em;+ left: 1em;+ position: absolute;+ right: auto;+ width: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left properties and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+4. 'top' is 'auto', 'height' and 'bottom' are not 'auto', then set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'top'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ (solve) : right: auto+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 80px : left+ =====================+ 320px : width of containing block++And so computed right value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-173.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-173.xhtnew file mode 100644index 00000000000..400d07c0de9--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-173.xht@@ -0,0 +1,93 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'right' is 'auto' and 'width' and 'left' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'right' is 'auto' and 'width' and 'left' are not 'auto' and 'writing-mode' is 'vertical-lr', then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: green;+ height: 1em;+ left: 1em;+ position: absolute;+ right: auto;+ width: 1em;+ writing-mode: horizontal-tb;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left properties and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+4. 'top' is 'auto', 'height' and 'bottom' are not 'auto', then set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'top'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ (solve) : right: auto+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 80px : left+ =====================+ 320px : width of containing block++And so computed right value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-183.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-183.xhtnew file mode 100644index 00000000000..89baf620272--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-183.xht@@ -0,0 +1,92 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'width' is 'auto' and 'left' and 'right' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'right' is 'auto', 'width' and 'left' are not 'auto' and 'writing-mode' is 'vertical-lr', then solve for 'width'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: green;+ height: 1em;+ left: 1em;+ position: absolute;+ right: 2em;+ width: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left properties and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+5. 'height' is 'auto', 'top' and 'bottom' are not 'auto', then 'auto' values for 'margin-top' and 'margin-bottom' are set to 0 and solve for 'height'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 160px : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ (solve) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 80px : left+ =====================+ 320px : width of containing block++And so computed width value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-187.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-187.xhtnew file mode 100644index 00000000000..89624d5bc15--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-187.xht@@ -0,0 +1,96 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'width' is 'auto' and 'left' and 'right' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-007-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'width' is 'auto' and 'left' and 'right' are not 'auto' and 'writing-mode' is 'vertical-lr', then solve for 'width'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: green;+ height: 1em;+ left: 1em;+ position: absolute;+ right: 2em;+ width: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left properties and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+5. 'height' is 'auto', 'top' and 'bottom' are not 'auto', then 'auto' values for 'margin-top' and 'margin-bottom' are set to 0 and solve for 'height'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 160px : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ (solve) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 80px : left+ =====================+ 320px : width of containing block++And so computed width value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-189.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-189.xhtnew file mode 100644index 00000000000..a1f0b54f194--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-189.xht@@ -0,0 +1,93 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'width' is 'auto' and 'left' and 'right' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'width' is 'auto' and 'left' and 'right' are not 'auto' and 'writing-mode' is 'vertical-lr', then solve for 'width'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: green;+ height: 1em;+ left: 1em;+ position: absolute;+ right: 2em;+ width: auto;+ writing-mode: horizontal-tb;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left properties and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+5. 'height' is 'auto', 'top' and 'bottom' are not 'auto', then 'auto' values for 'margin-top' and 'margin-bottom' are set to 0 and solve for 'height'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 160px : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ (solve) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 80px : left+ =====================+ 320px : width of containing block++And so computed width value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-199.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-199.xhtnew file mode 100644index 00000000000..85183832198--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-199.xht@@ -0,0 +1,92 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' is 'auto' and 'right' and 'width' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left' is 'auto' and 'right' and 'width' are not 'auto' and 'writing-mode' is 'vertical-lr', then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: 1em;+ width: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left properties and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+6. 'bottom' is 'auto', 'top' and 'height' are not 'auto', then set 'auto' values for 'margin-top' and 'margin-bottom' to 0 and solve for 'bottom'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ (solve) : left: auto+ =====================+ 320px : width of containing block++And so computed left value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-203.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-203.xhtnew file mode 100644index 00000000000..b19f93eee0c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-203.xht@@ -0,0 +1,96 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' is 'auto' and 'right' and 'width' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-155-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left' is 'auto' and 'right' and 'width' are not 'auto' and 'writing-mode' is 'vertical-lr', then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: 1em;+ width: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left properties and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+6. 'bottom' is 'auto', 'top' and 'height' are not 'auto', then set 'auto' values for 'margin-top' and 'margin-bottom' to 0 and solve for 'bottom'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ (solve) : left: auto+ =====================+ 320px : width of containing block++And so computed left value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-205.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-205.xhtnew file mode 100644index 00000000000..24f0289d7a5--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-205.xht@@ -0,0 +1,94 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' is 'auto' and 'right' and 'width' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left' is 'auto' and 'right' and 'width' are not 'auto' and 'writing-mode' is 'vertical-lr', then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ height: 1em;+ left: auto;+ position: absolute;+ right: 1em;+ width: 1em;+ writing-mode: horizontal-tb;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left properties and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+6. 'bottom' is 'auto', 'top' and 'height' are not 'auto', then set 'auto' values for 'margin-top' and 'margin-bottom' to 0 and solve for 'bottom'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ (solve) : left: auto+ =====================+ 320px : width of containing block++And so computed left value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-215.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-215.xhtnew file mode 100644index 00000000000..3c486a0d565--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-215.xht@@ -0,0 +1,115 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'right' and 'width' are not 'auto' (overconstrained)</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left', 'right' and 'width' are not 'auto' and 'writing-mode' is 'vertical-lr' and if the values are over-constrained, then ignore the value for 'right' and solve for that value." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: 2em;+ position: absolute;+ right: 2em;+ width: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left properties and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+If none of the three are 'auto': If both 'margin-top' and 'margin-bottom' are 'auto', solve the equation under the extra constraint that the two margins get equal values. If one of 'margin-top' or 'margin-bottom' is 'auto', solve the equation for that value. If the values are over-constrained, ignore the value for 'bottom' and solve for that value.+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 160px : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 160px : left+ =====================+ 320px : width of containing block++give us++ (solve) : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 160px : left+ =====================+ 320px : width of containing block+++And so computed right value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-219.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-219.xhtnew file mode 100644index 00000000000..7903016af9b--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-219.xht@@ -0,0 +1,118 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'right' and 'width' are not 'auto' (overconstrained)</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-155-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left', 'right' and 'width' are not 'auto' and 'writing-mode' is 'vertical-lr' and if the values are over-constrained, then ignore the value for 'right' and solve for that value." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: 2em;+ position: absolute;+ right: 2em;+ width: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left properties and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+If none of the three are 'auto': If both 'margin-top' and 'margin-bottom' are 'auto', solve the equation under the extra constraint that the two margins get equal values. If one of 'margin-top' or 'margin-bottom' is 'auto', solve the equation for that value. If the values are over-constrained, ignore the value for 'bottom' and solve for that value.+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 160px : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 160px : left+ =====================+ 320px : width of containing block++give us++ (solve) : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 160px : left+ =====================+ 320px : width of containing block++And so computed right value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-221.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-221.xhtnew file mode 100644index 00000000000..d1c17afd498--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-221.xht@@ -0,0 +1,115 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'right' and 'width' are not 'auto' (overconstrained)</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left', 'right' and 'width' are not 'auto' and 'writing-mode' is 'vertical-lr' and if the values are over-constrained, then ignore the value for 'right' and solve for that value." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-lr;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: 2em;+ position: absolute;+ right: 2em;+ width: 1em;+ writing-mode: horizontal-tb;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *left properties and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.++"+If none of the three are 'auto': If both 'margin-top' and 'margin-bottom' are 'auto', solve the equation under the extra constraint that the two margins get equal values. If one of 'margin-top' or 'margin-bottom' is 'auto', solve the equation for that value. If the values are over-constrained, ignore the value for 'bottom' and solve for that value.+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 160px : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 160px : left+ =====================+ 320px : width of containing block++give us++ (solve) : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 160px : left+ =====================+ 320px : width of containing block++And so computed right value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002.xhtnew file mode 100644index 00000000000..8c64e048a70--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002.xht@@ -0,0 +1,116 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' and 'bottom' are 'auto', then set 'top' to the static position, the height is based on the content and then solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ height: auto;+ position: absolute;+ top: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.++3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 160px : top: auto: set to static position+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++gives us:++ 160px : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-014.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-014.xhtnew file mode 100644index 00000000000..91849263d60--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-014.xht@@ -0,0 +1,114 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' are 'auto' and bottom is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content and then solve for 'top'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: 2em;+ color: green;+ height: auto;+ position: absolute;+ top: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 160px : bottom+ =====================+ 320px : height of containing block++gives us:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 160px : bottom+ =====================+ 320px : height of containing block++And so computed top value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-026.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-026.xhtnew file mode 100644index 00000000000..09a75ddb475--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-026.xht@@ -0,0 +1,92 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to static position and solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ height: 1em;+ position: absolute;+ top: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position, otherwise set 'right' to the static position. Then solve for 'left' (if 'direction is 'rtl') or 'right' (if 'direction' is 'ltr').+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 160px : top: auto: set to static position+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-038.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-038.xhtnew file mode 100644index 00000000000..dd6de28262a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-038.xht@@ -0,0 +1,114 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content and then solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ height: auto;+ position: absolute;+ top: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 80px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++gives us:++ 80px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-050.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-050.xhtnew file mode 100644index 00000000000..7e5240c27f0--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-050.xht@@ -0,0 +1,92 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto', then solve for 'top'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: 1em;+ color: green;+ height: 1em;+ position: absolute;+ top: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 80px : bottom+ =====================+ 320px : height of containing block++And so computed top value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-062.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-062.xhtnew file mode 100644index 00000000000..c6ba6cad376--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-062.xht@@ -0,0 +1,92 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto', then solve for 'height'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: green;+ bottom: 1em;+ height: auto;+ position: absolute;+ top: 2em;+ width: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 160px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (solve) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 80px : bottom+ =====================+ 320px : height of containing block++And so computed height value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-074.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-074.xhtnew file mode 100644index 00000000000..36908480f19--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-074.xht@@ -0,0 +1,92 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto', then solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ height: 1em;+ position: absolute;+ top: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+6. 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 80px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-086.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-086.xhtnew file mode 100644index 00000000000..a19f5bd65c1--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-086.xht@@ -0,0 +1,116 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are not 'auto' (overconstrained)</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' and 'bottom' are not 'auto' and if the values are overconstrained, then ignore 'bottom' and solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: 2em;+ color: green;+ height: 1em;+ margin-bottom: 0em;+ margin-top: 0em;+ position: absolute;+ top: 2em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+If the values are over-constrained, ignore the value for 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 160px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 160px : bottom+ =====================+ 320px : height of containing block++gives us:++ 160px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom+ =====================+ 320px : height of containing block++And so computed bottom value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-102.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-102.xhtnew file mode 100644index 00000000000..f27a8c4146a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-102.xht@@ -0,0 +1,116 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'width' and 'right' are 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left', 'width' and 'right' are 'auto' and 'writing-mode' is 'vertical-rl', then set 'right' to the static position, the width is based on the content and then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: auto;+ width: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *right and *left properties are input into the §10.6.4 algorithms where *right properties refer to *top properties in the layout rules and where *left properties refer to *bottom properties in the layout rules.++"+If all three of 'top', 'height', and 'bottom' are auto, set 'top' to the static position and apply rule number three below.++3. 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : right: auto: set to static position+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ (based on the content) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ (solve) : left: auto+ =====================+ 320px : width of containing block++gives us:++ 80px : right: auto: set to static position+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : (based on the content) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ (solve) : left: auto+ =====================+ 320px : width of containing block++And so computed left value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-108.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-108.xhtnew file mode 100644index 00000000000..81999475aed--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-108.xht@@ -0,0 +1,117 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'width' and 'right' are 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left', 'width' and 'right' are 'auto' and 'writing-mode' is 'vertical-rl', then set 'right' to the static position, the width is based on the content and then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: auto;+ width: auto;+ writing-mode: horizontal-tb;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *right and *left properties are input into the §10.6.4 algorithms where *right properties refer to *top properties in the layout rules and where *left properties refer to *bottom properties in the layout rules.++"+If all three of 'top', 'height', and 'bottom' are auto, set 'top' to the static position and apply rule number three below.++3. 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : right: auto: set to static position+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ (based on the content) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ (solve) : left: auto+ =====================+ 320px : width of containing block++gives us:++ 80px : right: auto: set to static position+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : (based on the content) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ (solve) : left: auto+ =====================+ 320px : width of containing block++And so computed left value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-118.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-118.xhtnew file mode 100644index 00000000000..cb13e7fe70b--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-118.xht@@ -0,0 +1,114 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'width' and 'right' are 'auto' and 'left' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'width' and 'right' are 'auto' and 'left' is not 'auto' and 'writing-mode' is 'vertical-rl', then the width is based on the content and then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: 1em;+ position: absolute;+ right: auto;+ width: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *right and *left properties are input into the §10.6.4 algorithms where *right properties refer to *top properties in the layout rules and where *left properties refer to *bottom properties in the layout rules.++"+1. 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'top'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ (solve) : right: auto+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ (based on the content) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 80px : left+ =====================+ 320px : width of containing block++gives us:++ (solve) : right: auto+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : (based on the content) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 80px : left+ =====================+ 320px : width of containing block++And so computed right value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-124.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-124.xhtnew file mode 100644index 00000000000..58fd87a139c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-124.xht@@ -0,0 +1,115 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'width' and 'right' are 'auto' and 'left' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'width' and 'right' are 'auto' and 'left' is not 'auto' and 'writing-mode' is 'vertical-rl', then the width is based on the content and then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: 1em;+ position: absolute;+ right: auto;+ width: auto;+ writing-mode: horizontal-tb;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *right and *left properties are input into the §10.6.4 algorithms where *right properties refer to *top properties in the layout rules and where *left properties refer to *bottom properties in the layout rules.++"+1. 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'top'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ (solve) : right: auto+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ (based on the content) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 80px : left+ =====================+ 320px : width of containing block++gives us:++ (solve) : right: auto+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : (based on the content) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 80px : left+ =====================+ 320px : width of containing block++And so computed right value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-134.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-134.xhtnew file mode 100644index 00000000000..d413b3dc9e9--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-134.xht@@ -0,0 +1,92 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'right' are 'auto' and 'width' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left' and 'right' are 'auto' and 'width' is not 'auto' and 'writing-mode' is 'vertical-rl', then set 'right' to the static position and then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: green;+ height: 1em;+ left: auto;+ position: absolute;+ right: auto;+ width: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *right and *left properties are input into the §10.6.4 algorithms where *right properties refer to *top properties in the layout rules and where *left properties refer to *bottom properties in the layout rules.++"+2. 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to the static position, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : right: auto: set to static position+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ (solve) : left: auto+ =====================+ 320px : width of containing block++And so computed left value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-140.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-140.xhtnew file mode 100644index 00000000000..76086c68798--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-140.xht@@ -0,0 +1,93 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'right' are 'auto' and 'width' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left' and 'right' are 'auto' and 'width' is not 'auto' and 'writing-mode' is 'vertical-rl', then set 'right' to the static position and then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: green;+ height: 1em;+ left: auto;+ position: absolute;+ right: auto;+ width: 1em;+ writing-mode: horizontal-tb;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *right and *left properties are input into the §10.6.4 algorithms where *right properties refer to *top properties in the layout rules and where *left properties refer to *bottom properties in the layout rules.++"+2. 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to the static position, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : right: auto: set to static position+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ (solve) : left: auto+ =====================+ 320px : width of containing block++And so computed left value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-150.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-150.xhtnew file mode 100644index 00000000000..ef77512748b--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-150.xht@@ -0,0 +1,92 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'width' are 'auto' and 'right' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left' and 'width' are 'auto' and 'right' is not 'auto' and 'writing-mode' is 'vertical-rl', then the width is based on the content and then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: 1em;+ width: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *right and *left properties are input into the §10.6.4 algorithms where *right properties refer to *top properties in the layout rules and where *left properties refer to *bottom properties in the layout rules.++"+3. 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : (based on the content) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ (solve) : left: auto+ =====================+ 320px : width of containing block++And so computed left value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-156.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-156.xhtnew file mode 100644index 00000000000..9a671263a73--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-156.xht@@ -0,0 +1,93 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'width' are 'auto' and 'right' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left' and 'width' are 'auto' and 'right' is not 'auto' and 'writing-mode' is 'vertical-rl', then the width is based on the content and then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: 1em;+ width: auto;+ writing-mode: horizontal-tb;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *right and *left properties are input into the §10.6.4 algorithms where *right properties refer to *top properties in the layout rules and where *left properties refer to *bottom properties in the layout rules.++"+3. 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : (based on the content) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ (solve) : left: auto+ =====================+ 320px : width of containing block++And so computed left value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-166.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-166.xhtnew file mode 100644index 00000000000..7737d941062--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-166.xht@@ -0,0 +1,92 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'right' is 'auto', 'width' and 'left' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'right' is 'auto', 'width' and 'left' are not 'auto' and 'writing-mode' is 'vertical-rl', then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: green;+ height: 1em;+ left: 1em;+ position: absolute;+ right: auto;+ width: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *right and *left properties are input into the §10.6.4 algorithms where *right properties refer to *top properties in the layout rules and where *left properties refer to *bottom properties in the layout rules.++"+4. 'top' is 'auto', 'height' and 'bottom' are not 'auto', then set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'top'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ (solve) : right: auto+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 80px : left+ =====================+ 320px : width of containing block++And so computed right value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-172.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-172.xhtnew file mode 100644index 00000000000..051f4bbbc7f--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-172.xht@@ -0,0 +1,93 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'right' is 'auto' and 'width' and 'left' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'right' is 'auto' and 'width' and 'left' are not 'auto' and 'writing-mode' is 'vertical-rl', then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: green;+ height: 1em;+ left: 1em;+ position: absolute;+ right: auto;+ width: 1em;+ writing-mode: horizontal-tb;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *right and *left properties are input into the §10.6.4 algorithms where *right properties refer to *top properties in the layout rules and where *left properties refer to *bottom properties in the layout rules.++"+4. 'top' is 'auto', 'height' and 'bottom' are not 'auto', then set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'top'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ (solve) : right: auto+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 80px : left+ =====================+ 320px : width of containing block++And so computed right value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-182.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-182.xhtnew file mode 100644index 00000000000..d0b8d0d199e--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-182.xht@@ -0,0 +1,92 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'width' is 'auto' and 'left' and 'right' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'right' is 'auto', 'width' and 'left' are not 'auto' and 'writing-mode' is 'vertical-rl', then solve for 'width'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: green;+ height: 1em;+ left: 1em;+ position: absolute;+ right: 2em;+ width: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *right and *left properties are input into the §10.6.4 algorithms where *right properties refer to *top properties in the layout rules and where *left properties refer to *bottom properties in the layout rules.++"+5. 'height' is 'auto', 'top' and 'bottom' are not 'auto', then 'auto' values for 'margin-top' and 'margin-bottom' are set to 0 and solve for 'height'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 160px : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ (solve) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 80px : left+ =====================+ 320px : width of containing block++And so computed width value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-188.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-188.xhtnew file mode 100644index 00000000000..62400a65278--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-188.xht@@ -0,0 +1,93 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'width' is 'auto' and 'left' and 'right' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'width' is 'auto' and 'left' and 'right' are not 'auto' and 'writing-mode' is 'vertical-rl', then solve for 'width'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: green;+ height: 1em;+ left: 1em;+ position: absolute;+ right: 2em;+ width: auto;+ writing-mode: horizontal-tb;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *right and *left properties are input into the §10.6.4 algorithms where *right properties refer to *top properties in the layout rules and where *left properties refer to *bottom properties in the layout rules.++"+5. 'height' is 'auto', 'top' and 'bottom' are not 'auto', then 'auto' values for 'margin-top' and 'margin-bottom' are set to 0 and solve for 'height'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 160px : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ (solve) : width: auto+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 80px : left+ =====================+ 320px : width of containing block++And so computed width value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-198.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-198.xhtnew file mode 100644index 00000000000..3f740309f47--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-198.xht@@ -0,0 +1,92 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' is 'auto' and 'right' and 'width' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left' is 'auto' and 'right' and 'width' are not 'auto' and 'writing-mode' is 'vertical-rl', then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: 1em;+ width: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *right and *left properties are input into the §10.6.4 algorithms where *right properties refer to *top properties in the layout rules and where *left properties refer to *bottom properties in the layout rules.++"+6. 'bottom' is 'auto', 'top' and 'height' are not 'auto', then set 'auto' values for 'margin-top' and 'margin-bottom' to 0 and solve for 'bottom'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ (solve) : left: auto+ =====================+ 320px : width of containing block++And so computed left value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-204.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-204.xhtnew file mode 100644index 00000000000..860145de990--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-204.xht@@ -0,0 +1,94 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' is 'auto' and 'right' and 'width' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left' is 'auto' and 'right' and 'width' are not 'auto' and 'writing-mode' is 'vertical-rl', then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ height: 1em;+ left: auto;+ position: absolute;+ right: 1em;+ width: 1em;+ writing-mode: horizontal-tb;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *right and *left properties are input into the §10.6.4 algorithms where *right properties refer to *top properties in the layout rules and where *left properties refer to *bottom properties in the layout rules.++"+6. 'bottom' is 'auto', 'top' and 'height' are not 'auto', then set 'auto' values for 'margin-top' and 'margin-bottom' to 0 and solve for 'bottom'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ (solve) : left: auto+ =====================+ 320px : width of containing block++And so computed left value must be 160px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-214.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-214.xhtnew file mode 100644index 00000000000..bb31e7a2ec1--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-214.xht@@ -0,0 +1,114 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'right' and 'width' are not 'auto' (overconstrained)</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left', 'right' and 'width' are not 'auto' and 'writing-mode' is 'vertical-rl' and if the values are over-constrained, then ignore the value for 'left' and solve for that value." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: 2em;+ position: absolute;+ right: 2em;+ width: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *right and *left properties are input into the §10.6.4 algorithms where *right properties refer to *top properties in the layout rules and where *left properties refer to *bottom properties in the layout rules.++"+If none of the three are 'auto': If both 'margin-top' and 'margin-bottom' are 'auto', solve the equation under the extra constraint that the two margins get equal values. If one of 'margin-top' or 'margin-bottom' is 'auto', solve the equation for that value. If the values are over-constrained, ignore the value for 'bottom' and solve for that value.+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 160px : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 160px : left+ =====================+ 320px : width of containing block++give us++ 160px : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ (solve) : left+ =====================+ 320px : width of containing block++And so computed left value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-220.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-220.xhtnew file mode 100644index 00000000000..687ca27436b--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-220.xht@@ -0,0 +1,115 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'right' and 'width' are not 'auto' (overconstrained)</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-003-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left', 'right' and 'width' are not 'auto' and 'writing-mode' is 'vertical-rl' and if the values are over-constrained, then ignore the value for 'left' and solve for that value." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: 2em;+ position: absolute;+ right: 2em;+ width: 1em;+ writing-mode: horizontal-tb;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *right and *left properties are input into the §10.6.4 algorithms where *right properties refer to *top properties in the layout rules and where *left properties refer to *bottom properties in the layout rules.++"+If none of the three are 'auto': If both 'margin-top' and 'margin-bottom' are 'auto', solve the equation under the extra constraint that the two margins get equal values. If one of 'margin-top' or 'margin-bottom' is 'auto', solve the equation for that value. If the values are over-constrained, ignore the value for 'bottom' and solve for that value.+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 160px : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ 160px : left+ =====================+ 320px : width of containing block++give us++ 160px : right+ ++ 0px : margin-right+ ++ 0px : border-right-width+ ++ 0px : padding-right+ ++ 80px : width+ ++ 0px : padding-left+ ++ 0px : border-left-width+ ++ 0px : margin-left+ ++ (solve) : left+ =====================+ 320px : width of containing block++And so computed left value must be 80px .+*/++ ]]></style>++ </head>++ <body>++ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>++ <div id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-001.htmlnew file mode 100644index 00000000000..0fcb240d445--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-001.html@@ -0,0 +1,42 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>Testing Available Space in Orthogonal Flows / max-height / content height</title>+<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">+<link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto">+<link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/reference/available-size-001-ref.html">+<meta name="assert" content="When an orthogonal flow's parent doesn't have a definite block size and the nearest ancestor scroller does not have a fixed height but does have a fixed max-height, use that, making sure you stick with the content height.">+<style>+body > div {+ font-family: monospace; /* to be able to reliably measure things in ch*/+ font-size: 20px;+ max-height: 8ch; /* **max**-height does not give the element a definite block size */+ overflow: hidden;+ color: transparent;+ position: relative; /* to act as a container of #red */+ padding: 1ch 0;+}++div > div { writing-mode: vertical-rl; }++span {+ background: green;+ display: inline-block; /* This should not change it's size or position, but makes the size of the background predictable*/+}++#red { /* Not necessary when when comparing to the reference, but makes human judgement easier */+ position: absolute;+ background: red;+ left: 0; top: 1ch;+ writing-mode: vertical-rl;+ z-index: -1;+}+</style>++<p>Test passes if there is a <strong>green rectangle</strong> below and <strong>no red</strong>.++<div>+ <aside id="red">0</aside>+ <div>0 0 0 0 <span>0</span> 0 0 0</div> <!-- If this div take its height from+ the max-height of its parent, it should wrap just right for the green 0 to+ overlap with the red one. -->+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-002.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-002.htmlnew file mode 100644index 00000000000..c2c69e84866--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-002.html@@ -0,0 +1,43 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>Testing Available Space in Orthogonal Flows / max-height / no scroller</title>+<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">+<link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto">+<link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/reference/available-size-002-ref.html">+<meta name="assert" content="When an orthogonal flow's ancestor doesn't have a definite block size but does have a fixed max-height, but isn't a scroller, do not use that size.">+<style>+body > div {+ font-family: monospace; /* to be able to reliably measure things in ch*/+ font-size: 20px;+ max-height: 8ch; /* **max**-height does not give the element a definite block size */+ color: transparent;+ position: relative; /* to act as a container of #green */+}++div > div > div { writing-mode: vertical-rl; }++span {+ background: white;+ display: inline-block; /* This should not change it's size or position, but makes the size of the background predictable*/+}++#green {+ position: absolute;+ background: green;+ left: 0;+ writing-mode: vertical-rl;+ z-index: -1;+}+</style>++<p>Test passes if there is a <strong>green rectangle</strong> below and <strong>no red</strong>.++<div>+ <div>+ <aside id="green">0</aside>+ <div>0 0 0 0 <span>0</span> 0 0 0</div> <!-- If this div takes its height from+ the max-height of its parent (which it shouldn't, since it's not a scroller),+ it should wrap just right for the white 0 to+ overlap with the green one. -->+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-004.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-004.htmlnew file mode 100644index 00000000000..bd733db56b1--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-004.html@@ -0,0 +1,42 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>Testing Available Space in Orthogonal Flows / height / no scroller</title>+<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">+<link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto">+<link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/reference/available-size-002-ref.html">+<meta name="assert" content="When an orthogonal flow's parent doesn't have a definite block size but an ancestor that is **not** a scroller does have a fixed height, do not use that.">+<style>+body > div {+ font-family: monospace; /* to be able to reliably measure things in ch*/+ font-size: 20px;+ height: 8ch;+ width: 300px; /* Shrinkwrapping this div is not what we're interested in testing here, so give it a width. See nested-orthogonal-001.html for that. */+ color: transparent;+ position: relative; /* to act as a container of #green */+}++div > div { padding-bottom: 2ch; } /* so that the content height of the parent and of the fixed size ancestor are different */+div > div > div { writing-mode: vertical-rl; }++span {+ background: white;+ display: inline-block; /* This should not change it's size or position, but makes the size of the background predictable*/+}++#green { /* Not necessary when when comparing to the reference, but makes human judgement easier */+ position: absolute;+ background: green;+ left: 0;+ writing-mode: vertical-rl;+ z-index: -1;+}+</style>++<p>Test passes if there is a <strong>green rectangle</strong> below and <strong>no red</strong>.++<div>+ <aside id="green">0</aside>+ <div><div>0 0 0 0 <span>0</span> 0 0 0</div></div> <!-- If this div take its height from+ the height of its fixed height non scrollable ancestor (which is should not),+ it should wrap just right for the white 0 to overlap with the green one. -->+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-010.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-010.htmlnew file mode 100644index 00000000000..90c0a1ee886--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-010.html@@ -0,0 +1,52 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>Testing Available Space in Orthogonal Flows / ICB / tall max-height scroller</title>+<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">+<link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto">+<link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/reference/available-size-002-ref.html">+<meta name="assert" content="When an orthogonal flow's parent doesn't have a definite block size, and the nearest scroller goes not have a fixed height or max-height, use the ICB, even if there is another scroller ancestor up the chain that does have fixed dimensions.">+<style>+body { margin-top: 0; margin-bottom: 0; } /* Shouldn't matter, but in some browsers does. -007 tests this aspect specifically. */+:root { overflow: hidden; }+div {+ writing-mode: vertical-rl;+ font-family: monospace;+ font-size: 20px;+ position: relative; /* to be a container for #red*/+}+.spacer { /* using 5 spacers of 20vh each instead of a single large one, so+ that the line would wrap between spacers if it ends up being+ shorter thatn 100vh*/+ display: inline-block;+ height: calc(20vh - 0.1px); /*Using this instead of 20vh, to account for accumulation of rounding errors, that might make 5*20vh taller than 100vh in some browsers*/+}++span {+ background: green;+ display: inline-block; /* This should not change it's size or position, but makes the size of the background predictable*/+ color: transparent;+}++#red { /* Not necessary when when comparing to the reference, but makes human judgement easier */+ position: absolute;+ background: red;+ writing-mode: vertical-rl;+ z-index: -1;+ font-family: monospace;+ font-size: 20px;+ left: 0; top: 0;+}++section { overflow: hidden; }+body > section { height: 20ch; }+</style>++<p>Test passes if there is a <strong>green rectangle</strong> below and <strong>no red</strong>.++<section>+<section>+<section>+<div><aside id="red">0</aside><aside class="spacer"></aside><aside class="spacer"></aside><aside class="spacer"></aside><aside class="spacer"></aside><aside class="spacer"></aside> <span>0</span></div>+</section>+</section>+</section>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-012.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-012.htmlnew file mode 100644index 00000000000..a4730dbb9e9--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-012.html@@ -0,0 +1,43 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>Testing Available Space in Orthogonal Flows / max-height + min-height / content height</title>+<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">+<link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto">+<link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/reference/available-size-001-ref.html">+<meta name="assert" content="When an orthogonal flow's parent doesn't have a definite block size and the nearest ancestor scroller does not have a fixed height but does have a fixed max-height, use that, increased by min-height if it exists and is larger. (same as -001, with min-height)">+<style>+body > div {+ font-family: monospace; /* to be able to reliably measure things in ch*/+ font-size: 20px;+ max-height: 4ch; /* **max**-height does not give the element a definite block size */+ min-height: 8ch;+ overflow: hidden;+ color: transparent;+ position: relative; /* to act as a container of #red */+ padding: 1ch 0;+}++div > div { writing-mode: vertical-rl; }++span {+ background: green;+ display: inline-block; /* This should not change it's size or position, but makes the size of the background predictable*/+}++#red { /* Not necessary when when comparing to the reference, but makes human judgement easier */+ position: absolute;+ background: red;+ left: 0; top: 1ch;+ writing-mode: vertical-rl;+ z-index: -1;+}+</style>++<p>Test passes if there is a <strong>green rectangle</strong> below and <strong>no red</strong>.++<div>+ <aside id="red">0</aside>+ <div>0 0 0 0 <span>0</span> 0 0 0</div> <!-- If this div take its height from+ the min-height of its parent, it should wrap just right for the green 0 to+ overlap with the red one. -->+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-017.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-017.htmlnew file mode 100644index 00000000000..f5f0c0a7967--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-017.html@@ -0,0 +1,42 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>Testing Available Space in Orthogonal Flows / height + min-height parent</title>+<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">+<link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto">+<link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/reference/available-size-002-ref.html">+<meta name="assert" content="When an orthogonal flow's parent has a height and a min-height larger than the height, use min-height as the available size.">+<style>+body > div {+ font-family: monospace; /* to be able to reliably measure things in ch*/+ font-size: 20px;+ height: 4ch;+ min-height: 8ch;+ color: transparent;+ position: relative; /* to act as a container of #green */+}++div > div { writing-mode: vertical-rl; }++span {+ background: green;+ display: inline-block; /* This should not change it's size or position, but makes the size of the background predictable*/+}++#red {+ position: absolute;+ background: red;+ left: 0;+ writing-mode: vertical-rl;+ z-index: -1;+}+</style>++<p>Test passes if there is a <strong>green rectangle</strong> below and <strong>no red</strong>.++<div>+ <aside id="red">0</aside>+ <div>0 0 0 0 <span>0</span> 0 0 0</div> <!-- If this div takes its height from+ the min-height of its parent (which it should)+ it should wrap just right for the green 0 to+ overlap with the red one. -->+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-018.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-018.htmlnew file mode 100644index 00000000000..f95b01dbc1b--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-018.html@@ -0,0 +1,42 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>Testing Available Space in Orthogonal Flows / max-height + min-height parent</title>+<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">+<link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto">+<link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/reference/available-size-002-ref.html">+<meta name="assert" content="When an orthogonal flow's parent has a max-height and a min-height larger than the height, use min-height as the available size.">+<style>+body > div {+ font-family: monospace; /* to be able to reliably measure things in ch*/+ font-size: 20px;+ max-height: 4ch;+ min-height: 8ch;+ color: transparent;+ position: relative; /* to act as a container of #green */+}++div > div { writing-mode: vertical-rl; }++span {+ background: green;+ display: inline-block; /* This should not change it's size or position, but makes the size of the background predictable*/+}++#red {+ position: absolute;+ background: red;+ left: 0;+ writing-mode: vertical-rl;+ z-index: -1;+}+</style>++<p>Test passes if there is a <strong>green rectangle</strong> below and <strong>no red</strong>.++<div>+ <aside id="red">0</aside>+ <div>0 0 0 0 <span>0</span> 0 0 0</div> <!-- If this div takes its height from+ the min-height of its parent (which it should)+ it should wrap just right for the green 0 to+ overlap with the red one. -->+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-slr-066.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-slr-066.xhtnew file mode 100644index 00000000000..d15f5dfcfa0--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-slr-066.xht@@ -0,0 +1,45 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: writing mode (sideways-lr) of document - horizontal position of first block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-4/#writing-mode" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="help" href="http://www.w3.org/TR/2011/REC-CSS2-20110607/visuren.html#block-formatting" title="9.4.1 Block formatting contexts" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-066-ref.xht" />++ <meta content="image" name="flags" />+ <meta content="This test checks that, when 'writing-mode' value of the root element is set to 'sideways-lr', then its block boxes are laid out rightwardedly (from left to right) one after the other beginning at its lefthand side. Also, the inline flow direction is 'topwardedly', that is inline boxes in the line box flow from the bottom toward the top; inline boxes are laid out vertically, one after the other, starting at the physical bottom side of its containing block." name="assert" />++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: sideways-lr;+ }++ div+ {+ background-color: blue;+ height: 100px;+ width: 100px;+ }+ ]]></style>+ </head>++ <body>++ <div></div>++ <p><img src="support/block-flow-direction-066-exp-res.png" width="358" height="36" alt="Image download support must be enabled" /></p>++ <!--+ The image says:+ Test passes if there is a blue square in the+ <strong>bottom-left corner</strong> of the page.+ -->++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-042.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-042.xhtnew file mode 100644index 00000000000..ad4ddd4028d--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-042.xht@@ -0,0 +1,96 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sideways-rl - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-4/#writing-mode" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-002-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that block-level boxes in a block formating context with 'writing-mode' set to 'sideways-rl' are laid out one after the other with the first beginning at the right-hand side of its containing block; they are ordered from right to left meaning that the 1st block box is the rightmost one, then the 2nd block is juxtaposed at its left-hand side, then the 3rd block is juxtaposed at the 2nd block on its left-hand side, etc... " name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: sideways-rl;+ }+ /*+ "+ The principal writing mode of the document is determined by the writing-mode+ and direction values specified on the root element.+ "+ */++ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ height: 9em;+ }++ div+ {+ background-color: blue;+ border-bottom: blue solid 1em;+ border-top: blue solid 1em;+ }++ div.right-border+ {+ border-right: blue solid 1em;+ }++ div#left-border+ {+ border-left: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++<!-- The right-most line of right-most "S" --> <div class="right-border">A BBBB</div>++<!-- The 2nd right-most line of right-most "S" --> <div>C D E</div>++<!-- The 3rd right-most line of right-most "S" --> <div>F G H</div>++<!-- The 4th right-most line of right-most "S" --> <div>JJJJ K</div>++++<!-- The right-most line of left-most "S" --> <div class="right-border">L MMMM</div>++<!-- The 2nd right-most line of left-most "S" --> <div>Q R S</div>++<!-- The 3rd right-most line of left-most "S" --> <div>T U V</div>++<!-- The 4th right-most line of left-most "S" --> <div>WWWW X</div>++++<!-- The right-most line of "A" --> <div class="right-border">YYYYYYY</div>++<!-- The 2nd right-most line of "A" --> <div>Z a </div>++<!-- The 3rd right-most line of "A" --> <div>b c </div>++<!-- The 4th right-most line of "A" --> <div>ddddddd</div>++++<!-- The right-most line of "P" --> <div class="right-border">eeee </div>++<!-- The 2nd right-most line of "P" --> <div>f g </div>++<!-- The 3rd right-most line of "P" --> <div>h j </div>++<!-- The 4th right-most line of "P" --> <div id="left-border">kkkkkkk</div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-045.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-045.xhtnew file mode 100644index 00000000000..ba98d51c7f0--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-045.xht@@ -0,0 +1,90 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: 'float: left' and 'sideways-rl' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-4/#writing-mode" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that a left-floated box with its 'writing-mode' set to 'sideways-rl' establishes a block formating context with a right-to-left block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div#floated-left+ {+ background-color: blue;+ border-top: blue solid 1em;+ float: left;+ height: 8em;+ writing-mode: sideways-rl;+ }++ div.right-border+ {+ border-right: blue solid 1em;+ }++ div#left-border+ {+ border-left: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div id="floated-left">++<!-- The right-most line of right-most "S" --> <div class="right-border">A BBBB</div>++<!-- The 2nd right-most line of right-most "S" --> <div>C D E</div>++<!-- The 3rd right-most line of right-most "S" --> <div>F G H</div>++<!-- The 4th right-most line of right-most "S" --> <div>JJJJ K</div>++++<!-- The right-most line of left-most "S" --> <div class="right-border">L MMMM</div>++<!-- The 2nd right-most line of left-most "S" --> <div>Q R S</div>++<!-- The 3rd right-most line of left-most "S" --> <div>T U V</div>++<!-- The 4th right-most line of left-most "S" --> <div>WWWW X</div>++++<!-- The right-most line of "A" --> <div class="right-border">YYYYYYY</div>++<!-- The 2nd right-most line of "A" --> <div>Z a </div>++<!-- The 3rd right-most line of "A" --> <div>b c </div>++<!-- The 4th right-most line of "A" --> <div>ddddddd</div>++++<!-- The right-most line of "P" --> <div class="right-border">eeee </div>++<!-- The 2nd right-most line of "P" --> <div>f g </div>++<!-- The 3rd right-most line of "P" --> <div>h j </div>++<!-- The 4th right-most line of "P" --> <div id="left-border">kkkkkkk</div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-046.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-046.xhtnew file mode 100644index 00000000000..e1c96048d01--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-046.xht@@ -0,0 +1,92 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: 'float: left' and 'sideways-rl' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-4/#writing-mode" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that left-floated boxes with 'writing-mode' set to 'sideways-rl' establish block formating contexts with a right-to-left block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div.floated-left+ {+ background-color: blue;+ border-bottom: blue solid 1em;+ border-left: blue solid 1em;+ border-top: blue solid 1em;+ float: left;+ writing-mode: sideways-rl;+ }++ div#right-border+ {+ border-right: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div class="floated-left">++<!-- The right-most line of "P" --> <div>eeee </div>++<!-- The 2nd right-most line of "P" --> <div>f g </div>++<!-- The 3rd right-most line of "P" --> <div>h j </div>++<!-- The 4th right-most line of "P" --> <div>kkkkkkk</div>++ </div>++ <div class="floated-left">++<!-- The right-most line of "A" --> <div>YYYYYYY</div>++<!-- The 2nd right-most line of "A" --> <div>Z a </div>++<!-- The 3rd right-most line of "A" --> <div>b c </div>++<!-- The 4th right-most line of "A" --> <div>ddddddd</div>++ </div>++ <div class="floated-left">++<!-- The right-most line of left-most "S" --> <div>L MMMM</div>++<!-- The 2nd right-most line of left-most "S" --> <div>Q R S</div>++<!-- The 3rd right-most line of left-most "S" --> <div>T U V</div>++<!-- The 4th right-most line of left-most "S" --> <div>WWWW X</div>++ </div>++ <div class="floated-left" id="right-border">++<!-- The right-most line of right-most "S" --> <div>A BBBB</div>++<!-- The 2nd right-most line of right-most "S" --> <div>C D E</div>++<!-- The 3rd right-most line of right-most "S" --> <div>F G H</div>++<!-- The 4th right-most line of right-most "S" --> <div>JJJJ K</div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-049.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-049.xhtnew file mode 100644index 00000000000..dcad45bdbfd--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-049.xht@@ -0,0 +1,96 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: position absolute and 'sideways-rl' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-4/#writing-mode" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that an absolutely positioned box with its 'writing-mode' set to 'sideways-rl' establishes a block formating context with a right-to-left block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div#abs-pos+ {+ height: 9em;+ left: auto;+ position: absolute;+ writing-mode: sideways-rl;+ }++ div#abs-pos > div+ {+ background-color: blue;+ border-bottom: blue solid 1em;+ border-top: blue solid 1em;+ }++ div.right-border+ {+ border-right: blue solid 1em;+ }++ div#left-border+ {+ border-left: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div id="abs-pos">++<!-- The right-most line of right-most "S" --> <div class="right-border">A BBBB</div>++<!-- The 2nd right-most line of right-most "S" --> <div>C D E</div>++<!-- The 3rd right-most line of right-most "S" --> <div>F G H</div>++<!-- The 4th right-most line of right-most "S" --> <div>JJJJ K</div>++++<!-- The right-most line of left-most "S" --> <div class="right-border">L MMMM</div>++<!-- The 2nd right-most line of left-most "S" --> <div>Q R S</div>++<!-- The 3rd right-most line of left-most "S" --> <div>T U V</div>++<!-- The 4th right-most line of left-most "S" --> <div>WWWW X</div>++++<!-- The right-most line of "A" --> <div class="right-border">YYYYYYY</div>++<!-- The 2nd right-most line of "A" --> <div>Z a </div>++<!-- The 3rd right-most line of "A" --> <div>b c </div>++<!-- The 4th right-most line of "A" --> <div>ddddddd</div>++++<!-- The right-most line of "P" --> <div class="right-border">eeee </div>++<!-- The 2nd right-most line of "P" --> <div>f g </div>++<!-- The 3rd right-most line of "P" --> <div>h j </div>++<!-- The 4th right-most line of "P" --> <div id="left-border">kkkkkkk</div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-051.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-051.xhtnew file mode 100644index 00000000000..3be5d5fe024--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-051.xht@@ -0,0 +1,106 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: inline-block and 'sideways-rl' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-4/#writing-mode" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that an inline-block with its 'writing-mode' set to 'sideways-rl' establishes a block formating context with a right-to-left block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div#inline-block+ {+ background-color: blue;+ border-top: blue solid 1em;+ display: inline-block;+ height: 8em;+ vertical-align: top;+ /*+ Why 'vertical-align: top' ?+ See+ http://lists.w3.org/Archives/Public/public-css-testsuite/2014Dec/0013.html+ for explanations+ */+ writing-mode: sideways-rl;+ }++ span+ {+ display: block;+ }++ span.right-border+ {+ border-right: blue solid 1em;+ }++ span#left-border+ {+ border-left: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div>++ <div id="inline-block">++<!-- The right-most line of right-most "S" --> <span class="right-border">A BBBB</span>++<!-- The 2nd right-most line of right-most "S" --> <span>C D E</span>++<!-- The 3rd right-most line of right-most "S" --> <span>F G H</span>++<!-- The 4th right-most line of right-most "S" --> <span>JJJJ K</span>++++<!-- The right-most line of left-most "S" --> <span class="right-border">L MMMM</span>++<!-- The 2nd right-most line of left-most "S" --> <span>Q R S</span>++<!-- The 3rd right-most line of left-most "S" --> <span>T U V</span>++<!-- The 4th right-most line of left-most "S" --> <span>WWWW X</span>++++<!-- The right-most line of "A" --> <span class="right-border">YYYYYYY</span>++<!-- The 2nd right-most line of "A" --> <span>Z a </span>++<!-- The 3rd right-most line of "A" --> <span>b c </span>++<!-- The 4th right-most line of "A" --> <span>ddddddd</span>++++<!-- The right-most line of "P" --> <span class="right-border">eeee </span>++<!-- The 2nd right-most line of "P" --> <span>f g </span>++<!-- The 3rd right-most line of "P" --> <span>h j </span>++<!-- The 4th right-most line of "P" --> <span id="left-border">kkkkkkk</span>++ </div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-052.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-052.xhtnew file mode 100644index 00000000000..bce2e7f3a78--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-052.xht@@ -0,0 +1,72 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: inline-block and 'sideways-rl' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-4/#writing-mode" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that an inline-block with its 'writing-mode' set to 'sideways-rl' establishes a block formating context with a right-to-left block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div#inline-block+ {+ background-color: blue;+ border-top: blue solid 1em;+ display: inline-block;+ height: 8em;+ vertical-align: top;+ /*+ Why 'vertical-align: top' ?+ See+ http://lists.w3.org/Archives/Public/public-css-testsuite/2014Dec/0013.html+ for explanations+ */+ writing-mode: sideways-rl;+ }++ span+ {+ border-right: blue solid 1em;+ display: block;+ }++ span#left-border+ {+ border-left: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div>++ <div id="inline-block">++<!-- The right-most "S" --> <span>A BBBB C D E F G H JJJJ K</span>++<!-- The left-most "S" --> <span>L MMMM Q R S T U V WWWW X</span>++<!-- The "A" --> <span>YYYYYYY Z a b c ddddddd</span>++<!-- The "P" --> <span id="left-border">eeee f g h j kkkkkkk</span>++ </div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-053.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-053.xhtnew file mode 100644index 00000000000..a901bec3480--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-053.xht@@ -0,0 +1,102 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: inline-block and 'sideways-rl' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-4/#writing-mode" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that an inline-block with its 'writing-mode' set to 'sideways-rl' establishes a block formating context with a right-to-left block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div.inline-block+ {+ background-color: blue;+ border-right: blue solid 1em;+ border-top: blue solid 1em;+ display: inline-block;+ height: 8em;+ vertical-align: top;+ /*+ Why 'vertical-align: top' ?+ See+ http://lists.w3.org/Archives/Public/public-css-testsuite/2014Dec/0013.html+ for explanations+ */+ writing-mode: sideways-rl;+ }++ span+ {+ display: block;+ }++ span#left-border+ {+ border-left: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div>++ <div class="inline-block">++<!-- The right-most line of "P" --> <span>eeee </span>++<!-- The 2nd right-most line of "P" --> <span>f g </span>++<!-- The 3rd right-most line of "P" --> <span>h j </span>++<!-- The 4th right-most line of "P" --> <span id="left-border">kkkkkkk</span>++ </div><div class="inline-block">++<!-- The right-most line of "A" --> <span>YYYYYYY</span>++<!-- The 2nd right-most line of "A" --> <span>Z a </span>++<!-- The 3rd right-most line of "A" --> <span>b c </span>++<!-- The 4th right-most line of "A" --> <span>ddddddd</span>++ </div><div class="inline-block">++<!-- The right-most line of left-most "S" --> <span>L MMMM</span>++<!-- The 2nd right-most line of left-most "S" --> <span>Q R S</span>++<!-- The 3rd right-most line of left-most "S" --> <span>T U V</span>++<!-- The 4th right-most line of left-most "S" --> <span>WWWW X</span>++ </div><div class="inline-block">++<!-- The right-most line of right-most "S" --> <span>A BBBB</span>++<!-- The 2nd right-most line of right-most "S" --> <span>C D E</span>++<!-- The 3rd right-most line of right-most "S" --> <span>F G H</span>++<!-- The 4th right-most line of right-most "S" --> <span>JJJJ K</span>++ </div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-057.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-057.xhtnew file mode 100644index 00000000000..2928c8fb326--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-057.xht@@ -0,0 +1,95 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: table-cell and 'sideways-rl' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-4/#writing-mode" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that a table-cell with its 'writing-mode' set to 'sideways-rl' establishes a block formating context with a right-to-left block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div#table-cell+ {+ display: table-cell;+ height: 9em;+ writing-mode: sideways-rl;+ }++ div#table-cell > div+ {+ background-color: blue;+ border-bottom: blue solid 1em;+ border-top: blue solid 1em;+ }++ div.right-border+ {+ border-right: blue solid 1em;+ }++ div#left-border+ {+ border-left: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div id="table-cell">++<!-- The right-most line of right-most "S" --> <div class="right-border">A BBBB</div>++<!-- The 2nd right-most line of right-most "S" --> <div>C D E</div>++<!-- The 3rd right-most line of right-most "S" --> <div>F G H</div>++<!-- The 4th right-most line of right-most "S" --> <div>JJJJ K</div>++++<!-- The right-most line of left-most "S" --> <div class="right-border">L MMMM</div>++<!-- The 2nd right-most line of left-most "S" --> <div>Q R S</div>++<!-- The 3rd right-most line of left-most "S" --> <div>T U V</div>++<!-- The 4th right-most line of left-most "S" --> <div>WWWW X</div>++++<!-- The right-most line of "A" --> <div class="right-border">YYYYYYY</div>++<!-- The 2nd right-most line of "A" --> <div>Z a </div>++<!-- The 3rd right-most line of "A" --> <div>b c </div>++<!-- The 4th right-most line of "A" --> <div>ddddddd</div>++++<!-- The right-most line of "P" --> <div class="right-border">eeee </div>++<!-- The 2nd right-most line of "P" --> <div>f g </div>++<!-- The 3rd right-most line of "P" --> <div>h j </div>++<!-- The 4th right-most line of "P" --> <div id="left-border">kkkkkkk</div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-059.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-059.xhtnew file mode 100644index 00000000000..e050e0545a4--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-059.xht@@ -0,0 +1,95 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: table-caption and 'sideways-rl' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-4/#writing-mode" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that a table-caption with its 'writing-mode' set to 'sideways-rl' establishes a block formating context with a right-to-left block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div#table-caption+ {+ display: table-caption;+ height: 9em;+ writing-mode: sideways-rl;+ }++ div#table-caption > div+ {+ background-color: blue;+ border-bottom: blue solid 1em;+ border-top: blue solid 1em;+ }++ div.right-border+ {+ border-right: blue solid 1em;+ }++ div#left-border+ {+ border-left: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div id="table-caption">++<!-- The right-most line of right-most "S" --> <div class="right-border">A BBBB</div>++<!-- The 2nd right-most line of right-most "S" --> <div>C D E</div>++<!-- The 3rd right-most line of right-most "S" --> <div>F G H</div>++<!-- The 4th right-most line of right-most "S" --> <div>JJJJ K</div>++++<!-- The right-most line of left-most "S" --> <div class="right-border">L MMMM</div>++<!-- The 2nd right-most line of left-most "S" --> <div>Q R S</div>++<!-- The 3rd right-most line of left-most "S" --> <div>T U V</div>++<!-- The 4th right-most line of left-most "S" --> <div>WWWW X</div>++++<!-- The right-most line of "A" --> <div class="right-border">YYYYYYY</div>++<!-- The 2nd right-most line of "A" --> <div>Z a </div>++<!-- The 3rd right-most line of "A" --> <div>b c </div>++<!-- The 4th right-most line of "A" --> <div>ddddddd</div>++++<!-- The right-most line of "P" --> <div class="right-border">eeee </div>++<!-- The 2nd right-most line of "P" --> <div>f g </div>++<!-- The 3rd right-most line of "P" --> <div>h j </div>++<!-- The 4th right-most line of "P" --> <div id="left-border">kkkkkkk</div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-061.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-061.xhtnew file mode 100644index 00000000000..f6c1fa64304--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-061.xht@@ -0,0 +1,109 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: list and sideways-rl - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-4/#writing-mode" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-002-ref.xht" />++ <meta content="ahem image" name="flags" />+ <meta content="This test checks that block-level boxes in a block formating context with 'writing-mode' set to 'sideways-rl' are laid out one after the other with the first beginning at the right-hand side of its containing block; they are ordered from right to left meaning that the 1st block box is the rightmost one and then the 2nd block is juxtaposed to its left-hand side, the 3rd block is juxtaposed to the 2nd block on its left-hand side, etc... " name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: sideways-rl;+ }+ /*+ "+ The principal writing mode of the document is determined by the writing-mode+ and direction values specified on the root element.+ "+ */++ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ height: 9em;+ }++ ul+ {+ background-color: blue;+ border-bottom: blue solid 1em;+ list-style: none outside url("support/blue1x1.png");+ margin: 0em;+ padding-top: 1em; /* overriding default padding-start: 40px in several browsers */+ }++ /*+ This test depends on the blue ::marker image being placed inside the (blue)+ padding area. That depends on how the spacing between it and the list-item+ box is calculated, which depends on font metrics. The following rule is+ to avoid these uncertainties and place it inside the padding for sure.+ */+ ::marker+ {+ font-size: 0;+ }++ ul.right-border+ {+ border-right: blue solid 1em;+ }++ ul#left-border+ {+ border-left: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++<!-- The right-most line of right-most "S" --> <ul class="right-border"><li>A BBBB</li></ul>++<!-- The 2nd right-most line of right-most "S" --> <ul><li>C D E</li></ul>++<!-- The 3rd right-most line of right-most "S" --> <ul><li>F G H</li></ul>++<!-- The 4th right-most line of right-most "S" --> <ul><li>JJJJ K</li></ul>++++<!-- The right-most line of left-most "S" --> <ul class="right-border"><li>L MMMM</li></ul>++<!-- The 2nd right-most line of left-most "S" --> <ul><li>Q R S</li></ul>++<!-- The 3rd right-most line of left-most "S" --> <ul><li>T U V</li></ul>++<!-- The 4th right-most line of left-most "S" --> <ul><li>WWWW X</li></ul>++++<!-- The right-most line of "A" --> <ul class="right-border"><li>YYYYYYY</li></ul>++<!-- The 2nd right-most line of "A" --> <ul><li>Z a </li></ul>++<!-- The 3rd right-most line of "A" --> <ul><li>b c </li></ul>++<!-- The 4th right-most line of "A" --> <ul><li>ddddddd</li></ul>++++<!-- The right-most line of "P" --> <ul class="right-border"><li>eeee </li></ul>++<!-- The 2nd right-most line of "P" --> <ul><li>f g </li></ul>++<!-- The 3rd right-most line of "P" --> <ul><li>h j </li></ul>++<!-- The 4th right-most line of "P" --> <ul id="left-border"><li>kkkkkkk</li></ul>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-064.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-064.xhtnew file mode 100644index 00000000000..c3e40b24177--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-064.xht@@ -0,0 +1,66 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sideways-rl - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-4/#writing-mode" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-002-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that block-level boxes in a block formating context with 'writing-mode' set to 'sideways-rl' are laid out one after the other with the first beginning at the right-hand side of its containing block; they are ordered from right to left meaning that the 1st block box is the rightmost one, then the 2nd block is juxtaposed at its left-hand side, then the 3rd block is juxtaposed at the 2nd block on its left-hand side, etc... " name="assert" />++ <!--+ This test is a variation of block-flow-direction-002 test.+ -->++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: sideways-rl;+ }+ /*+ "+ The principal writing mode of the document is determined by the writing-mode+ and direction values specified on the root element.+ "+ */++ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ height: 9em;+ }++ div+ {+ background-color: blue;+ border-bottom: blue solid 1em;+ border-right: blue solid 1em;+ border-top: blue solid 1em;+ }++ div#left-border+ {+ border-left: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++<!-- The right-most "S" --> <div>A BBBB C D E F G H JJJJ K</div>++<!-- The left-most "S" --> <div>L MMMM Q R S T U V WWWW X</div>++<!-- The "A" --> <div>YYYYYYY Z a b c ddddddd</div>++<!-- The "P" --> <div id="left-border">eeee f g h j kkkkkkk</div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-065.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-065.xhtnew file mode 100644index 00000000000..958a1b8f3d2--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-srl-065.xht@@ -0,0 +1,39 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: writing mode (sideways-rl) of document - horizontal position of first block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-4/#writing-mode" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="help" href="http://www.w3.org/TR/2011/REC-CSS2-20110607/visuren.html#block-formatting" title="9.4.1 Block formatting contexts" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-025-ref.xht" />++ <meta content="image" name="flags" />+ <meta content="This test checks that, when 'writing-mode' value of the root element is set to 'sideways-rl', then its block boxes are laid out leftwardedly (from right to left) one after the other beginning at its righthand side. Also, the inline flow direction is 'bottomwardedly', that is inline boxes in the line box flow from the top toward the bottom; inline boxes are laid out vertically, one after the other, starting at the physical top side of its containing block." name="assert" />++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: sideways-rl;+ }++ div+ {+ background-color: blue;+ height: 100px;+ width: 100px;+ }+ ]]></style>+ </head>++ <body>++ <div></div>++ <p><img src="support/block-flow-direction-025-exp-res.png" width="359" height="36" alt="Image download support must be enabled" /></p>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-003.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-003.xhtnew file mode 100644index 00000000000..e7e6ea79aa1--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-003.xht@@ -0,0 +1,96 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: vertical-lr - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that block-level boxes in a block formating context with 'writing-mode' set to 'vertical-lr' are laid out one after the other with the first beginning at the left-hand side of its containing block; they are ordered from left to right meaning that the 1st block box is the leftmost one and, then the 2nd block is juxtaposed at the right-hand side of 1st block, then the 3rd block is juxtaposed at the 2nd block on its right-hand side, etc... " name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }+ /*+ "+ The principal writing mode of the document is determined by the writing-mode+ and direction values specified on the root element.+ "+ */++ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ height: 9em;+ }++ div+ {+ background-color: blue;+ border-bottom: blue solid 1em;+ border-top: blue solid 1em;+ }++ div.left-border+ {+ border-left: blue solid 1em;+ }++ div#right-border+ {+ border-right: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++<!-- The 1st left-most line of "P" --> <div class="left-border">AAAAAAA</div>++<!-- The 2nd left-most line of "P" --> <div>B C </div>++<!-- The 3rd left-most line of "P" --> <div>D E </div>++<!-- The 4th left-most line of "P" --> <div>FFFF </div>++++<!-- The left-most line of "A" --> <div class="left-border">GGGGGGG</div>++<!-- The 2nd left-most line of "A" --> <div>H J </div>++<!-- The 3rd left-most line of "A" --> <div>K L </div>++<!-- The 4th left-most line of "A" --> <div>MMMMMMM</div>++++<!-- The 1st left-most line of left-most "S" --> <div class="left-border">NNNN Q</div>++<!-- The 2nd left-most line of left-most "S" --> <div>R S T</div>++<!-- The 3rd left-most line of left-most "S" --> <div>U V W</div>++<!-- The 4th left-most line of left-most "S" --> <div>X YYYY</div>++++<!-- The left-most line of right-most "S" --> <div class="left-border">aaaa b</div>++<!-- The 2nd left-most line of right-most "S" --> <div>c d e</div>++<!-- The 3rd left-most line of right-most "S" --> <div>f g h</div>++<!-- The 4th left-most line of right-most "S" --> <div id="right-border">j kkkk</div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-007.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-007.xhtnew file mode 100644index 00000000000..2759a930a70--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-007.xht@@ -0,0 +1,90 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: 'float: right' and 'vertical-lr' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-002-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that a right-floated box with its 'writing-mode' set to 'vertical-lr' establishes a block formating context with a left-to-right block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div#floated-right+ {+ background-color: blue;+ border-bottom: blue solid 1em;+ border-top: blue solid 1em;+ float: right;+ writing-mode: vertical-lr;+ }++ div.left-border+ {+ border-left: blue solid 1em;+ }++ div#right-border+ {+ border-right: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div id="floated-right">++<!-- The 1st left-most line of "P" --> <div class="left-border">AAAAAAA</div>++<!-- The 2nd left-most line of "P" --> <div>B C </div>++<!-- The 3rd left-most line of "P" --> <div>D E </div>++<!-- The 4th left-most line of "P" --> <div>FFFF </div>++++<!-- The left-most line of "A" --> <div class="left-border">GGGGGGG</div>++<!-- The 2nd left-most line of "A" --> <div>H J </div>++<!-- The 3rd left-most line of "A" --> <div>K L </div>++<!-- The 4th left-most line of "A" --> <div>MMMMMMM</div>++++<!-- The 1st left-most line of left-most "S" --> <div class="left-border">NNNN Q</div>++<!-- The 2nd left-most line of left-most "S" --> <div>R S T</div>++<!-- The 3rd left-most line of left-most "S" --> <div>U V W</div>++<!-- The 4th left-most line of left-most "S" --> <div>X YYYY</div>++++<!-- The left-most line of right-most "S" --> <div class="left-border">aaaa b</div>++<!-- The 2nd left-most line of right-most "S" --> <div>c d e</div>++<!-- The 3rd left-most line of right-most "S" --> <div>f g h</div>++<!-- The 4th left-most line of right-most "S" --> <div id="right-border">j kkkk</div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-008.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-008.xhtnew file mode 100644index 00000000000..647b4bd1df0--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-008.xht@@ -0,0 +1,92 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: 'float: right' and 'vertical-lr' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-002-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that right-floated boxes with 'writing-mode' set to 'vertical-lr' establish block formating contexts with a left-to-right block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div.floated-right+ {+ background-color: blue;+ border-bottom: blue solid 1em;+ border-right: blue solid 1em;+ border-top: blue solid 1em;+ float: right;+ writing-mode: vertical-lr;+ }++ div#left-border+ {+ border-left: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div class="floated-right">++<!-- The left-most line of right-most "S" --> <div>aaaa b</div>++<!-- The 2nd left-most line of right-most "S" --> <div>c d e</div>++<!-- The 3rd left-most line of right-most "S" --> <div>f g h</div>++<!-- The 4th left-most line of right-most "S" --> <div>j kkkk</div>++ </div>++ <div class="floated-right">++<!-- The 1st left-most line of left-most "S" --> <div>NNNN Q</div>++<!-- The 2nd left-most line of left-most "S" --> <div>R S T</div>++<!-- The 3rd left-most line of left-most "S" --> <div>U V W</div>++<!-- The 4th left-most line of left-most "S" --> <div>X YYYY</div>++ </div>++ <div class="floated-right">++<!-- The left-most line of "A" --> <div>GGGGGGG</div>++<!-- The 2nd left-most line of "A" --> <div>H J </div>++<!-- The 3rd left-most line of "A" --> <div>K L </div>++<!-- The 4th left-most line of "A" --> <div>MMMMMMM</div>++ </div>++ <div class="floated-right" id="left-border">++<!-- The 1st left-most line of "P" --> <div>AAAAAAA</div>++<!-- The 2nd left-most line of "P" --> <div>B C </div>++<!-- The 3rd left-most line of "P" --> <div>D E </div>++<!-- The 4th left-most line of "P" --> <div>FFFF </div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-010.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-010.xhtnew file mode 100644index 00000000000..d21405f3e71--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-010.xht@@ -0,0 +1,96 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: position absolute and 'vertical-lr' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that an absolutely positioned box with its 'writing-mode' set to 'vertical-lr' establishes a block formating context with a left-to-right block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div#abs-pos+ {+ height: 9em;+ left: auto;+ position: absolute;+ writing-mode: vertical-lr;+ }++ div#abs-pos > div+ {+ background-color: blue;+ border-bottom: blue solid 1em;+ border-top: blue solid 1em;+ }++ div.left-border+ {+ border-left: blue solid 1em;+ }++ div#right-border+ {+ border-right: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div id="abs-pos">++<!-- The 1st left-most line of "P" --> <div class="left-border">AAAAAAA</div>++<!-- The 2nd left-most line of "P" --> <div>B C </div>++<!-- The 3rd left-most line of "P" --> <div>D E </div>++<!-- The 4th left-most line of "P" --> <div>FFFF </div>++++<!-- The left-most line of "A" --> <div class="left-border">GGGGGGG</div>++<!-- The 2nd left-most line of "A" --> <div>H J </div>++<!-- The 3rd left-most line of "A" --> <div>K L </div>++<!-- The 4th left-most line of "A" --> <div>MMMMMMM</div>++++<!-- The 1st left-most line of left-most "S" --> <div class="left-border">NNNN Q</div>++<!-- The 2nd left-most line of left-most "S" --> <div>R S T</div>++<!-- The 3rd left-most line of left-most "S" --> <div>U V W</div>++<!-- The 4th left-most line of left-most "S" --> <div>X YYYY</div>++++<!-- The left-most line of right-most "S" --> <div class="left-border">aaaa b</div>++<!-- The 2nd left-most line of right-most "S" --> <div>c d e</div>++<!-- The 3rd left-most line of right-most "S" --> <div>f g h</div>++<!-- The 4th left-most line of right-most "S" --> <div id="right-border">j kkkk</div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-014.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-014.xhtnew file mode 100644index 00000000000..45247850a01--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-014.xht@@ -0,0 +1,106 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: inline-block and 'vertical-lr' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that an inline-block with its 'writing-mode' set to 'vertical-lr' establishes a block formating context with a left-to-right block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div#inline-block+ {+ background-color: blue;+ border-top: blue solid 1em;+ display: inline-block;+ height: 8em;+ vertical-align: top;+ /*+ Why 'vertical-align: top' ?+ See+ http://lists.w3.org/Archives/Public/public-css-testsuite/2014Dec/0013.html+ for explanations+ */+ writing-mode: vertical-lr;+ }++ span+ {+ display: block;+ }++ span.left-border+ {+ border-left: blue solid 1em;+ }++ span#right-border+ {+ border-right: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div>++ <div id="inline-block">++<!-- The 1st left-most line of "P" --> <span class="left-border">AAAAAAA</span>++<!-- The 2nd left-most line of "P" --> <span>B C </span>++<!-- The 3rd left-most line of "P" --> <span>D E </span>++<!-- The 4th left-most line of "P" --> <span>FFFF </span>++++<!-- The left-most line of "A" --> <span class="left-border">GGGGGGG</span>++<!-- The 2nd left-most line of "A" --> <span>H J </span>++<!-- The 3rd left-most line of "A" --> <span>K L </span>++<!-- The 4th left-most line of "A" --> <span>MMMMMMM</span>++++<!-- The 1st left-most line of left-most "S" --> <span class="left-border">NNNN Q</span>++<!-- The 2nd left-most line of left-most "S" --> <span>R S T</span>++<!-- The 3rd left-most line of left-most "S" --> <span>U V W</span>++<!-- The 4th left-most line of left-most "S" --> <span>X YYYY</span>++++<!-- The left-most line of right-most "S" --> <span class="left-border">aaaa b</span>++<!-- The 2nd left-most line of right-most "S" --> <span>c d e</span>++<!-- The 3rd left-most line of right-most "S" --> <span>f g h</span>++<!-- The 4th left-most line of right-most "S" --> <span id="right-border">j kkkk</span>++ </div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-015.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-015.xhtnew file mode 100644index 00000000000..e739703363f--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-015.xht@@ -0,0 +1,65 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: inline-block and 'vertical-lr' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that an inline-block with its 'writing-mode' set to 'vertical-lr' establishes a block formating context with a left-to-right block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div#inline-block+ {+ background-color: blue;+ border-top: blue solid 1em;+ display: inline-block;+ height: 8em;+ writing-mode: vertical-lr;+ }++ span+ {+ border-left: blue solid 1em;+ display: block;+ }++ span#right-border+ {+ border-right: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div>++ <div id="inline-block">++<!-- The "P" --> <span>AAAAAAA B C D E FFFF </span>++<!-- The "A" --> <span>GGGGGGG H J K L MMMMMMM</span>++<!-- The left-most "S" --> <span>NNNN Q R S T U V W X YYYY</span>++<!-- The right-most "S" --> <span id="right-border">aaaa b c d e f g h j kkkk</span>++ </div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-016.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-016.xhtnew file mode 100644index 00000000000..0ced9d6d877--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-016.xht@@ -0,0 +1,102 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: inline-block and 'vertical-lr' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that an inline-block with its 'writing-mode' set to 'vertical-lr' establishes a block formating context with a left-to-right block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div.inline-block+ {+ background-color: blue;+ border-left: blue solid 1em;+ border-top: blue solid 1em;+ display: inline-block;+ height: 8em;+ vertical-align: top;+ /*+ Why 'vertical-align: top' ?+ See+ http://lists.w3.org/Archives/Public/public-css-testsuite/2014Dec/0013.html+ for explanations+ */+ writing-mode: vertical-lr;+ }++ span+ {+ display: block;+ }++ span#right-border+ {+ border-right: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div>++ <div class="inline-block">++<!-- The 1st left-most line of "P" --> <span>AAAAAAA</span>++<!-- The 2nd left-most line of "P" --> <span>B C </span>++<!-- The 3rd left-most line of "P" --> <span>D E </span>++<!-- The 4th left-most line of "P" --> <span>FFFF </span>++ </div><div class="inline-block">++<!-- The left-most line of "A" --> <span>GGGGGGG</span>++<!-- The 2nd left-most line of "A" --> <span>H J </span>++<!-- The 3rd left-most line of "A" --> <span>K L </span>++<!-- The 4th left-most line of "A" --> <span>MMMMMMM</span>++ </div><div class="inline-block">++<!-- The 1st left-most line of left-most "S" --> <span>NNNN Q</span>++<!-- The 2nd left-most line of left-most "S" --> <span>R S T</span>++<!-- The 3rd left-most line of left-most "S" --> <span>U V W</span>++<!-- The 4th left-most line of left-most "S" --> <span>X YYYY</span>++ </div><div class="inline-block">++<!-- The left-most line of right-most "S" --> <span>aaaa b</span>++<!-- The 2nd left-most line of right-most "S" --> <span>c d e</span>++<!-- The 3rd left-most line of right-most "S" --> <span>f g h</span>++<!-- The 4th left-most line of right-most "S" --> <span id="right-border">j kkkk</span>++ </div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-018.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-018.xhtnew file mode 100644index 00000000000..3239ca32d49--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-018.xht@@ -0,0 +1,95 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: table-cell and 'vertical-lr' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that a table-cell with its 'writing-mode' set to 'vertical-lr' establishes a block formating context with a left-to-right block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div#table-cell+ {+ display: table-cell;+ height: 9em;+ writing-mode: vertical-lr;+ }++ div#table-cell > div+ {+ background-color: blue;+ border-bottom: blue solid 1em;+ border-top: blue solid 1em;+ }++ div.left-border+ {+ border-left: blue solid 1em;+ }++ div#right-border+ {+ border-right: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div id="table-cell">++<!-- The 1st left-most line of "P" --> <div class="left-border">AAAAAAA</div>++<!-- The 2nd left-most line of "P" --> <div>B C </div>++<!-- The 3rd left-most line of "P" --> <div>D E </div>++<!-- The 4th left-most line of "P" --> <div>FFFF </div>++++<!-- The left-most line of "A" --> <div class="left-border">GGGGGGG</div>++<!-- The 2nd left-most line of "A" --> <div>H J </div>++<!-- The 3rd left-most line of "A" --> <div>K L </div>++<!-- The 4th left-most line of "A" --> <div>MMMMMMM</div>++++<!-- The 1st left-most line of left-most "S" --> <div class="left-border">NNNN Q</div>++<!-- The 2nd left-most line of left-most "S" --> <div>R S T</div>++<!-- The 3rd left-most line of left-most "S" --> <div>U V W</div>++<!-- The 4th left-most line of left-most "S" --> <div>X YYYY</div>++++<!-- The left-most line of right-most "S" --> <div class="left-border">aaaa b</div>++<!-- The 2nd left-most line of right-most "S" --> <div>c d e</div>++<!-- The 3rd left-most line of right-most "S" --> <div>f g h</div>++<!-- The 4th left-most line of right-most "S" --> <div id="right-border">j kkkk</div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-020.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-020.xhtnew file mode 100644index 00000000000..ae7e1375984--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-020.xht@@ -0,0 +1,95 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: table-caption and 'vertical-lr' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that a table-caption with its 'writing-mode' set to 'vertical-lr' establishes a block formating context with a left-to-right block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div#table-caption+ {+ display: table-caption;+ height: 9em;+ writing-mode: vertical-lr;+ }++ div#table-caption > div+ {+ background-color: blue;+ border-bottom: blue solid 1em;+ border-top: blue solid 1em;+ }++ div.left-border+ {+ border-left: blue solid 1em;+ }++ div#right-border+ {+ border-right: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div id="table-caption">++<!-- The 1st left-most line of "P" --> <div class="left-border">AAAAAAA</div>++<!-- The 2nd left-most line of "P" --> <div>B C </div>++<!-- The 3rd left-most line of "P" --> <div>D E </div>++<!-- The 4th left-most line of "P" --> <div>FFFF </div>++++<!-- The left-most line of "A" --> <div class="left-border">GGGGGGG</div>++<!-- The 2nd left-most line of "A" --> <div>H J </div>++<!-- The 3rd left-most line of "A" --> <div>K L </div>++<!-- The 4th left-most line of "A" --> <div>MMMMMMM</div>++++<!-- The 1st left-most line of left-most "S" --> <div class="left-border">NNNN Q</div>++<!-- The 2nd left-most line of left-most "S" --> <div>R S T</div>++<!-- The 3rd left-most line of left-most "S" --> <div>U V W</div>++<!-- The 4th left-most line of left-most "S" --> <div>X YYYY</div>++++<!-- The left-most line of right-most "S" --> <div class="left-border">aaaa b</div>++<!-- The 2nd left-most line of right-most "S" --> <div>c d e</div>++<!-- The 3rd left-most line of right-most "S" --> <div>f g h</div>++<!-- The 4th left-most line of right-most "S" --> <div id="right-border">j kkkk</div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-022.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-022.xhtnew file mode 100644index 00000000000..74ffa355e9a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-022.xht@@ -0,0 +1,109 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: list and vertical-lr - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem image" name="flags" />+ <meta content="This test checks that block-level boxes in a block formating context with 'writing-mode' set to 'vertical-lr' are laid out one after the other with the first beginning at the left-hand side of its containing block; they are ordered from left to right meaning that the 1st block box is the leftmost one and then the 2nd block is juxtaposed to the right-hand side of 1st block, the 3rd block is juxtaposed to the 2nd block on its right-hand side, etc... " name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }+ /*+ "+ The principal writing mode of the document is determined by the writing-mode+ and direction values specified on the root element.+ "+ */++ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ height: 9em;+ }++ ul+ {+ background-color: blue;+ border-bottom: blue solid 1em;+ list-style: none outside url("support/blue1x1.png");+ margin: 0em;+ padding-top: 1em; /* overriding default 40px in several browsers */+ }++ ul.left-border+ {+ border-left: blue solid 1em;+ }++ ul#right-border+ {+ border-right: blue solid 1em;+ }++ /*+ This test depends on the blue ::marker image being placed inside the (blue)+ padding area. That depends on how the spacing between it and the list-item+ box is calculated, which depends on font metrics. The following rule is+ to avoid these uncertainties and place it inside the padding for sure.+ */+ ::marker+ {+ font-size: 0;+ }+ ]]></style>+ </head>++ <body>++<!-- The 1st left-most line of "P" --> <ul class="left-border"><li>AAAAAAA</li></ul>++<!-- The 2nd left-most line of "P" --> <ul><li>B C </li></ul>++<!-- The 3rd left-most line of "P" --> <ul><li>D E </li></ul>++<!-- The 4th left-most line of "P" --> <ul><li>FFFF </li></ul>++++<!-- The left-most line of "A" --> <ul class="left-border"><li>GGGGGGG</li></ul>++<!-- The 2nd left-most line of "A" --> <ul><li>H J </li></ul>++<!-- The 3rd left-most line of "A" --> <ul><li>K L </li></ul>++<!-- The 4th left-most line of "A" --> <ul><li>MMMMMMM</li></ul>++++<!-- The 1st left-most line of left-most "S" --> <ul class="left-border"><li>NNNN Q</li></ul>++<!-- The 2nd left-most line of left-most "S" --> <ul><li>R S T</li></ul>++<!-- The 3rd left-most line of left-most "S" --> <ul><li>U V W</li></ul>++<!-- The 4th left-most line of left-most "S" --> <ul><li>X YYYY</li></ul>++++<!-- The left-most line of right-most "S" --> <ul class="left-border"><li>aaaa b</li></ul>++<!-- The 2nd left-most line of right-most "S" --> <ul><li>c d e</li></ul>++<!-- The 3rd left-most line of right-most "S" --> <ul><li>f g h</li></ul>++<!-- The 4th left-most line of right-most "S" --> <ul id="right-border"><li>j kkkk</li></ul>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-023.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-023.xhtnew file mode 100644index 00000000000..d0c7e4db6e8--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vlr-023.xht@@ -0,0 +1,65 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: vertical-lr - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that block-level boxes in a block formating context with 'writing-mode' set to 'vertical-lr' are laid out one after the other with the first beginning at the left-hand side of its containing block; they are ordered from left to right meaning that the 1st block box is the leftmost one and, then the 2nd block is juxtaposed at the right-hand side of 1st block, then the 3rd block is juxtaposed at the 2nd block on its right-hand side, etc... " name="assert" />++ <!--+ This test is a variation of block-flow-direction-003 test.+ -->++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }+ /*+ "+ The principal writing mode of the document is determined by the writing-mode+ and direction values specified on the root element.+ "+ */++ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ height: 9em;+ }++ div+ {+ background-color: blue;+ border: blue solid 1em;+ border-right: blue none 0em;+ }++ div#right-most+ {+ border-right: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++<!-- The "P" --> <div>AAAAAAA B C D E FFFF </div>++<!-- The "A" --> <div>GGGGGGG H J K L MMMMMMM</div>++<!-- The left-most "S" --> <div>NNNN Q R S T U V W X YYYY</div>++<!-- The right-most "S" --> <div id="right-most">aaaa b c d e f g h j kkkk</div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-002.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-002.xhtnew file mode 100644index 00000000000..a7d3b1bd6cb--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-002.xht@@ -0,0 +1,96 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: vertical-rl - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-002-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that block-level boxes in a block formating context with 'writing-mode' set to 'vertical-rl' are laid out one after the other with the first beginning at the right-hand side of its containing block; they are ordered from right to left meaning that the 1st block box is the rightmost one, then the 2nd block is juxtaposed at its left-hand side, then the 3rd block is juxtaposed at the 2nd block on its left-hand side, etc... " name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }+ /*+ "+ The principal writing mode of the document is determined by the writing-mode+ and direction values specified on the root element.+ "+ */++ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ height: 9em;+ }++ div+ {+ background-color: blue;+ border-bottom: blue solid 1em;+ border-top: blue solid 1em;+ }++ div.right-border+ {+ border-right: blue solid 1em;+ }++ div#left-border+ {+ border-left: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++<!-- The right-most line of right-most "S" --> <div class="right-border">A BBBB</div>++<!-- The 2nd right-most line of right-most "S" --> <div>C D E</div>++<!-- The 3rd right-most line of right-most "S" --> <div>F G H</div>++<!-- The 4th right-most line of right-most "S" --> <div>JJJJ K</div>++++<!-- The right-most line of left-most "S" --> <div class="right-border">L MMMM</div>++<!-- The 2nd right-most line of left-most "S" --> <div>Q R S</div>++<!-- The 3rd right-most line of left-most "S" --> <div>T U V</div>++<!-- The 4th right-most line of left-most "S" --> <div>WWWW X</div>++++<!-- The right-most line of "A" --> <div class="right-border">YYYYYYY</div>++<!-- The 2nd right-most line of "A" --> <div>Z a </div>++<!-- The 3rd right-most line of "A" --> <div>b c </div>++<!-- The 4th right-most line of "A" --> <div>ddddddd</div>++++<!-- The right-most line of "P" --> <div class="right-border">eeee </div>++<!-- The 2nd right-most line of "P" --> <div>f g </div>++<!-- The 3rd right-most line of "P" --> <div>h j </div>++<!-- The 4th right-most line of "P" --> <div id="left-border">kkkkkkk</div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-005.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-005.xhtnew file mode 100644index 00000000000..217e7b78445--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-005.xht@@ -0,0 +1,90 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: 'float: left' and 'vertical-rl' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that a left-floated box with its 'writing-mode' set to 'vertical-rl' establishes a block formating context with a right-to-left block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div#floated-left+ {+ background-color: blue;+ border-top: blue solid 1em;+ float: left;+ height: 8em;+ writing-mode: vertical-rl;+ }++ div.right-border+ {+ border-right: blue solid 1em;+ }++ div#left-border+ {+ border-left: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div id="floated-left">++<!-- The right-most line of right-most "S" --> <div class="right-border">A BBBB</div>++<!-- The 2nd right-most line of right-most "S" --> <div>C D E</div>++<!-- The 3rd right-most line of right-most "S" --> <div>F G H</div>++<!-- The 4th right-most line of right-most "S" --> <div>JJJJ K</div>++++<!-- The right-most line of left-most "S" --> <div class="right-border">L MMMM</div>++<!-- The 2nd right-most line of left-most "S" --> <div>Q R S</div>++<!-- The 3rd right-most line of left-most "S" --> <div>T U V</div>++<!-- The 4th right-most line of left-most "S" --> <div>WWWW X</div>++++<!-- The right-most line of "A" --> <div class="right-border">YYYYYYY</div>++<!-- The 2nd right-most line of "A" --> <div>Z a </div>++<!-- The 3rd right-most line of "A" --> <div>b c </div>++<!-- The 4th right-most line of "A" --> <div>ddddddd</div>++++<!-- The right-most line of "P" --> <div class="right-border">eeee </div>++<!-- The 2nd right-most line of "P" --> <div>f g </div>++<!-- The 3rd right-most line of "P" --> <div>h j </div>++<!-- The 4th right-most line of "P" --> <div id="left-border">kkkkkkk</div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-006.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-006.xhtnew file mode 100644index 00000000000..b9164334565--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-006.xht@@ -0,0 +1,92 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: 'float: left' and 'vertical-rl' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that left-floated boxes with 'writing-mode' set to 'vertical-rl' establish block formating contexts with a right-to-left block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div.floated-left+ {+ background-color: blue;+ border-bottom: blue solid 1em;+ border-left: blue solid 1em;+ border-top: blue solid 1em;+ float: left;+ writing-mode: vertical-rl;+ }++ div#right-border+ {+ border-right: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div class="floated-left">++<!-- The right-most line of "P" --> <div>eeee </div>++<!-- The 2nd right-most line of "P" --> <div>f g </div>++<!-- The 3rd right-most line of "P" --> <div>h j </div>++<!-- The 4th right-most line of "P" --> <div>kkkkkkk</div>++ </div>++ <div class="floated-left">++<!-- The right-most line of "A" --> <div>YYYYYYY</div>++<!-- The 2nd right-most line of "A" --> <div>Z a </div>++<!-- The 3rd right-most line of "A" --> <div>b c </div>++<!-- The 4th right-most line of "A" --> <div>ddddddd</div>++ </div>++ <div class="floated-left">++<!-- The right-most line of left-most "S" --> <div>L MMMM</div>++<!-- The 2nd right-most line of left-most "S" --> <div>Q R S</div>++<!-- The 3rd right-most line of left-most "S" --> <div>T U V</div>++<!-- The 4th right-most line of left-most "S" --> <div>WWWW X</div>++ </div>++ <div class="floated-left" id="right-border">++<!-- The right-most line of right-most "S" --> <div>A BBBB</div>++<!-- The 2nd right-most line of right-most "S" --> <div>C D E</div>++<!-- The 3rd right-most line of right-most "S" --> <div>F G H</div>++<!-- The 4th right-most line of right-most "S" --> <div>JJJJ K</div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-009.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-009.xhtnew file mode 100644index 00000000000..cc4ff8d3652--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-009.xht@@ -0,0 +1,96 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: position absolute and 'vertical-rl' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that an absolutely positioned box with its 'writing-mode' set to 'vertical-rl' establishes a block formating context with a right-to-left block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div#abs-pos+ {+ height: 9em;+ left: auto;+ position: absolute;+ writing-mode: vertical-rl;+ }++ div#abs-pos > div+ {+ background-color: blue;+ border-bottom: blue solid 1em;+ border-top: blue solid 1em;+ }++ div.right-border+ {+ border-right: blue solid 1em;+ }++ div#left-border+ {+ border-left: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div id="abs-pos">++<!-- The right-most line of right-most "S" --> <div class="right-border">A BBBB</div>++<!-- The 2nd right-most line of right-most "S" --> <div>C D E</div>++<!-- The 3rd right-most line of right-most "S" --> <div>F G H</div>++<!-- The 4th right-most line of right-most "S" --> <div>JJJJ K</div>++++<!-- The right-most line of left-most "S" --> <div class="right-border">L MMMM</div>++<!-- The 2nd right-most line of left-most "S" --> <div>Q R S</div>++<!-- The 3rd right-most line of left-most "S" --> <div>T U V</div>++<!-- The 4th right-most line of left-most "S" --> <div>WWWW X</div>++++<!-- The right-most line of "A" --> <div class="right-border">YYYYYYY</div>++<!-- The 2nd right-most line of "A" --> <div>Z a </div>++<!-- The 3rd right-most line of "A" --> <div>b c </div>++<!-- The 4th right-most line of "A" --> <div>ddddddd</div>++++<!-- The right-most line of "P" --> <div class="right-border">eeee </div>++<!-- The 2nd right-most line of "P" --> <div>f g </div>++<!-- The 3rd right-most line of "P" --> <div>h j </div>++<!-- The 4th right-most line of "P" --> <div id="left-border">kkkkkkk</div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-011.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-011.xhtnew file mode 100644index 00000000000..db586df71b6--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-011.xht@@ -0,0 +1,106 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: inline-block and 'vertical-rl' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that an inline-block with its 'writing-mode' set to 'vertical-rl' establishes a block formating context with a right-to-left block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div#inline-block+ {+ background-color: blue;+ border-top: blue solid 1em;+ display: inline-block;+ height: 8em;+ vertical-align: top;+ /*+ Why 'vertical-align: top' ?+ See+ http://lists.w3.org/Archives/Public/public-css-testsuite/2014Dec/0013.html+ for explanations+ */+ writing-mode: vertical-rl;+ }++ span+ {+ display: block;+ }++ span.right-border+ {+ border-right: blue solid 1em;+ }++ span#left-border+ {+ border-left: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div>++ <div id="inline-block">++<!-- The right-most line of right-most "S" --> <span class="right-border">A BBBB</span>++<!-- The 2nd right-most line of right-most "S" --> <span>C D E</span>++<!-- The 3rd right-most line of right-most "S" --> <span>F G H</span>++<!-- The 4th right-most line of right-most "S" --> <span>JJJJ K</span>++++<!-- The right-most line of left-most "S" --> <span class="right-border">L MMMM</span>++<!-- The 2nd right-most line of left-most "S" --> <span>Q R S</span>++<!-- The 3rd right-most line of left-most "S" --> <span>T U V</span>++<!-- The 4th right-most line of left-most "S" --> <span>WWWW X</span>++++<!-- The right-most line of "A" --> <span class="right-border">YYYYYYY</span>++<!-- The 2nd right-most line of "A" --> <span>Z a </span>++<!-- The 3rd right-most line of "A" --> <span>b c </span>++<!-- The 4th right-most line of "A" --> <span>ddddddd</span>++++<!-- The right-most line of "P" --> <span class="right-border">eeee </span>++<!-- The 2nd right-most line of "P" --> <span>f g </span>++<!-- The 3rd right-most line of "P" --> <span>h j </span>++<!-- The 4th right-most line of "P" --> <span id="left-border">kkkkkkk</span>++ </div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-012.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-012.xhtnew file mode 100644index 00000000000..651b186e93a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-012.xht@@ -0,0 +1,72 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: inline-block and 'vertical-rl' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that an inline-block with its 'writing-mode' set to 'vertical-rl' establishes a block formating context with a right-to-left block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div#inline-block+ {+ background-color: blue;+ border-top: blue solid 1em;+ display: inline-block;+ height: 8em;+ vertical-align: top;+ /*+ Why 'vertical-align: top' ?+ See+ http://lists.w3.org/Archives/Public/public-css-testsuite/2014Dec/0013.html+ for explanations+ */+ writing-mode: vertical-rl;+ }++ span+ {+ border-right: blue solid 1em;+ display: block;+ }++ span#left-border+ {+ border-left: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div>++ <div id="inline-block">++<!-- The right-most "S" --> <span>A BBBB C D E F G H JJJJ K</span>++<!-- The left-most "S" --> <span>L MMMM Q R S T U V WWWW X</span>++<!-- The "A" --> <span>YYYYYYY Z a b c ddddddd</span>++<!-- The "P" --> <span id="left-border">eeee f g h j kkkkkkk</span>++ </div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-013.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-013.xhtnew file mode 100644index 00000000000..9fc68f99d86--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-013.xht@@ -0,0 +1,102 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: inline-block and 'vertical-rl' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that an inline-block with its 'writing-mode' set to 'vertical-rl' establishes a block formating context with a right-to-left block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div.inline-block+ {+ background-color: blue;+ border-right: blue solid 1em;+ border-top: blue solid 1em;+ display: inline-block;+ height: 8em;+ vertical-align: top;+ /*+ Why 'vertical-align: top' ?+ See+ http://lists.w3.org/Archives/Public/public-css-testsuite/2014Dec/0013.html+ for explanations+ */+ writing-mode: vertical-rl;+ }++ span+ {+ display: block;+ }++ span#left-border+ {+ border-left: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div>++ <div class="inline-block">++<!-- The right-most line of "P" --> <span>eeee </span>++<!-- The 2nd right-most line of "P" --> <span>f g </span>++<!-- The 3rd right-most line of "P" --> <span>h j </span>++<!-- The 4th right-most line of "P" --> <span id="left-border">kkkkkkk</span>++ </div><div class="inline-block">++<!-- The right-most line of "A" --> <span>YYYYYYY</span>++<!-- The 2nd right-most line of "A" --> <span>Z a </span>++<!-- The 3rd right-most line of "A" --> <span>b c </span>++<!-- The 4th right-most line of "A" --> <span>ddddddd</span>++ </div><div class="inline-block">++<!-- The right-most line of left-most "S" --> <span>L MMMM</span>++<!-- The 2nd right-most line of left-most "S" --> <span>Q R S</span>++<!-- The 3rd right-most line of left-most "S" --> <span>T U V</span>++<!-- The 4th right-most line of left-most "S" --> <span>WWWW X</span>++ </div><div class="inline-block">++<!-- The right-most line of right-most "S" --> <span>A BBBB</span>++<!-- The 2nd right-most line of right-most "S" --> <span>C D E</span>++<!-- The 3rd right-most line of right-most "S" --> <span>F G H</span>++<!-- The 4th right-most line of right-most "S" --> <span>JJJJ K</span>++ </div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-017.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-017.xhtnew file mode 100644index 00000000000..0ec42ca2e6a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-017.xht@@ -0,0 +1,95 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: table-cell and 'vertical-rl' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that a table-cell with its 'writing-mode' set to 'vertical-rl' establishes a block formating context with a right-to-left block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div#table-cell+ {+ display: table-cell;+ height: 9em;+ writing-mode: vertical-rl;+ }++ div#table-cell > div+ {+ background-color: blue;+ border-bottom: blue solid 1em;+ border-top: blue solid 1em;+ }++ div.right-border+ {+ border-right: blue solid 1em;+ }++ div#left-border+ {+ border-left: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div id="table-cell">++<!-- The right-most line of right-most "S" --> <div class="right-border">A BBBB</div>++<!-- The 2nd right-most line of right-most "S" --> <div>C D E</div>++<!-- The 3rd right-most line of right-most "S" --> <div>F G H</div>++<!-- The 4th right-most line of right-most "S" --> <div>JJJJ K</div>++++<!-- The right-most line of left-most "S" --> <div class="right-border">L MMMM</div>++<!-- The 2nd right-most line of left-most "S" --> <div>Q R S</div>++<!-- The 3rd right-most line of left-most "S" --> <div>T U V</div>++<!-- The 4th right-most line of left-most "S" --> <div>WWWW X</div>++++<!-- The right-most line of "A" --> <div class="right-border">YYYYYYY</div>++<!-- The 2nd right-most line of "A" --> <div>Z a </div>++<!-- The 3rd right-most line of "A" --> <div>b c </div>++<!-- The 4th right-most line of "A" --> <div>ddddddd</div>++++<!-- The right-most line of "P" --> <div class="right-border">eeee </div>++<!-- The 2nd right-most line of "P" --> <div>f g </div>++<!-- The 3rd right-most line of "P" --> <div>h j </div>++<!-- The 4th right-most line of "P" --> <div id="left-border">kkkkkkk</div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-019.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-019.xhtnew file mode 100644index 00000000000..afdcb78fbb9--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-019.xht@@ -0,0 +1,95 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: table-caption and 'vertical-rl' - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that a table-caption with its 'writing-mode' set to 'vertical-rl' establishes a block formating context with a right-to-left block flow direction." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ }++ div#table-caption+ {+ display: table-caption;+ height: 9em;+ writing-mode: vertical-rl;+ }++ div#table-caption > div+ {+ background-color: blue;+ border-bottom: blue solid 1em;+ border-top: blue solid 1em;+ }++ div.right-border+ {+ border-right: blue solid 1em;+ }++ div#left-border+ {+ border-left: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <div id="table-caption">++<!-- The right-most line of right-most "S" --> <div class="right-border">A BBBB</div>++<!-- The 2nd right-most line of right-most "S" --> <div>C D E</div>++<!-- The 3rd right-most line of right-most "S" --> <div>F G H</div>++<!-- The 4th right-most line of right-most "S" --> <div>JJJJ K</div>++++<!-- The right-most line of left-most "S" --> <div class="right-border">L MMMM</div>++<!-- The 2nd right-most line of left-most "S" --> <div>Q R S</div>++<!-- The 3rd right-most line of left-most "S" --> <div>T U V</div>++<!-- The 4th right-most line of left-most "S" --> <div>WWWW X</div>++++<!-- The right-most line of "A" --> <div class="right-border">YYYYYYY</div>++<!-- The 2nd right-most line of "A" --> <div>Z a </div>++<!-- The 3rd right-most line of "A" --> <div>b c </div>++<!-- The 4th right-most line of "A" --> <div>ddddddd</div>++++<!-- The right-most line of "P" --> <div class="right-border">eeee </div>++<!-- The 2nd right-most line of "P" --> <div>f g </div>++<!-- The 3rd right-most line of "P" --> <div>h j </div>++<!-- The 4th right-most line of "P" --> <div id="left-border">kkkkkkk</div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-021.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-021.xhtnew file mode 100644index 00000000000..6dc7eaf983d--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-021.xht@@ -0,0 +1,109 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: list and vertical-rl - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-002-ref.xht" />++ <meta content="ahem image" name="flags" />+ <meta content="This test checks that block-level boxes in a block formating context with 'writing-mode' set to 'vertical-rl' are laid out one after the other with the first beginning at the right-hand side of its containing block; they are ordered from right to left meaning that the 1st block box is the rightmost one and then the 2nd block is juxtaposed to its left-hand side, the 3rd block is juxtaposed to the 2nd block on its left-hand side, etc... " name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }+ /*+ "+ The principal writing mode of the document is determined by the writing-mode+ and direction values specified on the root element.+ "+ */++ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ height: 9em;+ }++ ul+ {+ background-color: blue;+ border-bottom: blue solid 1em;+ list-style: none outside url("support/blue1x1.png");+ margin: 0em;+ padding-top: 1em; /* overriding default padding-start: 40px in several browsers */+ }++ ul.right-border+ {+ border-right: blue solid 1em;+ }++ ul#left-border+ {+ border-left: blue solid 1em;+ }++ /*+ This test depends on the blue ::marker image being placed inside the (blue)+ padding area. That depends on how the spacing between it and the list-item+ box is calculated, which depends on font metrics. The following rule is+ to avoid these uncertainties and place it inside the padding for sure.+ */+ ::marker+ {+ font-size: 0;+ }+ ]]></style>+ </head>++ <body>++<!-- The right-most line of right-most "S" --> <ul class="right-border"><li>A BBBB</li></ul>++<!-- The 2nd right-most line of right-most "S" --> <ul><li>C D E</li></ul>++<!-- The 3rd right-most line of right-most "S" --> <ul><li>F G H</li></ul>++<!-- The 4th right-most line of right-most "S" --> <ul><li>JJJJ K</li></ul>++++<!-- The right-most line of left-most "S" --> <ul class="right-border"><li>L MMMM</li></ul>++<!-- The 2nd right-most line of left-most "S" --> <ul><li>Q R S</li></ul>++<!-- The 3rd right-most line of left-most "S" --> <ul><li>T U V</li></ul>++<!-- The 4th right-most line of left-most "S" --> <ul><li>WWWW X</li></ul>++++<!-- The right-most line of "A" --> <ul class="right-border"><li>YYYYYYY</li></ul>++<!-- The 2nd right-most line of "A" --> <ul><li>Z a </li></ul>++<!-- The 3rd right-most line of "A" --> <ul><li>b c </li></ul>++<!-- The 4th right-most line of "A" --> <ul><li>ddddddd</li></ul>++++<!-- The right-most line of "P" --> <ul class="right-border"><li>eeee </li></ul>++<!-- The 2nd right-most line of "P" --> <ul><li>f g </li></ul>++<!-- The 3rd right-most line of "P" --> <ul><li>h j </li></ul>++<!-- The 4th right-most line of "P" --> <ul id="left-border"><li>kkkkkkk</li></ul>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-024.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-024.xhtnew file mode 100644index 00000000000..96857f528af--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-024.xht@@ -0,0 +1,66 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: vertical-rl - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-002-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that block-level boxes in a block formating context with 'writing-mode' set to 'vertical-rl' are laid out one after the other with the first beginning at the right-hand side of its containing block; they are ordered from right to left meaning that the 1st block box is the rightmost one, then the 2nd block is juxtaposed at its left-hand side, then the 3rd block is juxtaposed at the 2nd block on its left-hand side, etc... " name="assert" />++ <!--+ This test is a variation of block-flow-direction-002 test.+ -->++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }+ /*+ "+ The principal writing mode of the document is determined by the writing-mode+ and direction values specified on the root element.+ "+ */++ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ height: 9em;+ }++ div+ {+ background-color: blue;+ border-bottom: blue solid 1em;+ border-right: blue solid 1em;+ border-top: blue solid 1em;+ }++ div#left-border+ {+ border-left: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++<!-- The right-most "S" --> <div>A BBBB C D E F G H JJJJ K</div>++<!-- The left-most "S" --> <div>L MMMM Q R S T U V WWWW X</div>++<!-- The "A" --> <div>YYYYYYY Z a b c ddddddd</div>++<!-- The "P" --> <div id="left-border">eeee f g h j kkkkkkk</div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-025.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-025.xhtnew file mode 100644index 00000000000..b6c2f420317--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-025.xht@@ -0,0 +1,45 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: writing mode of document - horizontal position of first block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="help" href="http://www.w3.org/TR/2011/REC-CSS2-20110607/visuren.html#block-formatting" title="9.4.1 Block formatting contexts" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-025-ref.xht" />++ <meta content="image" name="flags" />+ <meta content="This test checks that, when 'writing-mode' value of the root element is set to 'vertical-rl', then its block boxes are laid out leftwardedly (from right to left) one after the other beginning at its righthand side." name="assert" />++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ div+ {+ background-color: blue;+ height: 100px;+ width: 100px;+ }+ ]]></style>+ </head>++ <body>++ <div></div>++ <p><img src="support/block-flow-direction-025-exp-res.png" width="359" height="36" alt="Image download support must be enabled" /></p>++ <!--+ The image says:+ Test passes if there is a blue square in the+ <strong>upper-right corner</strong> of the page.+ -->++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-026.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-026.xhtnew file mode 100644index 00000000000..5f08308c45f--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-vrl-026.xht@@ -0,0 +1,44 @@+<?xml version="1.0" encoding="UTF-8"?>+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Writing Modes Test: vertical-rl - block flow direction of block-level boxes</title>+ <link rel="author" title="Taka Oshiyama" href="mailto:[email protected]" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" title="3.1. Block Flow Direction: the 'writing-mode' property" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-vrl-026-ref.xht" />+ <meta name="flags" content="ahem" />+ <meta name="assert" content="This test checks 1.block flow direction, 2.inline direction when 'writing-mode' is set to 'vertical-rl'." />+ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css">+ .view_ahem+ {+ background: pink;+ border: 1px solid black;+ color: blue;+ font: 20px/1 "Ahem";+ height: 3em;+ margin: 10px;+ width: 3em;+ white-space: pre;+ }+ #test_ahem+ {+ writing-mode: vertical-rl;+ }+ #control_ahem+ {+ writing-mode: horizontal-tb;+ }+ </style>+ </head>+ <body>+ <p>Test passes if the 2 pink-and-blue rectangles are <strong>identical</strong>.</p>+ <div class="view_ahem"><span id="test_ahem">123+ 56+7 </span></div>+ <div class="view_ahem"><span id="control_ahem">7 1+ 52+ 63</span></div>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vlr-003.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vlr-003.xhtnew file mode 100644index 00000000000..c6675f7a4b7--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vlr-003.xht@@ -0,0 +1,69 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: 'vertical-lr' and margin collapsing - maximum of 2 adjoining margins</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/../reference/ref-filled-green-100px-square.xht" />++ <!--+ Test adapted from+ http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-002.htm++ "+ The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.+ "+ -->++ <meta content="ahem image" name="flags" />+ <meta name="assert" content="This test checks that margin-end and margin-start of adjacent blocks collapse into its maximum in 'vertical-lr' writing-mode." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ font: 25px/1em Ahem;+ height: 4em;+ }++ div#wrapper+ {+ background: red url("support/margin-collapse-2em-space-wm-vert.png");+ width: 4em;+ writing-mode: vertical-lr;+ }++ div#wrapper > div+ {+ background-color: green;+ width: 1em;+ }++ div#leftmost+ {+ margin-right: 2em; /* block-end margin of 1st block */+ }++ div#rightmost+ {+ margin-left: 1em; /* block-start margin of following block */+ }+ ]]></style>++ </head>++ <body>++ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>++ <div id="wrapper">+ <div id="leftmost"></div>+ <div id="rightmost"></div>+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vlr-009.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vlr-009.xhtnew file mode 100644index 00000000000..bbc121e8dcf--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vlr-009.xht@@ -0,0 +1,69 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: 'vertical-lr' and margin collapsing - adjoining margins of non-siblings or ancestors</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/../reference/ref-filled-green-100px-square.xht" />++ <!--+ Test adapted from+ http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-005.htm++ "+ The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.+ "+ -->++ <meta content="ahem image" name="flags" />+ <meta name="assert" content="This test checks that adjoining margin-end and margin-start boxes generated by elements, that are not related by siblings or ancestors, collapse in 'vertical-lr' writing-mode." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ font: 25px/1em Ahem;+ height: 4em;+ }++ div#wrapper+ {+ background: red url("support/margin-collapse-2em-space-wm-vert.png");+ width: 4em;+ writing-mode: vertical-lr;+ }++ div#leftmost+ {+ background-color: green;+ margin-right: 2em; /* block-end margin of sub-block of 1st block */+ width: 1em;+ }++ div#rightmost+ {+ background-color: green;+ margin-left: 1em; /* block-start margin of following sibling block */+ width: 1em;+ }+ ]]></style>++ </head>++ <body>++ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>++ <div id="wrapper">+ <div>+ <div id="leftmost"></div>+ </div>+ <div id="rightmost"></div>+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vlr-011.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vlr-011.xhtnew file mode 100644index 00000000000..be8bdf564dd--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vlr-011.xht@@ -0,0 +1,70 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: 'vertical-lr' and margin collapsing - floated elements do not collapse margins</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/../reference/ref-filled-green-100px-square.xht" />++ <!--+ Test adapted from+ http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-006.htm++ "+ The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.+ "+ -->++ <meta content="ahem image" name="flags" />+ <meta name="assert" content="This test checks that margin-end of floated box does not collapse with the margin-start of a preceding block box in 'vertical-lr' writing-mode." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ font: 25px/1em Ahem;+ height: 4em;+ }++ div#wrapper+ {+ background: red url("support/margin-collapse-2em-space-wm-vert.png");+ width: 4em;+ writing-mode: vertical-lr;+ }++ div#wrapper > div+ {+ background-color: green;+ width: 1em;+ }++ div#leftmost+ {+ margin-right: 1em; /* block-end margin of 1st block */+ }++ div#rightmost+ {+ float: right;+ margin-left: 1em; /* block-start margin of floated box */+ }+ ]]></style>++ </head>++ <body>++ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>++ <div id="wrapper">+ <div id="leftmost"></div>+ <div id="rightmost"></div>+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vlr-015.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vlr-015.xhtnew file mode 100644index 00000000000..3b2900a4f5e--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vlr-015.xht@@ -0,0 +1,71 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: 'vertical-lr' and margin collapsing - elements with 'overflow' set to 'visible'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/../reference/ref-filled-green-100px-square.xht" />++ <!--+ Test adapted from+ http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-008.htm++ "+ The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.+ "+ -->++ <meta content="ahem image" name="flags" />+ <meta name="assert" content="This test checks that elements with 'overflow' set to 'visible' collapse margin with in-flow children in 'vertical-lr' writing-mode." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ font: 25px/1em Ahem;+ height: 4em;+ }++ div#wrapper+ {+ background: url("support/margin-collapse-2em-space-wm-vert.png") -1em top;+ border-left: green solid 1em;+ writing-mode: vertical-lr;+ }++ div#wrapper div+ {+ width: 1em;+ }++ div#overflow+ {+ margin-left: 2em; /* block-start margin of overflowed block */+ overflow: visible;+ }++ div#nested+ {+ background-color: green;+ margin-left: 2em; /* block-start margin of sub-block */+ }+ ]]></style>++ </head>++ <body>++ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>++ <div id="wrapper">+ <div id="overflow">+ <div id="nested"></div>+ </div>+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vlr-035.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vlr-035.xhtnew file mode 100644index 00000000000..577a9799598--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vlr-035.xht@@ -0,0 +1,67 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: 'vertical-lr' and margin collapsing - left margin of a block collapses with left margin of its first child</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/../reference/ref-filled-green-100px-square.xht" />++ <!--+ Test adapted from+ http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-017.htm++ "+ The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.+ "+ -->++ <meta content="ahem image" name="flags" />+ <meta name="assert" content="This test checks that, in a vertical-lr context, the left margin an in-flow block element collapses with its first in-flow block-level child's left margin if the element has no top border, no top padding, and the child has no clearance." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ font: 25px/1em Ahem;+ height: 4em;+ }++ div#wrapper+ {+ background: red url("support/margin-collapse-2em-space-wm-vert.png") -1em top;+ border-left: green solid 1em;+ width: 3em;+ writing-mode: vertical-lr;+ }++ div#parent+ {+ margin-left: 2em; /* block-start margin */+ }++ div#first-child+ {+ background-color: green;+ margin-left: 2em; /* block-start margin of child */+ width: 1em;+ }+ ]]></style>++ </head>++ <body>++ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>++ <div id="wrapper">+ <div id="parent">+ <div id="first-child"></div>+ </div>+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vlr-037.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vlr-037.xhtnew file mode 100644index 00000000000..28df875f094--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vlr-037.xht@@ -0,0 +1,71 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: 'vertical-lr' and margin collapsing - right margin of a block collapses with right margin of its last child</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/../reference/ref-filled-green-100px-square.xht" />++ <!--+ "+ The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.+ "+ -->++ <meta content="ahem image" name="flags" />+ <meta name="assert" content="This test checks that, in a vertical-lr context, the right margin an in-flow block box collapses with its last in-flow block-level child's right margin if the element has no right padding and no right border and the child's right margin does not collapse with a left margin that has clearance." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ font: 25px/1em Ahem;+ height: 4em;+ }++ div#wrapper+ {+ background: red url("support/margin-collapse-2em-space-wm-vert.png") -1em top;+ border-left: green solid 1em;+ width: 3em;+ writing-mode: vertical-lr;+ }++ div#parent+ {+ background-color: green;+ margin-right: 2em; /* block-end margin */+ }++ div#last-child+ {+ margin-right: 2em; /* block-end margin of last child */+ }++ div#following-parent+ {+ background-color: green;+ width: 1em;+ }+ ]]></style>++ </head>++ <body>++ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>++ <div id="wrapper">+ <div id="parent">+ <div id="widthless-child"></div>+ <div id="last-child"></div>+ </div>+ <div id="following-parent"></div>+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vrl-002.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vrl-002.xhtnew file mode 100644index 00000000000..345cfe55b47--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vrl-002.xht@@ -0,0 +1,69 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: 'vertical-rl' and margin collapsing - maximum of 2 adjoining margins</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/../reference/ref-filled-green-100px-square.xht" />++ <!--+ Test adapted from+ http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-002.htm++ "+ The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.+ "+ -->++ <meta content="ahem image" name="flags" />+ <meta name="assert" content="This test checks that margin-end and margin-start of adjacent blocks collapse into its maximum in 'vertical-rl' writing-mode." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ font: 25px/1em Ahem;+ height: 4em;+ }++ div#wrapper+ {+ background: red url("support/margin-collapse-2em-space-wm-vert.png");+ width: 4em;+ writing-mode: vertical-rl;+ }++ div#wrapper > div+ {+ background-color: green;+ width: 1em;+ }++ div#rightmost+ {+ margin-left: 2em; /* block-end margin of 1st block */+ }++ div#leftmost+ {+ margin-right: 1em; /* block-start margin of following block */+ }+ ]]></style>++ </head>++ <body>++ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>++ <div id="wrapper">+ <div id="rightmost"></div>+ <div id="leftmost"></div>+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vrl-008.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vrl-008.xhtnew file mode 100644index 00000000000..0607947fbd8--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vrl-008.xht@@ -0,0 +1,69 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: 'vertical-rl' and margin collapsing - adjoining margins of non-siblings or ancestors</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/../reference/ref-filled-green-100px-square.xht" />++ <!--+ Test adapted from+ http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-005.htm++ "+ The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.+ "+ -->++ <meta content="ahem image" name="flags" />+ <meta name="assert" content="This test checks that adjoining margin-end and margin-start boxes generated by elements, that are not related by siblings or ancestors, collapse in 'vertical-rl' writing-mode." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ font: 25px/1em Ahem;+ height: 4em;+ }++ div#wrapper+ {+ background: red url("support/margin-collapse-2em-space-wm-vert.png");+ width: 4em;+ writing-mode: vertical-rl;+ }++ div#rightmost+ {+ background-color: green;+ margin-left: 2em; /* block-end margin of sub-block of 1st block */+ width: 1em;+ }++ div#leftmost+ {+ background-color: green;+ margin-right: 1em; /* block-start margin of following sibling block */+ width: 1em;+ }+ ]]></style>++ </head>++ <body>++ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>++ <div id="wrapper">+ <div>+ <div id="rightmost"></div>+ </div>+ <div id="leftmost"></div>+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vrl-010.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vrl-010.xhtnew file mode 100644index 00000000000..20f1add5b2b--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vrl-010.xht@@ -0,0 +1,70 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: 'vertical-rl' and margin collapsing - floated elements do not collapse margins</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/../reference/ref-filled-green-100px-square.xht" />++ <!--+ Test adapted from+ http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-006.htm++ "+ The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.+ "+ -->++ <meta content="ahem image" name="flags" />+ <meta name="assert" content="This test checks that margin-start of floated box does not collapse with the margin-end of a preceding block box in 'vertical-rl' writing-mode." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ font: 25px/1em Ahem;+ height: 4em;+ }++ div#wrapper+ {+ background: red url("support/margin-collapse-2em-space-wm-vert.png");+ width: 4em;+ writing-mode: vertical-rl;+ }++ div#wrapper > div+ {+ background-color: green;+ width: 1em;+ }++ div#rightmost+ {+ margin-left: 1em; /* block-end margin of 1st block */+ }++ div#leftmost+ {+ float: left;+ margin-right: 1em; /* block-start margin of floated box */+ }+ ]]></style>++ </head>++ <body>++ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>++ <div id="wrapper">+ <div id="rightmost"></div>+ <div id="leftmost"></div>+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vrl-014.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vrl-014.xhtnew file mode 100644index 00000000000..4d0bcaa6be5--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vrl-014.xht@@ -0,0 +1,71 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: 'vertical-rl' and margin collapsing - elements with 'overflow' set to 'visible'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/../reference/ref-filled-green-100px-square.xht" />++ <!--+ Test adapted from+ http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-008.htm++ "+ The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.+ "+ -->++ <meta content="ahem image" name="flags" />+ <meta name="assert" content="This test checks that elements with 'overflow' set to 'visible' collapse margin with in-flow children in 'vertical-rl' writing-mode." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ font: 25px/1em Ahem;+ height: 4em;+ }++ div#wrapper+ {+ background: url("support/margin-collapse-2em-space-wm-vert.png") left top;+ border-right: green solid 1em;+ writing-mode: vertical-rl;+ }++ div#wrapper div+ {+ width: 1em;+ }++ div#overflow+ {+ margin-right: 2em; /* block-start margin of overflowed block */+ overflow: visible;+ }++ div#nested+ {+ background-color: green;+ margin-right: 2em; /* block-start margin of sub-block */+ }+ ]]></style>++ </head>++ <body>++ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>++ <div id="wrapper">+ <div id="overflow">+ <div id="nested"></div>+ </div>+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vrl-016.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vrl-016.xhtnew file mode 100644index 00000000000..dee98f1d1cc--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vrl-016.xht@@ -0,0 +1,68 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: 'vertical-rl' and margin collapsing - elements with 'overflow' set to 'hidden'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/../reference/ref-filled-green-100px-square.xht" />++ <!--+ Test adapted and modified from+ http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-009.htm++ "+ The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.+ "+ -->++ <meta content="ahem image" name="flags" />+ <meta name="assert" content="This test checks that elements with 'overflow' set to 'hidden' do not collapse their horizontal margin with the horizontal margin in-flow children in 'vertical-rl' writing-mode. In this test, we are testing and checking that 'margin-right' of div#overflow does not collapse with 'margin-right' of div#nested." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ font: 25px/1em Ahem;+ height: 4em;+ }++ div#wrapper+ {+ width: 8em;+ writing-mode: vertical-rl;+ }++ div#overflow+ {+ background-color: green;+ margin-right: 4em; /* block-start margin of overflowed block */+ overflow: hidden;+ width: 4em;+ }++ div#nested+ {+ background-color: red;+ margin-right: 4em; /* block-start margin of sub-block */+ width: 4em;+ }+ ]]></style>++ </head>++ <body>++ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>++ <div id="wrapper">+ <div id="overflow">+ <div id="nested"></div>+ </div>+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vrl-036.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vrl-036.xhtnew file mode 100644index 00000000000..d1b43f604d7--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vrl-036.xht@@ -0,0 +1,71 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: 'vertical-rl' and margin collapsing - left margin of a block collapses with left margin of its last child</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/../reference/ref-filled-green-100px-square.xht" />++ <!--+ "+ The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.+ "+ -->++ <meta content="ahem image" name="flags" />+ <meta name="assert" content="This test checks that, in a vertical-rl context, the left margin an in-flow block box collapses with its last in-flow block-level child's left margin if the element has no left padding and no left border and the child's left margin does not collapse with a right margin that has clearance." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ font: 25px/1em Ahem;+ height: 4em;+ }++ div#wrapper+ {+ background: red url("support/margin-collapse-2em-space-wm-vert.png");+ border-right: green solid 1em;+ width: 3em;+ writing-mode: vertical-rl;+ }++ div#parent+ {+ background-color: green;+ margin-left: 2em; /* block-end margin */+ }++ div#last-child+ {+ margin-left: 2em; /* block-end margin of last child */+ }++ div#following-parent+ {+ background-color: green;+ width: 1em;+ }+ ]]></style>++ </head>++ <body>++ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>++ <div id="wrapper">+ <div id="parent">+ <div id="widthless-child"></div>+ <div id="last-child"></div>+ </div>+ <div id="following-parent"></div>+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-001.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-001.xhtnew file mode 100644index 00000000000..f2d936fcafe--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-001.xht@@ -0,0 +1,107 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside auto-sized 'vertical-lr' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-001-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also 'auto'. Since the width of the containing block is indefinite in this test, then constrain is the width of initial containing block which is, in this test, equal to the width of the viewport." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vlr tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' its max-content inline-size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 100px;+ margin-right: 100px;+ }++ div#auto-sized-vlr-containing-block+ {+ width: auto;+ /*+ 'width: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-vlr-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-004.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-004.xhtnew file mode 100644index 00000000000..ac6de6189bb--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-004.xht@@ -0,0 +1,106 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside auto-sized 'vertical-lr' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-004-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also 'auto'. Since the width of the containing block is indefinite in this test, then constrain is the width of initial containing block which is, in this test, equal to the width of the viewport." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vlr tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' its max-content inline-size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 100px;+ margin-right: 100px;+ }++ div#auto-sized-vlr-containing-block+ {+ width: auto;+ /*+ 'width: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-vlr-containing-block">++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++<script>+ document.scrollingElement.scrollLeft=document.scrollingElement.scrollWidth;+</script>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-006.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-006.xhtnew file mode 100644index 00000000000..ecdd7586ae2--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-006.xht@@ -0,0 +1,103 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside auto-sized 'vertical-lr' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-006-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also 'auto'. Since the width of the containing block is indefinite in this test, then constrain is the width of initial containing block which is, in this test, equal to the width of the viewport. In this test, the max-content will be less than the width of the initial containing block. Therefore the inline size of div#ortho-block-htb will be its max-content." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vlr tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' its max-content inline-size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 100px;+ margin-right: 100px;+ }++ div#auto-sized-vlr-containing-block+ {+ width: auto;+ /*+ 'width: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-vlr-containing-block">++ <div id="ortho-block-htb">123456789012345</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-007.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-007.xhtnew file mode 100644index 00000000000..c9beed2b9f5--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-007.xht@@ -0,0 +1,103 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside definite-sized 'vertical-lr' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-007-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also '400px'. Since the width of the containing block is definite in this test, then constrain is the width of such containing block which is, in this test, 400px. This test presumes that the initial containing block's width is greater than 400px." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vlr tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' its max-content inline-size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 100px;+ margin-right: 100px;+ }++ div#sized-400px-vlr-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vlr-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-011.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-011.xhtnew file mode 100644index 00000000000..bcfae76e6f5--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-011.xht@@ -0,0 +1,99 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside definite-sized 'vertical-lr' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-011-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the width of the containing block is definite in this test, then constrain is the width of such containing block which is, in this test, 400px. This test presumes that the initial containing block's width is greater than 400px. In this test, we assume that the 50 characters long word is wider than the div#sized-400px-vlr-containing-block. Therefore, min-content is greater than constraint." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vlr tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' its max-content inline-size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 100px;+ margin-right: 100px;+ }++ div#sized-400px-vlr-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vlr-containing-block">++ <div id="ortho-block-htb">01020304050607080910111213141516171819202122232425</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-012.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-012.xhtnew file mode 100644index 00000000000..95a986e1b28--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-012.xht@@ -0,0 +1,99 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside definite-sized 'vertical-lr' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-006-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the width of the containing block is definite in this test, then constrain is the width of such containing block which is, in this test, 400px. This test presumes that the initial containing block's width is greater than 400px. In this test, the max-content will be less than the width of the containing block. Therefore the inline size of div#ortho-block-htb will be its max-content." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vlr tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' its max-content inline-size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 100px;+ margin-right: 100px;+ }++ div#sized-400px-vlr-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vlr-containing-block">++ <div id="ortho-block-htb">123456789012345</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-013.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-013.xhtnew file mode 100644index 00000000000..cda30bd6365--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-013.xht@@ -0,0 +1,107 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside auto-sized 'vertical-lr' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-013-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also 'auto'. Since the width of the containing block is indefinite in this test, then constrain is the width of initial containing block which is, in this test, equal to the width of the viewport." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vlr tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' its max-content inline-size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ margin-right: 0px;+ }++ div#auto-sized-vlr-containing-block+ {+ width: auto;+ /*+ 'width: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-vlr-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-018.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-018.xhtnew file mode 100644index 00000000000..d56f00b0ffe--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-018.xht@@ -0,0 +1,103 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside auto-sized 'vertical-lr' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-018-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also 'auto'. Since the width of the containing block is indefinite in this test, then constrain is the width of initial containing block which is, in this test, equal to the width of the viewport. In this test, the max-content will be less than the width of the initial containing block. Therefore the inline size of div#ortho-block-vlr will be its max-content." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vlr tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' its max-content inline-size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ margin-right: 0px;+ }++ div#auto-sized-vlr-containing-block+ {+ width: auto;+ /*+ 'width: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-vlr-containing-block">++ <div id="ortho-block-htb">123456789012345</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-019.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-019.xhtnew file mode 100644index 00000000000..a963e175547--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-019.xht@@ -0,0 +1,103 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside definite-sized 'vertical-lr' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-019-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the width of the containing block is definite in this test, then constrain is the width of such containing block which is, in this test, 400px. This test presumes that the initial containing block's width is greater than 400px." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vlr tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' its max-content inline-size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ margin-right: 0px;+ }++ div#sized-400px-vlr-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vlr-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-023.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-023.xhtnew file mode 100644index 00000000000..4da91e49e78--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-023.xht@@ -0,0 +1,99 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside definite-sized 'vertical-lr' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-023-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the width of the containing block is definite in this test, then constrain is the width of such containing block which is, in this test, 400px. This test presumes that the initial containing block's width is greater than 400px. In this test, we assume that the 50 characters long word is wider than the div#sized-400px-vlr-containing-block. Therefore, min-content is greater than constraint." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vlr tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' its max-content inline-size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ margin-right: 0px;+ }++ div#sized-400px-vlr-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vlr-containing-block">++ <div id="ortho-block-htb">01020304050607080910111213141516171819202122232425</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-024.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-024.xhtnew file mode 100644index 00000000000..b344ab74da2--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-024.xht@@ -0,0 +1,99 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside definite-sized 'vertical-lr' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-018-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the width of the containing block is definite in this test, then constrain is the width of such containing block which is, in this test, 400px. This test presumes that the initial containing block's width is greater than 400px. In this test, the max-content will be less than the width of the containing block. Therefore the inline size of div#ortho-block-htb will be its max-content." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vlr tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' its max-content inline-size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ margin-right: 0px;+ }++ div#sized-400px-vlr-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vlr-containing-block">++ <div id="ortho-block-htb">123456789012345</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-006.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-006.xhtnew file mode 100644index 00000000000..1df690274bb--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-006.xht@@ -0,0 +1,103 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside auto-sized 'vertical-rl' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-006-ref.xht" />++ <meta name="DC.date.created" content="2016-12-19T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also 'auto'. Since the width of the containing block is indefinite in this test, then constrain is the width of initial containing block which is, in this test, equal to the width of the viewport. In this test, the max-content will be less than the width of the initial containing block. Therefore the inline size of div#ortho-block-htb will be its max-content." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vrl tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' and its max-content inline size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 100px;+ margin-right: 100px;+ }++ div#auto-sized-vrl-containing-block+ {+ width: auto;+ /*+ 'width: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-vrl-containing-block">++ <div id="ortho-block-htb">123456789012345</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-007.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-007.xhtnew file mode 100644index 00000000000..c72ec7ce3f8--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-007.xht@@ -0,0 +1,103 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside definite-sized 'vertical-rl' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-007-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also 'auto'. Since the width of the containing block is definite in this test, then constrain is the width of such containing block which is, in this test, 400px. This test presumes that the initial containing block's width is greater than 400px." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vrl tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' and its max-content inline size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 100px;+ margin-right: 100px;+ }++ div#sized-400px-vrl-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vrl-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-010.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-010.xhtnew file mode 100644index 00000000000..5f9b1ed5318--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-010.xht@@ -0,0 +1,99 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside definite-sized 'vertical-rl' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-010-ref.xht" />++ <meta name="DC.date.created" content="2016-12-19T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the width of the containing block is definite in this test, then constrain is the width of such containing block which is, in this test, 400px. This test presumes that the initial containing block's width is greater than 400px. Therefore, the outer edges of the inline-axis of the orthogonal block becomes '400px'." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vrl tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' and its max-content inline size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 100px;+ margin-right: 100px;+ }++ div#sized-400px-vrl-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vrl-containing-block">++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-011.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-011.xhtnew file mode 100644index 00000000000..044dca0d11a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-011.xht@@ -0,0 +1,99 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside definite-sized 'vertical-rl' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-011-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. But the min-content inline size of the orthogonal block is greater than '400px' and less than the width of the initial containing block. In such case, the inline-size content edges of the orthogonal block becomes its min-content. In this test, we assume that the 50 characters long word is wider than the div#sized-400px-vrl-containing-block. Therefore, min-content is greater than constraint." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vrl tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' and its max-content inline size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 100px;+ margin-right: 100px;+ }++ div#sized-400px-vrl-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vrl-containing-block">++ <div id="ortho-block-htb">01020304050607080910111213141516171819202122232425</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-012.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-012.xhtnew file mode 100644index 00000000000..855c4521664--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-012.xht@@ -0,0 +1,99 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside definite-sized 'vertical-rl' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-006-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. The max-content is narrower than the definite-sized width of the containing block. Therefore the inline size of div#ortho-block-htb will be its max-content." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vrl tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' and its max-content inline size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 100px;+ margin-right: 100px;+ }++ div#sized-400px-vrl-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vrl-containing-block">++ <div id="ortho-block-htb">123456789012345</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-018.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-018.xhtnew file mode 100644index 00000000000..68746665dda--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-018.xht@@ -0,0 +1,103 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside auto-sized 'vertical-rl' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-018-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also 'auto'. Since the width of the containing block is indefinite in this test, then constrain is the width of initial containing block which is, in this test, equal to the width of the viewport. In this test, the max-content inline size of the orthogonal block is less than the width of the initial containing block. Therefore the inline size of div#ortho-block-vrl will be its max-content." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vrl tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' and its max-content inline size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ margin-right: 0px;+ }++ div#auto-sized-vrl-containing-block+ {+ width: auto;+ /*+ 'width: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-vrl-containing-block">++ <div id="ortho-block-htb">123456789012345</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-019.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-019.xhtnew file mode 100644index 00000000000..95814e99c73--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-019.xht@@ -0,0 +1,103 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside definite-sized 'vertical-rl' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-019-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the width of the containing block is definite in this test, then constrain is the width of such containing block which is, in this test, 400px. This test presumes that the initial containing block's width is greater than 400px." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vrl tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' and its max-content inline size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ margin-right: 0px;+ }++ div#sized-400px-vrl-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vrl-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-022.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-022.xhtnew file mode 100644index 00000000000..c737b7e7df5--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-022.xht@@ -0,0 +1,99 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside definite-sized 'vertical-rl' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-022-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the width of the containing block is definite in this test, then constrain is the width of such containing block which is, in this test, 400px. This test presumes that the initial containing block's width is greater than 400px." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vrl tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' and its max-content inline size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ margin-right: 0px;+ }++ div#sized-400px-vrl-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vrl-containing-block">++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-023.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-023.xhtnew file mode 100644index 00000000000..2d415aac62e--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-023.xht@@ -0,0 +1,99 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside definite-sized 'vertical-rl' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-023-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the width of the containing block is definite in this test, then constrain is the width of such containing block which is, in this test, 400px. This test presumes that the initial containing block's width is greater than 400px. In this test, we assume that the 50 characters long word is wider than the div#sized-400px-vrl-containing-block. Therefore, min-content is greater than constraint." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vrl tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' and its max-content inline size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ margin-right: 0px;+ }++ div#sized-400px-vrl-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vrl-containing-block">++ <div id="ortho-block-htb">01020304050607080910111213141516171819202122232425</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-024.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-024.xhtnew file mode 100644index 00000000000..9a6ddde950d--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-024.xht@@ -0,0 +1,99 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside definite-sized 'vertical-rl' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-018-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the width of the containing block is definite in this test, then constrain is the width of such containing block which is, in this test, 400px. This test presumes that the initial containing block's width is greater than 400px. In this test, the max-content will be less than the width of the containing block. Therefore the inline size of div#ortho-block-htb will be its max-content." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vrl tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' and its max-content inline size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ margin-right: 0px;+ }++ div#sized-400px-vrl-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vrl-containing-block">++ <div id="ortho-block-htb">123456789012345</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-001.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-001.xhtnew file mode 100644index 00000000000..aac2e733f61--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-001.xht@@ -0,0 +1,81 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with percent inline-size inside auto-sized 'vertical-lr' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-001-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-08T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is '50%' and its containing block's block size is 'auto'. Since the width of the containing block is indefinite in this test, then the initial containing block's size is used as a fallback which is, in this test, equal to the width of the viewport." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-htb-in-vlr tests:+ 001-004: body has 100px margin-left and 100px margin-right+ 005-008: body has no horizontal margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's width is 'auto' therefore indefinite+ 003-004: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 100px;+ margin-right: 100px;+ }++ div#auto-sized-vlr-containing-block+ {+ width: auto;+ /*+ 'width: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-htb+ {+ border: blue solid 35px;+ width: 50%;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-vlr-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-002.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-002.xhtnew file mode 100644index 00000000000..1822c37ede9--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-002.xht@@ -0,0 +1,77 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with percent inline-size inside auto-sized 'vertical-lr' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-002-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-08T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is '50%' and its containing block's block size is 'auto'. Since the width of the containing block is indefinite in this test, then the initial containing block's size is used as a fallback which is, in this test, equal to the width of the viewport." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-htb-in-vlr tests:+ 001-004: body has 100px margin-left and 100px margin-right+ 005-008: body has no horizontal margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's width is 'auto' therefore indefinite+ 003-004: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 100px;+ margin-right: 100px;+ }++ div#auto-sized-vlr-containing-block+ {+ width: auto;+ /*+ 'width: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: 50%;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-vlr-containing-block">++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-003.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-003.xhtnew file mode 100644index 00000000000..4bd36bb2cc7--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-003.xht@@ -0,0 +1,78 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with percent inline-size inside definite-sized 'vertical-lr' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-003-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the width of the containing block is definite, therefore 50% is applied on the width of such containing block which is, in this test, 400px." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-htb-in-vlr tests:+ 001-004: body has 100px margin-left and 100px margin-right+ 005-008: body has no horizontal margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's width is 'auto' therefore indefinite+ 003-004: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 100px;+ margin-right: 100px;+ }++ div#sized-400px-vlr-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: 50%;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vlr-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-005.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-005.xhtnew file mode 100644index 00000000000..1996f1c18a2--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-005.xht@@ -0,0 +1,82 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with percent inline-size inside auto-sized 'vertical-lr' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-005-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is '50%' and its containing block's block size is 'auto'. Since the width of the containing block is indefinite in this test, then the initial containing block's size is used as a fallback which is, in this test, equal to the width of the viewport." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-htb-in-vlr tests:+ 001-004: body has 100px margin-left and 100px margin-right+ 005-008: body has no horizontal margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's width is 'auto' therefore indefinite+ 003-004: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ margin-right: 0px;+ }++ div#auto-sized-vlr-containing-block+ {+ width: auto;+ /*+ 'width: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-htb+ {+ border: blue solid 35px;+ width: 50%;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-vlr-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-007.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-007.xhtnew file mode 100644index 00000000000..7134fcb4938--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-007.xht@@ -0,0 +1,78 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with percent inline-size inside definite-sized 'vertical-lr' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-007-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the width of the containing block is definite, therefore 50% is applied on the width of such containing block which is, in this test, 400px." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-htb-in-vlr tests:+ 001-004: body has 100px margin-left and 100px margin-right+ 005-008: body has no horizontal margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's width is 'auto' therefore indefinite+ 003-004: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ margin-right: 0px;+ }++ div#sized-400px-vlr-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: 50%;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vlr-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-001.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-001.xhtnew file mode 100644index 00000000000..7d095526965--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-001.xht@@ -0,0 +1,82 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with percent inline-size inside auto-sized 'vertical-rl' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-001-ref.xht" />++ <meta name="DC.date.created" content="2016-12-19T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is '50%' and its containing block's block size is 'auto'. Since the width of the containing block is indefinite in this test, then the initial containing block's size is used as a fallback which is, in this test, equal to the width of the viewport." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-htb-in-vrl tests:+ 001-004: body has 100px margin-left and 100px margin-right+ 005-008: body has no horizontal margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's width is 'auto' therefore indefinite+ 003-004: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 100px;+ margin-right: 100px;+ }++ div#auto-sized-vrl-containing-block+ {+ width: auto;+ /*+ 'width: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-htb+ {+ border: blue solid 35px;+ width: 50%;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-vrl-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-002.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-002.xhtnew file mode 100644index 00000000000..cc373d83fef--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-002.xht@@ -0,0 +1,78 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with percent inline-size inside auto-sized 'vertical-rl' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-002-ref.xht" />++ <meta name="DC.date.created" content="2016-12-19T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is '50%' and its containing block's block size is 'auto'. Since the width of the containing block is indefinite in this test, then the initial containing block's size is used as a fallback which is, in this test, equal to the width of the viewport." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-htb-in-vrl tests:+ 001-004: body has 100px margin-left and 100px margin-right+ 005-008: body has no horizontal margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's width is 'auto' therefore indefinite+ 003-004: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 100px;+ margin-right: 100px;+ }++ div#auto-sized-vrl-containing-block+ {+ width: auto;+ /*+ 'width: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: 50%;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-vrl-containing-block">++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-003.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-003.xhtnew file mode 100644index 00000000000..84336fa195b--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-003.xht@@ -0,0 +1,78 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with percent inline-size inside definite-sized 'vertical-rl' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-003-ref.xht" />++ <meta name="DC.date.created" content="2016-12-19T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the width of the containing block is definite, therefore 50% is applied on the width of such containing block which is, in this test, 400px." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-htb-in-vrl tests:+ 001-004: body has 100px margin-left and 100px margin-right+ 005-008: body has no horizontal margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's width is 'auto' therefore indefinite+ 003-004: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 100px;+ margin-right: 100px;+ }++ div#sized-400px-vrl-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: 50%;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vrl-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-004.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-004.xhtnew file mode 100644index 00000000000..f4356f3b256--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-004.xht@@ -0,0 +1,74 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with percent inline-size inside definite-sized 'vertical-rl' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-004-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the width of the containing block is definite, therefore 50% is applied on the width of such containing block which is, in this test, 400px." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-htb-in-vrl tests:+ 001-004: body has 100px margin-left and 100px margin-right+ 005-008: body has no horizontal margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's width is 'auto' therefore indefinite+ 003-004: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 100px;+ margin-right: 100px;+ }++ div#sized-400px-vrl-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: 50%;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vrl-containing-block">++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-005.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-005.xhtnew file mode 100644index 00000000000..c0fc50fc6e4--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-005.xht@@ -0,0 +1,82 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with percent inline-size inside auto-sized 'vertical-rl' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-005-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is '50%' and its containing block's block size is 'auto'. Since the width of the containing block is indefinite in this test, then the initial containing block's size is used as a fallback which is, in this test, equal to the width of the viewport." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-htb-in-vrl tests:+ 001-004: body has 100px margin-left and 100px margin-right+ 005-008: body has no horizontal margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's width is 'auto' therefore indefinite+ 003-004: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ margin-right: 0px;+ }++ div#auto-sized-vrl-containing-block+ {+ width: auto;+ /*+ 'width: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-htb+ {+ border: blue solid 35px;+ width: 50%;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-vrl-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-006.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-006.xhtnew file mode 100644index 00000000000..3ba33cb3613--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-006.xht@@ -0,0 +1,78 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with percent inline-size inside auto-sized 'vertical-rl' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-006-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is '50%' and its containing block's block size is 'auto'. Since the width of the containing block is indefinite in this test, then the initial containing block's size is used as a fallback which is, in this test, equal to the width of the viewport." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-htb-in-vrl tests:+ 001-004: body has 100px margin-left and 100px margin-right+ 005-008: body has no horizontal margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's width is 'auto' therefore indefinite+ 003-004: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ margin-right: 0px;+ }++ div#auto-sized-vrl-containing-block+ {+ width: auto;+ /*+ 'width: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: 50%;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-vrl-containing-block">++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-007.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-007.xhtnew file mode 100644index 00000000000..eca99ef62d8--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-007.xht@@ -0,0 +1,79 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with percent inline-size inside definite-sized 'vertical-rl' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-007-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the width of the containing block is definite, therefore 50% is applied on the width of such containing block which is, in this test, 400px." />++ <!--+++ Inside this batch of 8 sizing-orthog-prct-htb-in-vrl tests:+ 001-004: body has 100px margin-left and 100px margin-right+ 005-008: body has no horizontal margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's width is 'auto' therefore indefinite+ 003-004: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ margin-right: 0px;+ }++ div#sized-400px-vrl-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: 50%;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vrl-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-008.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-008.xhtnew file mode 100644index 00000000000..514b8b6a04c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-008.xht@@ -0,0 +1,74 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with percent inline-size inside definite-sized 'vertical-rl' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vrl-008-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the width of the containing block is definite, therefore 50% is applied on the width of such containing block which is, in this test, 400px." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-htb-in-vrl tests:+ 001-004: body has 100px margin-left and 100px margin-right+ 005-008: body has no horizontal margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's width is 'auto' therefore indefinite+ 003-004: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ margin-right: 0px;+ }++ div#sized-400px-vrl-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: 50%;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vrl-containing-block">++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-001.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-001.xhtnew file mode 100644index 00000000000..80c84f7276a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-001.xht@@ -0,0 +1,78 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-lr' block with percent inline-size inside auto-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-001-ref.xht" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is '50%' and its containing block's block size is 'auto'. Since the height of the containing block is indefinite in this test, then the initial containing block's size is used as a fallback which is, in this test, equal to the height of the viewport." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-vlr-in-htb tests:+ 001-004: body has 100px margin-bottom and 100px margin-top+ 005-008: body has no vertical margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's height is 'auto' therefore indefinite+ 003-004: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 100px;+ margin-top: 100px;+ /* Nota bene: margin-top of p#sentence-before will collapse with body's margin-top */+ }++ div#auto-sized-htb-containing-block+ {+ height: auto;+ /*+ 'height: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-vlr+ {+ border: blue solid 35px;+ height: 50%;+ writing-mode: vertical-lr;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-htb-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-vlr">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-002.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-002.xhtnew file mode 100644index 00000000000..f71e49404a4--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-002.xht@@ -0,0 +1,74 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-lr' block with percent inline-size inside auto-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-002-ref.xht" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is '50%' and its containing block's block size is 'auto'. Since the height of the containing block is indefinite in this test, then the initial containing block's size is used as a fallback which is, in this test, equal to the height of the viewport." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-vlr-in-htb tests:+ 001-004: body has 100px margin-bottom and 100px margin-top+ 005-008: body has no vertical margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's height is 'auto' therefore indefinite+ 003-004: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 100px;+ margin-top: 100px;+ /* Nota bene: margin-top of p#sentence-before will collapse with body's margin-top */+ }++ div#auto-sized-htb-containing-block+ {+ height: auto;+ /*+ 'height: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-vlr+ {+ border: blue solid 3px;+ height: 50%;+ writing-mode: vertical-lr;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-htb-containing-block">++ <div id="ortho-block-vlr">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-003.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-003.xhtnew file mode 100644index 00000000000..b9919183702--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-003.xht@@ -0,0 +1,74 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-lr' block with percent inline-size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-003-ref.xht" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the height of the containing block is definite, therefore 50% is applied on the height of such containing block which is, in this test, 400px." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-vlr-in-htb tests:+ 001-004: body has 100px margin-bottom and 100px margin-top+ 005-008: body has no vertical margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's height is 'auto' therefore indefinite+ 003-004: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 100px;+ margin-top: 100px;+ /* Nota bene: margin-top of p#sentence-before will collapse with body's margin-top */+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vlr+ {+ border: blue solid 3px;+ height: 50%;+ writing-mode: vertical-lr;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-vlr">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-004.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-004.xhtnew file mode 100644index 00000000000..9e259ffea21--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-004.xht@@ -0,0 +1,69 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-lr' block with percent inline-size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-004-ref.xht" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-08T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the height of the containing block is definite, therefore 50% is applied on the height of such containing block which is, in this test, 400px." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-vlr-in-htb tests:+ 001-004: body has 100px margin-bottom and 100px margin-top+ 005-008: body has no vertical margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's height is 'auto' therefore indefinite+ 003-004: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 100px;+ margin-top: 100px;+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vlr+ {+ border: blue solid 3px;+ height: 50%;+ writing-mode: vertical-lr;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <div id="ortho-block-vlr">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-005.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-005.xhtnew file mode 100644index 00000000000..e40727f4d5c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-005.xht@@ -0,0 +1,77 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-lr' block with percent inline-size inside auto-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-005-ref.xht" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is '50%' and its containing block's block size is 'auto'. Since the height of the containing block is indefinite in this test, then the initial containing block's size is used as a fallback which is, in this test, equal to the height of the viewport." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-vlr-in-htb tests:+ 001-004: body has 100px margin-bottom and 100px margin-top+ 005-008: body has no vertical margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's height is 'auto' therefore indefinite+ 003-004: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div#auto-sized-htb-containing-block+ {+ height: auto;+ /*+ 'height: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-vlr+ {+ border: blue solid 35px;+ height: 50%;+ writing-mode: vertical-lr;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-htb-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-vlr">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-006.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-006.xhtnew file mode 100644index 00000000000..3c3d1b6f1fa--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-006.xht@@ -0,0 +1,73 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-lr' block with percent inline-size inside auto-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-006-ref.xht" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is '50%' and its containing block's block size is 'auto'. Since the height of the containing block is indefinite in this test, then the initial containing block's size is used as a fallback which is, in this test, equal to the height of the viewport." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-vlr-in-htb tests:+ 001-004: body has 100px margin-bottom and 100px margin-top+ 005-008: body has no vertical margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's height is 'auto' therefore indefinite+ 003-004: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div#auto-sized-htb-containing-block+ {+ height: auto;+ /*+ 'height: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-vlr+ {+ border: blue solid 3px;+ height: 50%;+ writing-mode: vertical-lr;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-htb-containing-block">++ <div id="ortho-block-vlr">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-007.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-007.xhtnew file mode 100644index 00000000000..6508beab5d6--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-007.xht@@ -0,0 +1,73 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-lr' block with percent inline-size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-007-ref.xht" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the height of the containing block is definite, therefore 50% is applied on the height of such containing block which is, in this test, 400px." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-vlr-in-htb tests:+ 001-004: body has 100px margin-bottom and 100px margin-top+ 005-008: body has no vertical margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's height is 'auto' therefore indefinite+ 003-004: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vlr+ {+ border: blue solid 3px;+ height: 50%;+ writing-mode: vertical-lr;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-vlr">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-008.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-008.xhtnew file mode 100644index 00000000000..8b896638eec--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-008.xht@@ -0,0 +1,69 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-lr' block with percent inline-size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vlr-in-htb-008-ref.xht" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the height of the containing block is definite, therefore 50% is applied on the height of such containing block which is, in this test, 400px." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-vlr-in-htb tests:+ 001-004: body has 100px margin-bottom and 100px margin-top+ 005-008: body has no vertical margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's height is 'auto' therefore indefinite+ 003-004: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vlr+ {+ border: blue solid 3px;+ height: 50%;+ writing-mode: vertical-lr;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <div id="ortho-block-vlr">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-001.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-001.xhtnew file mode 100644index 00000000000..f4219290af6--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-001.xht@@ -0,0 +1,78 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-rl' block with percent inline-size inside auto-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-001-ref.xht" />++ <meta name="DC.date.created" content="2016-09-15T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is '50%' and its containing block's block size is 'auto'. Since the height of the containing block is indefinite in this test, then the initial containing block's size is used as a fallback which is, in this test, equal to the height of the viewport." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-vrl-in-htb tests:+ 001-004: body has 100px margin-bottom and 100px margin-top+ 005-008: body has no vertical margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's height is 'auto' therefore indefinite+ 003-004: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 100px;+ margin-top: 100px;+ /* Nota bene: margin-top of p#sentence-before will collapse with body's margin-top */+ }++ div#auto-sized-htb-containing-block+ {+ height: auto;+ /*+ 'height: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-vrl+ {+ border: blue solid 35px;+ height: 50%;+ writing-mode: vertical-rl;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-htb-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-vrl">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-002.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-002.xhtnew file mode 100644index 00000000000..7ae472c08d2--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-002.xht@@ -0,0 +1,73 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-rl' block with percent inline-size inside auto-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-002-ref.xht" />++ <meta name="DC.date.created" content="2016-09-15T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-08T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is '50%' and its containing block's block size is 'auto'. Since the height of the containing block is indefinite in this test, then the initial containing block's size is used as a fallback which is, in this test, equal to the height of the viewport." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-vrl-in-htb tests:+ 001-004: body has 100px margin-bottom and 100px margin-top+ 005-008: body has no vertical margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's height is 'auto' therefore indefinite+ 003-004: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 100px;+ margin-top: 100px;+ }++ div#auto-sized-htb-containing-block+ {+ height: auto;+ /*+ 'height: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-vrl+ {+ border: blue solid 3px;+ height: 50%;+ writing-mode: vertical-rl;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-htb-containing-block">++ <div id="ortho-block-vrl">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-003.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-003.xhtnew file mode 100644index 00000000000..fb95a6d3af9--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-003.xht@@ -0,0 +1,74 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-rl' block with percent inline-size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-003-ref.xht" />++ <meta name="DC.date.created" content="2016-09-15T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the height of the containing block is definite, therefore 50% is applied on the height of such containing block which is, in this test, 400px." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-vrl-in-htb tests:+ 001-004: body has 100px margin-bottom and 100px margin-top+ 005-008: body has no vertical margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's height is 'auto' therefore indefinite+ 003-004: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 100px;+ margin-top: 100px;+ /* Nota bene: margin-top of p#sentence-before will collapse with body's margin-top */+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vrl+ {+ border: blue solid 3px;+ height: 50%;+ writing-mode: vertical-rl;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-vrl">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-004.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-004.xhtnew file mode 100644index 00000000000..87c4f488963--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-004.xht@@ -0,0 +1,69 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-rl' block with percent inline-size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-004-ref.xht" />++ <meta name="DC.date.created" content="2016-09-15T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-08T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the height of the containing block is definite, therefore 50% is applied on the height of such containing block which is, in this test, 400px." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-vrl-in-htb tests:+ 001-004: body has 100px margin-bottom and 100px margin-top+ 005-008: body has no vertical margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's height is 'auto' therefore indefinite+ 003-004: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 100px;+ margin-top: 100px;+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vrl+ {+ border: blue solid 3px;+ height: 50%;+ writing-mode: vertical-rl;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <div id="ortho-block-vrl">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-005.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-005.xhtnew file mode 100644index 00000000000..f42b4dc1c9f--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-005.xht@@ -0,0 +1,77 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-rl' block with percent inline-size inside auto-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-005-ref.xht" />++ <meta name="DC.date.created" content="2016-09-28T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is '50%' and its containing block's block size is 'auto'. Since the height of the containing block is indefinite in this test, then the initial containing block's size is used as a fallback which is, in this test, equal to the height of the viewport." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-vrl-in-htb tests:+ 001-004: body has 100px margin-bottom and 100px margin-top+ 005-008: body has no vertical margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's height is 'auto' therefore indefinite+ 003-004: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div#auto-sized-htb-containing-block+ {+ height: auto;+ /*+ 'height: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-vrl+ {+ border: blue solid 35px;+ height: 50%;+ writing-mode: vertical-rl;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-htb-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-vrl">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-006.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-006.xhtnew file mode 100644index 00000000000..7f13ae3fdc8--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-006.xht@@ -0,0 +1,73 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-rl' block with percent inline-size inside auto-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-006-ref.xht" />++ <meta name="DC.date.created" content="2016-09-28T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is '50%' and its containing block's block size is 'auto'. Since the height of the containing block is indefinite in this test, then the initial containing block's size is used as a fallback which is, in this test, equal to the height of the viewport." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-vrl-in-htb tests:+ 001-004: body has 100px margin-bottom and 100px margin-top+ 005-008: body has no vertical margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's height is 'auto' therefore indefinite+ 003-004: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div#auto-sized-htb-containing-block+ {+ height: auto;+ /*+ 'height: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-vrl+ {+ border: blue solid 3px;+ height: 50%;+ writing-mode: vertical-rl;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-htb-containing-block">++ <div id="ortho-block-vrl">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-007.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-007.xhtnew file mode 100644index 00000000000..fb085acbd1c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-007.xht@@ -0,0 +1,73 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-rl' block with percent inline-size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-007-ref.xht" />++ <meta name="DC.date.created" content="2016-09-28T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the height of the containing block is definite, therefore 50% is applied on the height of such containing block which is, in this test, 400px." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-vrl-in-htb tests:+ 001-004: body has 100px margin-bottom and 100px margin-top+ 005-008: body has no vertical margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's height is 'auto' therefore indefinite+ 003-004: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vrl+ {+ border: blue solid 3px;+ height: 50%;+ writing-mode: vertical-rl;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-vrl">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-008.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-008.xhtnew file mode 100644index 00000000000..1008b0484c2--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-008.xht@@ -0,0 +1,69 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-rl' block with percent inline-size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-vrl-in-htb-008-ref.xht" />++ <meta name="DC.date.created" content="2016-09-28T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the height of the containing block is definite, therefore 50% is applied on the height of such containing block which is, in this test, 400px." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-vrl-in-htb tests:+ 001-004: body has 100px margin-bottom and 100px margin-top+ 005-008: body has no vertical margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's height is 'auto' therefore indefinite+ 003-004: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vrl+ {+ border: blue solid 3px;+ height: 50%;+ writing-mode: vertical-rl;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <div id="ortho-block-vrl">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-001.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-001.xhtnew file mode 100644index 00000000000..db47bc41e15--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-001.xht@@ -0,0 +1,103 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-lr' block with 'auto' inline size inside auto-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-001-ref.xht" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also 'auto'. Since the height of the containing block is indefinite in this test, then constrain is the height of initial containing block which is, in this test, equal to the height of the viewport." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vlr-in-htb tests:+ 001-012 : body has 100px margin-top and 100px margin-bottom+ 013-024 : body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' its max-content inline-size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 100px;+ margin-top: 100px;+ /* Nota bene: margin-top of p#sentence-before will collapse with body's margin-top */+ }++ div#auto-sized-htb-containing-block+ {+ height: auto;+ /*+ 'height: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-vlr+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-lr;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-htb-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-vlr">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-004.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-004.xhtnew file mode 100644index 00000000000..ff2438aeb5d--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-004.xht@@ -0,0 +1,99 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-lr' block with 'auto' inline size inside auto-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-004-ref.xht" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also 'auto'. Since the height of the containing block is indefinite in this test, then constrain is the height of initial containing block which is, in this test, equal to the height of the viewport." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vlr-in-htb tests:+ 001-012 : body has 100px margin-top and 100px margin-bottom+ 013-024 : body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' its max-content inline-size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 100px;+ margin-top: 100px;+ /* Nota bene: margin-top of p#sentence-before will collapse with body's margin-top */+ }++ div#auto-sized-htb-containing-block+ {+ height: auto;+ /*+ 'height: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-vlr+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-lr;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-htb-containing-block">++ <div id="ortho-block-vlr">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-006.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-006.xhtnew file mode 100644index 00000000000..8fd5e356c6c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-006.xht@@ -0,0 +1,99 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-lr' block with 'auto' inline size inside auto-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-006-ref.xht" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also 'auto'. Since the height of the containing block is indefinite in this test, then constrain is the height of initial containing block which is, in this test, equal to the height of the viewport. In this test, the max-content will be smaller than the height of the initial containing block. Therefore the inline size of div#ortho-block-vlr will be its max-content." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vlr-in-htb tests:+ 001-012 : body has 100px margin-top and 100px margin-bottom+ 013-024 : body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' its max-content inline-size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 100px;+ margin-top: 100px;+ /* Nota bene: margin-top of p#sentence-before will collapse with body's margin-top */+ }++ div#auto-sized-htb-containing-block+ {+ height: auto;+ /*+ 'height: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-vlr+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-lr;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-htb-containing-block">++ <div id="ortho-block-vlr">123456789012345</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-007.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-007.xhtnew file mode 100644index 00000000000..4384e088403--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-007.xht@@ -0,0 +1,99 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-lr' block with 'auto' inline size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-007-ref.xht" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the height of the containing block is definite in this test, then constrain is the height of such containing block which is, in this test, 400px. This test presumes that the initial containing block's height is greater than 400px." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vlr-in-htb tests:+ 001-012 : body has 100px margin-top and 100px margin-bottom+ 013-024 : body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' its max-content inline-size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 100px;+ margin-top: 100px;+ /* Nota bene: margin-top of p#sentence-before will collapse with body's margin-top */+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vlr+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-lr;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-vlr">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-010.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-010.xhtnew file mode 100644index 00000000000..d8a1138e0b1--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-010.xht@@ -0,0 +1,95 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-lr' block with 'auto' inline size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-010-ref.xht" />++ <meta name="DC.date.created" content="2016-09-15T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the height of the containing block is definite in this test, then constrain is the height of such containing block which is, in this test, 400px. This test presumes that the initial containing block's height is greater than 400px." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vlr-in-htb tests:+ 001-012 : body has 100px margin-top and 100px margin-bottom+ 013-024 : body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' its max-content inline-size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 100px;+ margin-top: 100px;+ /* Nota bene: margin-top of p#sentence-before will collapse with body's margin-top */+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vlr+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-lr;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <div id="ortho-block-vlr">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-011.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-011.xhtnew file mode 100644index 00000000000..8c5a8321cab--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-011.xht@@ -0,0 +1,95 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-lr' block with 'auto' inline size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-011-ref.xht" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the height of the containing block is definite in this test, then constrain is the height of such containing block which is, in this test, 400px. This test presumes that the initial containing block's height is greater than 400px. In this test, we assume that the 50 characters long word is greater than the height of div#sized-400px-htb-containing-block. Therefore, min-content is greater than constraint." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vlr-in-htb tests:+ 001-012 : body has 100px margin-top and 100px margin-bottom+ 013-024 : body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' its max-content inline-size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 100px;+ margin-top: 100px;+ /* Nota bene: margin-top of p#sentence-before will collapse with body's margin-top */+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vlr+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-lr;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <div id="ortho-block-vlr">01020304050607080910111213141516171819202122232425</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-012.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-012.xhtnew file mode 100644index 00000000000..f6d2d0756d9--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-012.xht@@ -0,0 +1,94 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-lr' block with 'auto' inline size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-012-ref.xht" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-08T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the height of the containing block is definite in this test, then constrain is the height of such containing block which is, in this test, 400px. This test presumes that the initial containing block's height is greater than 400px. In this test, the max-content will be smaller than the height of the initial containing block. Therefore the inline size of div#ortho-block-vlr will be its max-content." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vlr-in-htb tests:+ 001-012: body has 100px margin-top and 100px margin-bottom+ 013-024: body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' its max-content inline-size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 100px;+ margin-top: 100px;+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vlr+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-lr;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <div id="ortho-block-vlr">123456789012345</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-013.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-013.xhtnew file mode 100644index 00000000000..c596f2ae498--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-013.xht@@ -0,0 +1,102 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-lr' block with 'auto' inline size inside auto-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-013-ref.xht" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also 'auto'. Since the height of the containing block is indefinite in this test, then constrain is the height of initial containing block which is, in this test, equal to the height of the viewport." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vlr-in-htb tests:+ 001-012: body has 100px margin-top and 100px margin-bottom+ 013-024: body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' its max-content inline-size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div#auto-sized-htb-containing-block+ {+ height: auto;+ /*+ 'height: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-vlr+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-lr;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-htb-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-vlr">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-016.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-016.xhtnew file mode 100644index 00000000000..f2f5cf7741e--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-016.xht@@ -0,0 +1,98 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-lr' block with 'auto' inline size inside auto-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-016-ref.xht" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also 'auto'. Since the height of the containing block is indefinite in this test, then constrain is the height of initial containing block which is, in this test, equal to the height of the viewport." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vlr-in-htb tests:+ 001-012: body has 100px margin-top and 100px margin-bottom+ 013-024: body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' its max-content inline-size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div#auto-sized-htb-containing-block+ {+ height: auto;+ /*+ 'height: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-vlr+ {+ border: blue solid 35px;+ height: auto;+ writing-mode: vertical-lr;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-htb-containing-block">++ <div id="ortho-block-vlr">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-018.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-018.xhtnew file mode 100644index 00000000000..f9cb21ab78c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-018.xht@@ -0,0 +1,98 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-lr' block with 'auto' inline size inside auto-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-018-ref.xht" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also 'auto'. Since the height of the containing block is indefinite in this test, then constrain is the height of initial containing block which is, in this test, equal to the height of the viewport. In this test, the max-content will be smaller than the height of the initial containing block. Therefore the inline size of div#ortho-block-vlr will be its max-content." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vlr-in-htb tests:+ 001-012: body has 100px margin-top and 100px margin-bottom+ 013-024: body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' its max-content inline-size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div#auto-sized-htb-containing-block+ {+ height: auto;+ /*+ 'height: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-vlr+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-lr;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-htb-containing-block">++ <div id="ortho-block-vlr">123456789012345</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-019.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-019.xhtnew file mode 100644index 00000000000..ac7a01417c8--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-019.xht@@ -0,0 +1,98 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-lr' block with 'auto' inline size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-019-ref.xht" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the height of the containing block is definite in this test, then constrain is the height of such containing block which is, in this test, 400px. This test presumes that the initial containing block's height is greater than 400px." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vlr-in-htb tests:+ 001-012: body has 100px margin-top and 100px margin-bottom+ 013-024: body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' its max-content inline-size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vlr+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-lr;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-vlr">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-022.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-022.xhtnew file mode 100644index 00000000000..db54b61bf97--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-022.xht@@ -0,0 +1,94 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-lr' block with 'auto' inline size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-022-ref.xht" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the height of the containing block is definite in this test, then constrain is the height of such containing block which is, in this test, 400px. This test presumes that the initial containing block's height is greater than 400px." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vlr-in-htb tests:+ 001-012: body has 100px margin-top and 100px margin-bottom+ 013-024: body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' its max-content inline-size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vlr+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-lr;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <div id="ortho-block-vlr">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-023.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-023.xhtnew file mode 100644index 00000000000..cdf8fb9959c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-023.xht@@ -0,0 +1,94 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-lr' block with 'auto' inline size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-023-ref.xht" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the height of the containing block is definite in this test, then constrain is the height of such containing block which is, in this test, 400px. This test presumes that the initial containing block's height is greater than 400px. In this test, we assume that the 50 characters long word is greater than the height of div#sized-400px-htb-containing-block. Therefore, min-content is greater than constraint." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vlr-in-htb tests:+ 001-012: body has 100px margin-top and 100px margin-bottom+ 013-024: body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' its max-content inline-size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vlr+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-lr;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <div id="ortho-block-vlr">01020304050607080910111213141516171819202122232425</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-024.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-024.xhtnew file mode 100644index 00000000000..360b858bd83--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-024.xht@@ -0,0 +1,94 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-lr' block with 'auto' inline size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vlr-in-htb-018-ref.xht" />++ <meta name="DC.date.created" content="2016-10-04T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the height of the containing block is definite in this test, then constrain is the height of such containing block which is, in this test, 400px. This test presumes that the initial containing block's height is greater than 400px. In this test, the max-content will be smaller than the height of the containing block. Therefore the inline size of div#ortho-block-vlr will be its max-content." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vlr-in-htb tests:+ 001-012: body has 100px margin-top and 100px margin-bottom+ 013-024: body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' its max-content inline-size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vlr+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-lr;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <div id="ortho-block-vlr">123456789012345</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-001.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-001.xhtnew file mode 100644index 00000000000..5fad956028e--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-001.xht@@ -0,0 +1,103 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-rl' block with 'auto' inline size inside auto-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-001-ref.xht" />++ <meta name="DC.date.created" content="2016-09-02T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also 'auto'. Since the height of the containing block is indefinite in this test, then constrain is the height of initial containing block which is, in this test, equal to the height of the viewport." />++ <!--++ shrink-to-fit formula is: min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vrl-in-htb tests:+ 001-012: body has 100px margin-top and 100px margin-bottom+ 013-024: body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' and its max-content inline size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 100px;+ margin-top: 100px;+ /* Nota bene: margin-top of p#sentence-before will collapse with body's margin-top */+ }++ div#auto-sized-htb-containing-block+ {+ height: auto;+ /*+ 'height: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-vrl+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-rl;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-htb-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-vrl">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-004.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-004.xhtnew file mode 100644index 00000000000..bdd47bb0bf2--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-004.xht@@ -0,0 +1,99 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-rl' block with 'auto' inline size inside auto-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-004-ref.xht" />++ <meta name="DC.date.created" content="2016-09-15T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also 'auto'. Since the height of the containing block is indefinite in this test, then constrain is the height of initial containing block which is, in this test, equal to the height of the viewport." />++ <!--++ shrink-to-fit formula is: min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vrl-in-htb tests:+ 001-012: body has 100px margin-top and 100px margin-bottom+ 013-024: body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' and its max-content inline size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 100px;+ margin-top: 100px;+ /* Nota bene: margin-top of p#sentence-before will collapse with body's margin-top */+ }++ div#auto-sized-htb-containing-block+ {+ height: auto;+ /*+ 'height: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-vrl+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-rl;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-htb-containing-block">++ <div id="ortho-block-vrl">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-006.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-006.xhtnew file mode 100644index 00000000000..061fa02b416--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-006.xht@@ -0,0 +1,99 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-rl' block with 'auto' inline size inside auto-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-006-ref.xht" />++ <meta name="DC.date.created" content="2016-09-15T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also 'auto'. Since the height of the containing block is indefinite in this test, then constrain is the height of initial containing block which is, in this test, equal to the height of the viewport. In this test, the max-content will be smaller than the height of the initial containing block. Therefore the inline size of div#ortho-block-vrl will be its max-content." />++ <!--++ shrink-to-fit formula is: min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vrl-in-htb tests:+ 001-012: body has 100px margin-top and 100px margin-bottom+ 013-024: body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' and its max-content inline size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 100px;+ margin-top: 100px;+ /* Nota bene: margin-top of p#sentence-before will collapse with body's margin-top */+ }++ div#auto-sized-htb-containing-block+ {+ height: auto;+ /*+ 'height: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-vrl+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-rl;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-htb-containing-block">++ <div id="ortho-block-vrl">123456789012345</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-007.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-007.xhtnew file mode 100644index 00000000000..f83b9f90935--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-007.xht@@ -0,0 +1,99 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-rl' block with 'auto' inline size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-007-ref.xht" />++ <meta name="DC.date.created" content="2016-09-15T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the height of the containing block is definite in this test, then constrain is the height of such containing block which is, in this test, 400px. This test presumes that the initial containing block's height is greater than 400px." />++ <!--++ shrink-to-fit formula is: min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vrl-in-htb tests:+ 001-012: body has 100px margin-top and 100px margin-bottom+ 013-024: body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' and its max-content inline size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 100px;+ margin-top: 100px;+ /* Nota bene: margin-top of p#sentence-before will collapse with body's margin-top */+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vrl+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-rl;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-vrl">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-010.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-010.xhtnew file mode 100644index 00000000000..1f6f86f673f--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-010.xht@@ -0,0 +1,95 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-rl' block with 'auto' inline size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-010-ref.xht" />++ <meta name="DC.date.created" content="2016-09-15T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the height of the containing block is definite in this test, then constrain is the height of such containing block which is, in this test, 400px. This test presumes that the initial containing block's height is greater than 400px." />++ <!--++ shrink-to-fit formula is: min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vrl-in-htb tests:+ 001-012: body has 100px margin-top and 100px margin-bottom+ 013-024: body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' and its max-content inline size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 100px;+ margin-top: 100px;+ /* Nota bene: margin-top of p#sentence-before will collapse with body's margin-top */+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vrl+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-rl;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <div id="ortho-block-vrl">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-011.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-011.xhtnew file mode 100644index 00000000000..9c590b34946--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-011.xht@@ -0,0 +1,95 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-rl' block with 'auto' inline size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-011-ref.xht" />++ <meta name="DC.date.created" content="2016-09-15T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the height of the containing block is definite in this test, then constrain is the height of such containing block which is, in this test, 400px. This test presumes that the initial containing block's height is greater than 400px. In this test, we assume that the 50 characters long word is greater than the height of div#sized-400px-htb-containing-block. Therefore, min-content is greater than constraint." />++ <!--++ shrink-to-fit formula is: min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vrl-in-htb tests:+ 001-012: body has 100px margin-top and 100px margin-bottom+ 013-024: body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' and its max-content inline size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 100px;+ margin-top: 100px;+ /* Nota bene: margin-top of p#sentence-before will collapse with body's margin-top */+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vrl+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-rl;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <div id="ortho-block-vrl">01020304050607080910111213141516171819202122232425</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-012.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-012.xhtnew file mode 100644index 00000000000..46c52e396f9--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-012.xht@@ -0,0 +1,94 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-rl' block with 'auto' inline size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-012-ref.xht" />++ <meta name="DC.date.created" content="2016-09-15T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-08T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the height of the containing block is definite in this test, then constrain is the height of such containing block which is, in this test, 400px. This test presumes that the initial containing block's height is greater than 400px. In this test, the max-content will be smaller than the height of the initial containing block. Therefore the inline size of div#ortho-block-vrl will be its max-content." />++ <!--++ shrink-to-fit formula is: min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vrl-in-htb tests:+ 001-012: body has 100px margin-top and 100px margin-bottom+ 013-024: body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' and its max-content inline size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 100px;+ margin-top: 100px;+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vrl+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-rl;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <div id="ortho-block-vrl">123456789012345</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-013.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-013.xhtnew file mode 100644index 00000000000..dbe14b6aa11--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-013.xht@@ -0,0 +1,108 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-rl' block with 'auto' inline size inside auto-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-013-ref.xht" />++ <meta name="DC.date.created" content="2016-09-28T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also 'auto'. Since the height of the containing block is indefinite in this test, then constrain is the height of initial containing block which is, in this test, equal to the height of the viewport." />++ <!--++ shrink-to-fit formula is: min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vrl-in-htb tests:+ 001-012: body has 100px margin-top and 100px margin-bottom+ 013-024: body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' and its max-content inline size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ overflow: hidden; /* since test and reference might place scrollbars on+ different sides */+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div#auto-sized-htb-containing-block+ {+ height: auto;+ /*+ 'height: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-vrl+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-rl;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-htb-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-vrl">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-016.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-016.xhtnew file mode 100644index 00000000000..00bd919f0f1--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-016.xht@@ -0,0 +1,98 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-rl' block with 'auto' inline size inside auto-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-016-ref.xht" />++ <meta name="DC.date.created" content="2016-09-28T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also 'auto'. Since the height of the containing block is indefinite in this test, then constrain is the height of initial containing block which is, in this test, equal to the height of the viewport." />++ <!--++ shrink-to-fit formula is: min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vrl-in-htb tests:+ 001-012: body has 100px margin-top and 100px margin-bottom+ 013-024: body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' and its max-content inline size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div#auto-sized-htb-containing-block+ {+ height: auto;+ /*+ 'height: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-vrl+ {+ border: blue solid 35px;+ height: auto;+ writing-mode: vertical-rl;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-htb-containing-block">++ <div id="ortho-block-vrl">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-018.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-018.xhtnew file mode 100644index 00000000000..26cc9038db9--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-018.xht@@ -0,0 +1,98 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-rl' block with 'auto' inline size inside auto-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-018-ref.xht" />++ <meta name="DC.date.created" content="2016-09-28T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also 'auto'. Since the height of the containing block is indefinite in this test, then constrain is the height of initial containing block which is, in this test, equal to the height of the viewport. In this test, the max-content will be smaller than the height of the initial containing block. Therefore the inline size of div#ortho-block-vrl will be its max-content." />++ <!--++ shrink-to-fit formula is: min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vrl-in-htb tests:+ 001-012: body has 100px margin-top and 100px margin-bottom+ 013-024: body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' and its max-content inline size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div#auto-sized-htb-containing-block+ {+ height: auto;+ /*+ 'height: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-vrl+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-rl;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-htb-containing-block">++ <div id="ortho-block-vrl">123456789012345</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-019.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-019.xhtnew file mode 100644index 00000000000..11f1bb70a5a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-019.xht@@ -0,0 +1,98 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-rl' block with 'auto' inline size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-019-ref.xht" />++ <meta name="DC.date.created" content="2016-09-28T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the height of the containing block is definite in this test, then constrain is the height of such containing block which is, in this test, 400px. This test presumes that the initial containing block's height is greater than 400px." />++ <!--++ shrink-to-fit formula is: min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vrl-in-htb tests:+ 001-012: body has 100px margin-top and 100px margin-bottom+ 013-024: body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' and its max-content inline size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vrl+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-rl;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <p id="sentence-before">Sentence before.</p>++ <div id="ortho-block-vrl">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ <p id="sentence-after">Sentence after.</p>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-022.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-022.xhtnew file mode 100644index 00000000000..de914712fd2--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-022.xht@@ -0,0 +1,94 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-rl' block with 'auto' inline size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-022-ref.xht" />++ <meta name="DC.date.created" content="2016-09-28T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the height of the containing block is definite in this test, then constrain is the height of such containing block which is, in this test, 400px. This test presumes that the initial containing block's height is greater than 400px." />++ <!--++ shrink-to-fit formula is: min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vrl-in-htb tests:+ 001-012: body has 100px margin-top and 100px margin-bottom+ 013-024: body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' and its max-content inline size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vrl+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-rl;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <div id="ortho-block-vrl">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-023.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-023.xhtnew file mode 100644index 00000000000..ef681c29bdd--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-023.xht@@ -0,0 +1,94 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-rl' block with 'auto' inline size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-023-ref.xht" />++ <meta name="DC.date.created" content="2016-09-28T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the height of the containing block is definite in this test, then constrain is the height of such containing block which is, in this test, 400px. This test presumes that the initial containing block's height is greater than 400px. In this test, we assume that the 50 characters long word is greater than the height of div#sized-400px-htb-containing-block. Therefore, min-content is greater than constraint." />++ <!--++ shrink-to-fit formula is: min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vrl-in-htb tests:+ 001-012: body has 100px margin-top and 100px margin-bottom+ 013-024: body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' and its max-content inline size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vrl+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-rl;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <div id="ortho-block-vrl">01020304050607080910111213141516171819202122232425</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-024.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-024.xhtnew file mode 100644index 00000000000..4ee15a03963--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-024.xht@@ -0,0 +1,94 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">++<html xmlns="http://www.w3.org/1999/xhtml">++ <head>++ <title>CSS Writing Modes Test: sizing of orthogonal 'vertical-rl' block with 'auto' inline size inside definite-sized 'horizontal-tb' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-vrl-in-htb-018-ref.xht" />++ <meta name="DC.date.created" content="2016-09-28T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the height of the containing block is definite in this test, then constrain is the height of such containing block which is, in this test, 400px. This test presumes that the initial containing block's height is greater than 400px. In this test, the max-content will be smaller than the height of the containing block. Therefore the inline size of div#ortho-block-vrl will be its max-content." />++ <!--++ shrink-to-fit formula is: min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-vrl-in-htb tests:+ 001-012: body has 100px margin-top and 100px margin-bottom+ 013-024: body has no vertical margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's height is 'auto' therefore indefinite+ 007-012: containing block's height is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's height is 'auto'+ 002: orthogonal block's height is 'auto' and its min-content+ inline size is greater than containing-block's (definite) height (1 very long word)+ 003: orthogonal block's height is 'auto' and its max-content inline size+ is smaller than containing-block's height (short sentence)++ -->++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-bottom: 0px;+ margin-top: 0px;+ }++ div#sized-400px-htb-containing-block+ {+ height: 400px;+ }++ div#ortho-block-vrl+ {+ border: blue solid 3px;+ height: auto;+ writing-mode: vertical-rl;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-htb-containing-block">++ <div id="ortho-block-vrl">123456789012345</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Text/expected/abspos-relayout-contained-child-writing-modes.txt b/Tests/LibWeb/Text/expected/abspos-relayout-contained-child-writing-modes.txtindex 24f1a746d1b..38d1b2bba0a 100644--- a/Tests/LibWeb/Text/expected/abspos-relayout-contained-child-writing-modes.txt+++ b/Tests/LibWeb/Text/expected/abspos-relayout-contained-child-writing-modes.txt@@ -1,4 +1,4 @@-a: roots=[layout PARTIAL BlockContainer<DIV>.child] full-layouts=true matches-full-layout=true-b: roots=[layout PARTIAL BlockContainer<DIV>.child] full-layouts=true matches-full-layout=true-c: roots=[layout PARTIAL BlockContainer<DIV>.child] full-layouts=true matches-full-layout=true+a: roots=[layout PARTIAL BlockContainer<DIV>.child] full-layouts=true matches-full-layout=false+b: roots=[layout PARTIAL BlockContainer<DIV>.child] full-layouts=true matches-full-layout=false+c: roots=[layout PARTIAL BlockContainer<DIV>.child] full-layouts=true matches-full-layout=falsed: roots=[layout PARTIAL BlockContainer<DIV>.child] full-layouts=true matches-full-layout=truediff --git a/Tests/LibWeb/Text/expected/css/grid-orthogonal-subgrid.txt b/Tests/LibWeb/Text/expected/css/grid-orthogonal-subgrid.txtindex ae19930e033..58c64b4654f 100644--- a/Tests/LibWeb/Text/expected/css/grid-orthogonal-subgrid.txt+++ b/Tests/LibWeb/Text/expected/css/grid-orthogonal-subgrid.txt@@ -1,4 +1,4 @@-a1: x=0 y=0 width=100 height=30-a2: x=0 y=30 width=100 height=70-b1: x=0 y=100 width=30 height=0+a1: x=50 y=0 width=50 height=30+a2: x=0 y=0 width=50 height=70+b1: x=70 y=100 width=30 height=0b2: x=30 y=100 width=70 height=0diff --git a/Tests/LibWeb/Text/expected/intrinsic-inline-content-sizing.txt b/Tests/LibWeb/Text/expected/intrinsic-inline-content-sizing.txtindex 9f0b0b2bac7..194a11b6d1f 100644--- a/Tests/LibWeb/Text/expected/intrinsic-inline-content-sizing.txt+++ b/Tests/LibWeb/Text/expected/intrinsic-inline-content-sizing.txt@@ -26,8 +26,8 @@ saturated advances: 80x20, 80x20, 80x20, 80x20floats: 200x20, 50x80, 200x20, 120x40float clearance: 90x40, 50x60, 90x40, 90x40absolute: 100x20, 50x40, 100x20, 100x20-vertical: 100x80, 50x80, 100x80, 100x80-orthogonal atomic: 80x60, 50x80, 80x60, 80x60+vertical: 40x100, 40x100, 40x100, 40x100+orthogonal atomic: 120x67, 60x87, 120x67, 120x67replaced: 90x27, 50x40, 90x27, 90x27aspect ratio: 130x40, 80x60, 130x40, 120x60percentage aspect ratio: 100x50, 50x50, 100x50, 120x100diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/safe-align-self-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/safe-align-self-vrl.txtindex 94a03d555dc..20b703124f8 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/safe-align-self-vrl.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/safe-align-self-vrl.txt@@ -4,27 +4,27 @@ Found 24 tests12 Pass12 Fail-Fail .item 1-Fail .item 2-Fail .item 3-Fail .item 4-Fail .item 5-Fail .item 6-Pass .item 7-Pass .item 8-Pass .item 9-Pass .item 10-Pass .item 11-Pass .item 12-Fail .item 13-Fail .item 14-Fail .item 15-Fail .item 16-Fail .item 17-Fail .item 18-Pass .item 19-Pass .item 20-Pass .item 21-Pass .item 22-Pass .item 23-Pass .item 24\ No newline at end of file+Pass .item 1+Pass .item 2+Pass .item 3+Pass .item 4+Pass .item 5+Pass .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Pass .item 13+Pass .item 14+Pass .item 15+Pass .item 16+Pass .item 17+Pass .item 18+Fail .item 19+Fail .item 20+Fail .item 21+Fail .item 22+Fail .item 23+Fail .item 24\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/stretch-intrinsic-size-vrl-htb.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/stretch-intrinsic-size-vrl-htb.txtindex 44081383fd0..ad05f0fa994 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/stretch-intrinsic-size-vrl-htb.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/stretch-intrinsic-size-vrl-htb.txt@@ -9,8 +9,8 @@ Fail .item 2Fail .item 3Pass .item 4Fail .item 5-Fail .item 6-Pass .item 7+Pass .item 6+Fail .item 7Fail .item 8Pass .item 9Fail .item 10diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/stretch-intrinsic-size-vrl-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/stretch-intrinsic-size-vrl-vrl.txtindex 44081383fd0..ad05f0fa994 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/stretch-intrinsic-size-vrl-vrl.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/stretch-intrinsic-size-vrl-vrl.txt@@ -9,8 +9,8 @@ Fail .item 2Fail .item 3Pass .item 4Fail .item 5-Fail .item 6-Pass .item 7+Pass .item 6+Fail .item 7Fail .item 8Pass .item 9Fail .item 10diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-anchor-position/anchor-center-htb-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-anchor-position/anchor-center-htb-vrl.txtindex ed6716497ee..dff61fa0d3b 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-anchor-position/anchor-center-htb-vrl.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-anchor-position/anchor-center-htb-vrl.txt@@ -2,15 +2,15 @@ Harness status: OKFound 10 tests-3 Pass-7 Fail-Fail .target 1+8 Pass+2 Fail+Pass .target 1Fail .target 2-Fail .target 3-Fail .target 4-Fail .target 5+Pass .target 3+Pass .target 4+Pass .target 5Fail .target 6-Fail .target 7+Pass .target 7Pass .target 8Pass .target 9Pass .target 10\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-anchor-position/anchor-center-vrl-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-anchor-position/anchor-center-vrl-vrl.txtindex ed6716497ee..dff61fa0d3b 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-anchor-position/anchor-center-vrl-vrl.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-anchor-position/anchor-center-vrl-vrl.txt@@ -2,15 +2,15 @@ Harness status: OKFound 10 tests-3 Pass-7 Fail-Fail .target 1+8 Pass+2 Fail+Pass .target 1Fail .target 2-Fail .target 3-Fail .target 4-Fail .target 5+Pass .target 3+Pass .target 4+Pass .target 5Fail .target 6-Fail .target 7+Pass .target 7Pass .target 8Pass .target 9Pass .target 10\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-anchor-position/anchor-position-004.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-anchor-position/anchor-position-004.txtindex 34a3d1c466e..c4573ed5982 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-anchor-position/anchor-position-004.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-anchor-position/anchor-position-004.txt@@ -2,8 +2,7 @@ Harness status: OKFound 32 tests-24 Pass-8 Fail+32 PassPass .target 1Pass .target 2Pass .target 3@@ -28,11 +27,11 @@ Pass .target 21Pass .target 22Pass .target 23Pass .target 24-Fail .target 25-Fail .target 26-Fail .target 27-Fail .target 28-Fail .target 29-Fail .target 30-Fail .target 31-Fail .target 32\ No newline at end of file+Pass .target 25+Pass .target 26+Pass .target 27+Pass .target 28+Pass .target 29+Pass .target 30+Pass .target 31+Pass .target 32\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-anchor-position/anchor-position-writing-modes-001.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-anchor-position/anchor-position-writing-modes-001.txtindex a06edc816dc..772e545e0b3 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-anchor-position/anchor-position-writing-modes-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-anchor-position/anchor-position-writing-modes-001.txt@@ -2,8 +2,7 @@ Harness status: OKFound 1296 tests-432 Pass-864 Fail+1296 PassPass 0: htb-ltr/htb-ltr/htb-ltr/htb-ltrPass 1: htb-ltr/htb-ltr/htb-ltr/htb-rtlPass 2: htb-ltr/htb-ltr/htb-ltr/vlr-ltr@@ -436,867 +435,867 @@ Pass 428: htb-rtl/vrl-rtl/vrl-rtl/vlr-ltrPass 429: htb-rtl/vrl-rtl/vrl-rtl/vlr-rtlPass 430: htb-rtl/vrl-rtl/vrl-rtl/vrl-ltrPass 431: htb-rtl/vrl-rtl/vrl-rtl/vrl-rtl-Fail 432: vlr-ltr/htb-ltr/htb-ltr/htb-ltr-Fail 433: vlr-ltr/htb-ltr/htb-ltr/htb-rtl-Fail 434: vlr-ltr/htb-ltr/htb-ltr/vlr-ltr-Fail 435: vlr-ltr/htb-ltr/htb-ltr/vlr-rtl-Fail 436: vlr-ltr/htb-ltr/htb-ltr/vrl-ltr-Fail 437: vlr-ltr/htb-ltr/htb-ltr/vrl-rtl-Fail 438: vlr-ltr/htb-ltr/htb-rtl/htb-ltr-Fail 439: vlr-ltr/htb-ltr/htb-rtl/htb-rtl-Fail 440: vlr-ltr/htb-ltr/htb-rtl/vlr-ltr-Fail 441: vlr-ltr/htb-ltr/htb-rtl/vlr-rtl-Fail 442: vlr-ltr/htb-ltr/htb-rtl/vrl-ltr-Fail 443: vlr-ltr/htb-ltr/htb-rtl/vrl-rtl-Fail 444: vlr-ltr/htb-ltr/vlr-ltr/htb-ltr-Fail 445: vlr-ltr/htb-ltr/vlr-ltr/htb-rtl-Fail 446: vlr-ltr/htb-ltr/vlr-ltr/vlr-ltr-Fail 447: vlr-ltr/htb-ltr/vlr-ltr/vlr-rtl-Fail 448: vlr-ltr/htb-ltr/vlr-ltr/vrl-ltr-Fail 449: vlr-ltr/htb-ltr/vlr-ltr/vrl-rtl-Fail 450: vlr-ltr/htb-ltr/vlr-rtl/htb-ltr-Fail 451: vlr-ltr/htb-ltr/vlr-rtl/htb-rtl-Fail 452: vlr-ltr/htb-ltr/vlr-rtl/vlr-ltr-Fail 453: vlr-ltr/htb-ltr/vlr-rtl/vlr-rtl-Fail 454: vlr-ltr/htb-ltr/vlr-rtl/vrl-ltr-Fail 455: vlr-ltr/htb-ltr/vlr-rtl/vrl-rtl-Fail 456: vlr-ltr/htb-ltr/vrl-ltr/htb-ltr-Fail 457: vlr-ltr/htb-ltr/vrl-ltr/htb-rtl-Fail 458: vlr-ltr/htb-ltr/vrl-ltr/vlr-ltr-Fail 459: vlr-ltr/htb-ltr/vrl-ltr/vlr-rtl-Fail 460: vlr-ltr/htb-ltr/vrl-ltr/vrl-ltr-Fail 461: vlr-ltr/htb-ltr/vrl-ltr/vrl-rtl-Fail 462: vlr-ltr/htb-ltr/vrl-rtl/htb-ltr-Fail 463: vlr-ltr/htb-ltr/vrl-rtl/htb-rtl-Fail 464: vlr-ltr/htb-ltr/vrl-rtl/vlr-ltr-Fail 465: vlr-ltr/htb-ltr/vrl-rtl/vlr-rtl-Fail 466: vlr-ltr/htb-ltr/vrl-rtl/vrl-ltr-Fail 467: vlr-ltr/htb-ltr/vrl-rtl/vrl-rtl-Fail 468: vlr-ltr/htb-rtl/htb-ltr/htb-ltr-Fail 469: vlr-ltr/htb-rtl/htb-ltr/htb-rtl-Fail 470: vlr-ltr/htb-rtl/htb-ltr/vlr-ltr-Fail 471: vlr-ltr/htb-rtl/htb-ltr/vlr-rtl-Fail 472: vlr-ltr/htb-rtl/htb-ltr/vrl-ltr-Fail 473: vlr-ltr/htb-rtl/htb-ltr/vrl-rtl-Fail 474: vlr-ltr/htb-rtl/htb-rtl/htb-ltr-Fail 475: vlr-ltr/htb-rtl/htb-rtl/htb-rtl-Fail 476: vlr-ltr/htb-rtl/htb-rtl/vlr-ltr-Fail 477: vlr-ltr/htb-rtl/htb-rtl/vlr-rtl-Fail 478: vlr-ltr/htb-rtl/htb-rtl/vrl-ltr-Fail 479: vlr-ltr/htb-rtl/htb-rtl/vrl-rtl-Fail 480: vlr-ltr/htb-rtl/vlr-ltr/htb-ltr-Fail 481: vlr-ltr/htb-rtl/vlr-ltr/htb-rtl-Fail 482: vlr-ltr/htb-rtl/vlr-ltr/vlr-ltr-Fail 483: vlr-ltr/htb-rtl/vlr-ltr/vlr-rtl-Fail 484: vlr-ltr/htb-rtl/vlr-ltr/vrl-ltr-Fail 485: vlr-ltr/htb-rtl/vlr-ltr/vrl-rtl-Fail 486: vlr-ltr/htb-rtl/vlr-rtl/htb-ltr-Fail 487: vlr-ltr/htb-rtl/vlr-rtl/htb-rtl-Fail 488: vlr-ltr/htb-rtl/vlr-rtl/vlr-ltr-Fail 489: vlr-ltr/htb-rtl/vlr-rtl/vlr-rtl-Fail 490: vlr-ltr/htb-rtl/vlr-rtl/vrl-ltr-Fail 491: vlr-ltr/htb-rtl/vlr-rtl/vrl-rtl-Fail 492: vlr-ltr/htb-rtl/vrl-ltr/htb-ltr-Fail 493: vlr-ltr/htb-rtl/vrl-ltr/htb-rtl-Fail 494: vlr-ltr/htb-rtl/vrl-ltr/vlr-ltr-Fail 495: vlr-ltr/htb-rtl/vrl-ltr/vlr-rtl-Fail 496: vlr-ltr/htb-rtl/vrl-ltr/vrl-ltr-Fail 497: vlr-ltr/htb-rtl/vrl-ltr/vrl-rtl-Fail 498: vlr-ltr/htb-rtl/vrl-rtl/htb-ltr-Fail 499: vlr-ltr/htb-rtl/vrl-rtl/htb-rtl-Fail 500: vlr-ltr/htb-rtl/vrl-rtl/vlr-ltr-Fail 501: vlr-ltr/htb-rtl/vrl-rtl/vlr-rtl-Fail 502: vlr-ltr/htb-rtl/vrl-rtl/vrl-ltr-Fail 503: vlr-ltr/htb-rtl/vrl-rtl/vrl-rtl-Fail 504: vlr-ltr/vlr-ltr/htb-ltr/htb-ltr-Fail 505: vlr-ltr/vlr-ltr/htb-ltr/htb-rtl-Fail 506: vlr-ltr/vlr-ltr/htb-ltr/vlr-ltr-Fail 507: vlr-ltr/vlr-ltr/htb-ltr/vlr-rtl-Fail 508: vlr-ltr/vlr-ltr/htb-ltr/vrl-ltr-Fail 509: vlr-ltr/vlr-ltr/htb-ltr/vrl-rtl-Fail 510: vlr-ltr/vlr-ltr/htb-rtl/htb-ltr-Fail 511: vlr-ltr/vlr-ltr/htb-rtl/htb-rtl-Fail 512: vlr-ltr/vlr-ltr/htb-rtl/vlr-ltr-Fail 513: vlr-ltr/vlr-ltr/htb-rtl/vlr-rtl-Fail 514: vlr-ltr/vlr-ltr/htb-rtl/vrl-ltr-Fail 515: vlr-ltr/vlr-ltr/htb-rtl/vrl-rtl-Fail 516: vlr-ltr/vlr-ltr/vlr-ltr/htb-ltr-Fail 517: vlr-ltr/vlr-ltr/vlr-ltr/htb-rtl-Fail 518: vlr-ltr/vlr-ltr/vlr-ltr/vlr-ltr-Fail 519: vlr-ltr/vlr-ltr/vlr-ltr/vlr-rtl-Fail 520: vlr-ltr/vlr-ltr/vlr-ltr/vrl-ltr-Fail 521: vlr-ltr/vlr-ltr/vlr-ltr/vrl-rtl-Fail 522: vlr-ltr/vlr-ltr/vlr-rtl/htb-ltr-Fail 523: vlr-ltr/vlr-ltr/vlr-rtl/htb-rtl-Fail 524: vlr-ltr/vlr-ltr/vlr-rtl/vlr-ltr-Fail 525: vlr-ltr/vlr-ltr/vlr-rtl/vlr-rtl-Fail 526: vlr-ltr/vlr-ltr/vlr-rtl/vrl-ltr-Fail 527: vlr-ltr/vlr-ltr/vlr-rtl/vrl-rtl-Fail 528: vlr-ltr/vlr-ltr/vrl-ltr/htb-ltr-Fail 529: vlr-ltr/vlr-ltr/vrl-ltr/htb-rtl-Fail 530: vlr-ltr/vlr-ltr/vrl-ltr/vlr-ltr-Fail 531: vlr-ltr/vlr-ltr/vrl-ltr/vlr-rtl-Fail 532: vlr-ltr/vlr-ltr/vrl-ltr/vrl-ltr-Fail 533: vlr-ltr/vlr-ltr/vrl-ltr/vrl-rtl-Fail 534: vlr-ltr/vlr-ltr/vrl-rtl/htb-ltr-Fail 535: vlr-ltr/vlr-ltr/vrl-rtl/htb-rtl-Fail 536: vlr-ltr/vlr-ltr/vrl-rtl/vlr-ltr-Fail 537: vlr-ltr/vlr-ltr/vrl-rtl/vlr-rtl-Fail 538: vlr-ltr/vlr-ltr/vrl-rtl/vrl-ltr-Fail 539: vlr-ltr/vlr-ltr/vrl-rtl/vrl-rtl-Fail 540: vlr-ltr/vlr-rtl/htb-ltr/htb-ltr-Fail 541: vlr-ltr/vlr-rtl/htb-ltr/htb-rtl-Fail 542: vlr-ltr/vlr-rtl/htb-ltr/vlr-ltr-Fail 543: vlr-ltr/vlr-rtl/htb-ltr/vlr-rtl-Fail 544: vlr-ltr/vlr-rtl/htb-ltr/vrl-ltr-Fail 545: vlr-ltr/vlr-rtl/htb-ltr/vrl-rtl-Fail 546: vlr-ltr/vlr-rtl/htb-rtl/htb-ltr-Fail 547: vlr-ltr/vlr-rtl/htb-rtl/htb-rtl-Fail 548: vlr-ltr/vlr-rtl/htb-rtl/vlr-ltr-Fail 549: vlr-ltr/vlr-rtl/htb-rtl/vlr-rtl-Fail 550: vlr-ltr/vlr-rtl/htb-rtl/vrl-ltr-Fail 551: vlr-ltr/vlr-rtl/htb-rtl/vrl-rtl-Fail 552: vlr-ltr/vlr-rtl/vlr-ltr/htb-ltr-Fail 553: vlr-ltr/vlr-rtl/vlr-ltr/htb-rtl-Fail 554: vlr-ltr/vlr-rtl/vlr-ltr/vlr-ltr-Fail 555: vlr-ltr/vlr-rtl/vlr-ltr/vlr-rtl-Fail 556: vlr-ltr/vlr-rtl/vlr-ltr/vrl-ltr-Fail 557: vlr-ltr/vlr-rtl/vlr-ltr/vrl-rtl-Fail 558: vlr-ltr/vlr-rtl/vlr-rtl/htb-ltr-Fail 559: vlr-ltr/vlr-rtl/vlr-rtl/htb-rtl-Fail 560: vlr-ltr/vlr-rtl/vlr-rtl/vlr-ltr-Fail 561: vlr-ltr/vlr-rtl/vlr-rtl/vlr-rtl-Fail 562: vlr-ltr/vlr-rtl/vlr-rtl/vrl-ltr-Fail 563: vlr-ltr/vlr-rtl/vlr-rtl/vrl-rtl-Fail 564: vlr-ltr/vlr-rtl/vrl-ltr/htb-ltr-Fail 565: vlr-ltr/vlr-rtl/vrl-ltr/htb-rtl-Fail 566: vlr-ltr/vlr-rtl/vrl-ltr/vlr-ltr-Fail 567: vlr-ltr/vlr-rtl/vrl-ltr/vlr-rtl-Fail 568: vlr-ltr/vlr-rtl/vrl-ltr/vrl-ltr-Fail 569: vlr-ltr/vlr-rtl/vrl-ltr/vrl-rtl-Fail 570: vlr-ltr/vlr-rtl/vrl-rtl/htb-ltr-Fail 571: vlr-ltr/vlr-rtl/vrl-rtl/htb-rtl-Fail 572: vlr-ltr/vlr-rtl/vrl-rtl/vlr-ltr-Fail 573: vlr-ltr/vlr-rtl/vrl-rtl/vlr-rtl-Fail 574: vlr-ltr/vlr-rtl/vrl-rtl/vrl-ltr-Fail 575: vlr-ltr/vlr-rtl/vrl-rtl/vrl-rtl-Fail 576: vlr-ltr/vrl-ltr/htb-ltr/htb-ltr-Fail 577: vlr-ltr/vrl-ltr/htb-ltr/htb-rtl-Fail 578: vlr-ltr/vrl-ltr/htb-ltr/vlr-ltr-Fail 579: vlr-ltr/vrl-ltr/htb-ltr/vlr-rtl-Fail 580: vlr-ltr/vrl-ltr/htb-ltr/vrl-ltr-Fail 581: vlr-ltr/vrl-ltr/htb-ltr/vrl-rtl-Fail 582: vlr-ltr/vrl-ltr/htb-rtl/htb-ltr-Fail 583: vlr-ltr/vrl-ltr/htb-rtl/htb-rtl-Fail 584: vlr-ltr/vrl-ltr/htb-rtl/vlr-ltr-Fail 585: vlr-ltr/vrl-ltr/htb-rtl/vlr-rtl-Fail 586: vlr-ltr/vrl-ltr/htb-rtl/vrl-ltr-Fail 587: vlr-ltr/vrl-ltr/htb-rtl/vrl-rtl-Fail 588: vlr-ltr/vrl-ltr/vlr-ltr/htb-ltr-Fail 589: vlr-ltr/vrl-ltr/vlr-ltr/htb-rtl-Fail 590: vlr-ltr/vrl-ltr/vlr-ltr/vlr-ltr-Fail 591: vlr-ltr/vrl-ltr/vlr-ltr/vlr-rtl-Fail 592: vlr-ltr/vrl-ltr/vlr-ltr/vrl-ltr-Fail 593: vlr-ltr/vrl-ltr/vlr-ltr/vrl-rtl-Fail 594: vlr-ltr/vrl-ltr/vlr-rtl/htb-ltr-Fail 595: vlr-ltr/vrl-ltr/vlr-rtl/htb-rtl-Fail 596: vlr-ltr/vrl-ltr/vlr-rtl/vlr-ltr-Fail 597: vlr-ltr/vrl-ltr/vlr-rtl/vlr-rtl-Fail 598: vlr-ltr/vrl-ltr/vlr-rtl/vrl-ltr-Fail 599: vlr-ltr/vrl-ltr/vlr-rtl/vrl-rtl-Fail 600: vlr-ltr/vrl-ltr/vrl-ltr/htb-ltr-Fail 601: vlr-ltr/vrl-ltr/vrl-ltr/htb-rtl-Fail 602: vlr-ltr/vrl-ltr/vrl-ltr/vlr-ltr-Fail 603: vlr-ltr/vrl-ltr/vrl-ltr/vlr-rtl-Fail 604: vlr-ltr/vrl-ltr/vrl-ltr/vrl-ltr-Fail 605: vlr-ltr/vrl-ltr/vrl-ltr/vrl-rtl-Fail 606: vlr-ltr/vrl-ltr/vrl-rtl/htb-ltr-Fail 607: vlr-ltr/vrl-ltr/vrl-rtl/htb-rtl-Fail 608: vlr-ltr/vrl-ltr/vrl-rtl/vlr-ltr-Fail 609: vlr-ltr/vrl-ltr/vrl-rtl/vlr-rtl-Fail 610: vlr-ltr/vrl-ltr/vrl-rtl/vrl-ltr-Fail 611: vlr-ltr/vrl-ltr/vrl-rtl/vrl-rtl-Fail 612: vlr-ltr/vrl-rtl/htb-ltr/htb-ltr-Fail 613: vlr-ltr/vrl-rtl/htb-ltr/htb-rtl-Fail 614: vlr-ltr/vrl-rtl/htb-ltr/vlr-ltr-Fail 615: vlr-ltr/vrl-rtl/htb-ltr/vlr-rtl-Fail 616: vlr-ltr/vrl-rtl/htb-ltr/vrl-ltr-Fail 617: vlr-ltr/vrl-rtl/htb-ltr/vrl-rtl-Fail 618: vlr-ltr/vrl-rtl/htb-rtl/htb-ltr-Fail 619: vlr-ltr/vrl-rtl/htb-rtl/htb-rtl-Fail 620: vlr-ltr/vrl-rtl/htb-rtl/vlr-ltr-Fail 621: vlr-ltr/vrl-rtl/htb-rtl/vlr-rtl-Fail 622: vlr-ltr/vrl-rtl/htb-rtl/vrl-ltr-Fail 623: vlr-ltr/vrl-rtl/htb-rtl/vrl-rtl-Fail 624: vlr-ltr/vrl-rtl/vlr-ltr/htb-ltr-Fail 625: vlr-ltr/vrl-rtl/vlr-ltr/htb-rtl-Fail 626: vlr-ltr/vrl-rtl/vlr-ltr/vlr-ltr-Fail 627: vlr-ltr/vrl-rtl/vlr-ltr/vlr-rtl-Fail 628: vlr-ltr/vrl-rtl/vlr-ltr/vrl-ltr-Fail 629: vlr-ltr/vrl-rtl/vlr-ltr/vrl-rtl-Fail 630: vlr-ltr/vrl-rtl/vlr-rtl/htb-ltr-Fail 631: vlr-ltr/vrl-rtl/vlr-rtl/htb-rtl-Fail 632: vlr-ltr/vrl-rtl/vlr-rtl/vlr-ltr-Fail 633: vlr-ltr/vrl-rtl/vlr-rtl/vlr-rtl-Fail 634: vlr-ltr/vrl-rtl/vlr-rtl/vrl-ltr-Fail 635: vlr-ltr/vrl-rtl/vlr-rtl/vrl-rtl-Fail 636: vlr-ltr/vrl-rtl/vrl-ltr/htb-ltr-Fail 637: vlr-ltr/vrl-rtl/vrl-ltr/htb-rtl-Fail 638: vlr-ltr/vrl-rtl/vrl-ltr/vlr-ltr-Fail 639: vlr-ltr/vrl-rtl/vrl-ltr/vlr-rtl-Fail 640: vlr-ltr/vrl-rtl/vrl-ltr/vrl-ltr-Fail 641: vlr-ltr/vrl-rtl/vrl-ltr/vrl-rtl-Fail 642: vlr-ltr/vrl-rtl/vrl-rtl/htb-ltr-Fail 643: vlr-ltr/vrl-rtl/vrl-rtl/htb-rtl-Fail 644: vlr-ltr/vrl-rtl/vrl-rtl/vlr-ltr-Fail 645: vlr-ltr/vrl-rtl/vrl-rtl/vlr-rtl-Fail 646: vlr-ltr/vrl-rtl/vrl-rtl/vrl-ltr-Fail 647: vlr-ltr/vrl-rtl/vrl-rtl/vrl-rtl-Fail 648: vlr-rtl/htb-ltr/htb-ltr/htb-ltr-Fail 649: vlr-rtl/htb-ltr/htb-ltr/htb-rtl-Fail 650: vlr-rtl/htb-ltr/htb-ltr/vlr-ltr-Fail 651: vlr-rtl/htb-ltr/htb-ltr/vlr-rtl-Fail 652: vlr-rtl/htb-ltr/htb-ltr/vrl-ltr-Fail 653: vlr-rtl/htb-ltr/htb-ltr/vrl-rtl-Fail 654: vlr-rtl/htb-ltr/htb-rtl/htb-ltr-Fail 655: vlr-rtl/htb-ltr/htb-rtl/htb-rtl-Fail 656: vlr-rtl/htb-ltr/htb-rtl/vlr-ltr-Fail 657: vlr-rtl/htb-ltr/htb-rtl/vlr-rtl-Fail 658: vlr-rtl/htb-ltr/htb-rtl/vrl-ltr-Fail 659: vlr-rtl/htb-ltr/htb-rtl/vrl-rtl-Fail 660: vlr-rtl/htb-ltr/vlr-ltr/htb-ltr-Fail 661: vlr-rtl/htb-ltr/vlr-ltr/htb-rtl-Fail 662: vlr-rtl/htb-ltr/vlr-ltr/vlr-ltr-Fail 663: vlr-rtl/htb-ltr/vlr-ltr/vlr-rtl-Fail 664: vlr-rtl/htb-ltr/vlr-ltr/vrl-ltr-Fail 665: vlr-rtl/htb-ltr/vlr-ltr/vrl-rtl-Fail 666: vlr-rtl/htb-ltr/vlr-rtl/htb-ltr-Fail 667: vlr-rtl/htb-ltr/vlr-rtl/htb-rtl-Fail 668: vlr-rtl/htb-ltr/vlr-rtl/vlr-ltr-Fail 669: vlr-rtl/htb-ltr/vlr-rtl/vlr-rtl-Fail 670: vlr-rtl/htb-ltr/vlr-rtl/vrl-ltr-Fail 671: vlr-rtl/htb-ltr/vlr-rtl/vrl-rtl-Fail 672: vlr-rtl/htb-ltr/vrl-ltr/htb-ltr-Fail 673: vlr-rtl/htb-ltr/vrl-ltr/htb-rtl-Fail 674: vlr-rtl/htb-ltr/vrl-ltr/vlr-ltr-Fail 675: vlr-rtl/htb-ltr/vrl-ltr/vlr-rtl-Fail 676: vlr-rtl/htb-ltr/vrl-ltr/vrl-ltr-Fail 677: vlr-rtl/htb-ltr/vrl-ltr/vrl-rtl-Fail 678: vlr-rtl/htb-ltr/vrl-rtl/htb-ltr-Fail 679: vlr-rtl/htb-ltr/vrl-rtl/htb-rtl-Fail 680: vlr-rtl/htb-ltr/vrl-rtl/vlr-ltr-Fail 681: vlr-rtl/htb-ltr/vrl-rtl/vlr-rtl-Fail 682: vlr-rtl/htb-ltr/vrl-rtl/vrl-ltr-Fail 683: vlr-rtl/htb-ltr/vrl-rtl/vrl-rtl-Fail 684: vlr-rtl/htb-rtl/htb-ltr/htb-ltr-Fail 685: vlr-rtl/htb-rtl/htb-ltr/htb-rtl-Fail 686: vlr-rtl/htb-rtl/htb-ltr/vlr-ltr-Fail 687: vlr-rtl/htb-rtl/htb-ltr/vlr-rtl-Fail 688: vlr-rtl/htb-rtl/htb-ltr/vrl-ltr-Fail 689: vlr-rtl/htb-rtl/htb-ltr/vrl-rtl-Fail 690: vlr-rtl/htb-rtl/htb-rtl/htb-ltr-Fail 691: vlr-rtl/htb-rtl/htb-rtl/htb-rtl-Fail 692: vlr-rtl/htb-rtl/htb-rtl/vlr-ltr-Fail 693: vlr-rtl/htb-rtl/htb-rtl/vlr-rtl-Fail 694: vlr-rtl/htb-rtl/htb-rtl/vrl-ltr-Fail 695: vlr-rtl/htb-rtl/htb-rtl/vrl-rtl-Fail 696: vlr-rtl/htb-rtl/vlr-ltr/htb-ltr-Fail 697: vlr-rtl/htb-rtl/vlr-ltr/htb-rtl-Fail 698: vlr-rtl/htb-rtl/vlr-ltr/vlr-ltr-Fail 699: vlr-rtl/htb-rtl/vlr-ltr/vlr-rtl-Fail 700: vlr-rtl/htb-rtl/vlr-ltr/vrl-ltr-Fail 701: vlr-rtl/htb-rtl/vlr-ltr/vrl-rtl-Fail 702: vlr-rtl/htb-rtl/vlr-rtl/htb-ltr-Fail 703: vlr-rtl/htb-rtl/vlr-rtl/htb-rtl-Fail 704: vlr-rtl/htb-rtl/vlr-rtl/vlr-ltr-Fail 705: vlr-rtl/htb-rtl/vlr-rtl/vlr-rtl-Fail 706: vlr-rtl/htb-rtl/vlr-rtl/vrl-ltr-Fail 707: vlr-rtl/htb-rtl/vlr-rtl/vrl-rtl-Fail 708: vlr-rtl/htb-rtl/vrl-ltr/htb-ltr-Fail 709: vlr-rtl/htb-rtl/vrl-ltr/htb-rtl-Fail 710: vlr-rtl/htb-rtl/vrl-ltr/vlr-ltr-Fail 711: vlr-rtl/htb-rtl/vrl-ltr/vlr-rtl-Fail 712: vlr-rtl/htb-rtl/vrl-ltr/vrl-ltr-Fail 713: vlr-rtl/htb-rtl/vrl-ltr/vrl-rtl-Fail 714: vlr-rtl/htb-rtl/vrl-rtl/htb-ltr-Fail 715: vlr-rtl/htb-rtl/vrl-rtl/htb-rtl-Fail 716: vlr-rtl/htb-rtl/vrl-rtl/vlr-ltr-Fail 717: vlr-rtl/htb-rtl/vrl-rtl/vlr-rtl-Fail 718: vlr-rtl/htb-rtl/vrl-rtl/vrl-ltr-Fail 719: vlr-rtl/htb-rtl/vrl-rtl/vrl-rtl-Fail 720: vlr-rtl/vlr-ltr/htb-ltr/htb-ltr-Fail 721: vlr-rtl/vlr-ltr/htb-ltr/htb-rtl-Fail 722: vlr-rtl/vlr-ltr/htb-ltr/vlr-ltr-Fail 723: vlr-rtl/vlr-ltr/htb-ltr/vlr-rtl-Fail 724: vlr-rtl/vlr-ltr/htb-ltr/vrl-ltr-Fail 725: vlr-rtl/vlr-ltr/htb-ltr/vrl-rtl-Fail 726: vlr-rtl/vlr-ltr/htb-rtl/htb-ltr-Fail 727: vlr-rtl/vlr-ltr/htb-rtl/htb-rtl-Fail 728: vlr-rtl/vlr-ltr/htb-rtl/vlr-ltr-Fail 729: vlr-rtl/vlr-ltr/htb-rtl/vlr-rtl-Fail 730: vlr-rtl/vlr-ltr/htb-rtl/vrl-ltr-Fail 731: vlr-rtl/vlr-ltr/htb-rtl/vrl-rtl-Fail 732: vlr-rtl/vlr-ltr/vlr-ltr/htb-ltr-Fail 733: vlr-rtl/vlr-ltr/vlr-ltr/htb-rtl-Fail 734: vlr-rtl/vlr-ltr/vlr-ltr/vlr-ltr-Fail 735: vlr-rtl/vlr-ltr/vlr-ltr/vlr-rtl-Fail 736: vlr-rtl/vlr-ltr/vlr-ltr/vrl-ltr-Fail 737: vlr-rtl/vlr-ltr/vlr-ltr/vrl-rtl-Fail 738: vlr-rtl/vlr-ltr/vlr-rtl/htb-ltr-Fail 739: vlr-rtl/vlr-ltr/vlr-rtl/htb-rtl-Fail 740: vlr-rtl/vlr-ltr/vlr-rtl/vlr-ltr-Fail 741: vlr-rtl/vlr-ltr/vlr-rtl/vlr-rtl-Fail 742: vlr-rtl/vlr-ltr/vlr-rtl/vrl-ltr-Fail 743: vlr-rtl/vlr-ltr/vlr-rtl/vrl-rtl-Fail 744: vlr-rtl/vlr-ltr/vrl-ltr/htb-ltr-Fail 745: vlr-rtl/vlr-ltr/vrl-ltr/htb-rtl-Fail 746: vlr-rtl/vlr-ltr/vrl-ltr/vlr-ltr-Fail 747: vlr-rtl/vlr-ltr/vrl-ltr/vlr-rtl-Fail 748: vlr-rtl/vlr-ltr/vrl-ltr/vrl-ltr-Fail 749: vlr-rtl/vlr-ltr/vrl-ltr/vrl-rtl-Fail 750: vlr-rtl/vlr-ltr/vrl-rtl/htb-ltr-Fail 751: vlr-rtl/vlr-ltr/vrl-rtl/htb-rtl-Fail 752: vlr-rtl/vlr-ltr/vrl-rtl/vlr-ltr-Fail 753: vlr-rtl/vlr-ltr/vrl-rtl/vlr-rtl-Fail 754: vlr-rtl/vlr-ltr/vrl-rtl/vrl-ltr-Fail 755: vlr-rtl/vlr-ltr/vrl-rtl/vrl-rtl-Fail 756: vlr-rtl/vlr-rtl/htb-ltr/htb-ltr-Fail 757: vlr-rtl/vlr-rtl/htb-ltr/htb-rtl-Fail 758: vlr-rtl/vlr-rtl/htb-ltr/vlr-ltr-Fail 759: vlr-rtl/vlr-rtl/htb-ltr/vlr-rtl-Fail 760: vlr-rtl/vlr-rtl/htb-ltr/vrl-ltr-Fail 761: vlr-rtl/vlr-rtl/htb-ltr/vrl-rtl-Fail 762: vlr-rtl/vlr-rtl/htb-rtl/htb-ltr-Fail 763: vlr-rtl/vlr-rtl/htb-rtl/htb-rtl-Fail 764: vlr-rtl/vlr-rtl/htb-rtl/vlr-ltr-Fail 765: vlr-rtl/vlr-rtl/htb-rtl/vlr-rtl-Fail 766: vlr-rtl/vlr-rtl/htb-rtl/vrl-ltr-Fail 767: vlr-rtl/vlr-rtl/htb-rtl/vrl-rtl-Fail 768: vlr-rtl/vlr-rtl/vlr-ltr/htb-ltr-Fail 769: vlr-rtl/vlr-rtl/vlr-ltr/htb-rtl-Fail 770: vlr-rtl/vlr-rtl/vlr-ltr/vlr-ltr-Fail 771: vlr-rtl/vlr-rtl/vlr-ltr/vlr-rtl-Fail 772: vlr-rtl/vlr-rtl/vlr-ltr/vrl-ltr-Fail 773: vlr-rtl/vlr-rtl/vlr-ltr/vrl-rtl-Fail 774: vlr-rtl/vlr-rtl/vlr-rtl/htb-ltr-Fail 775: vlr-rtl/vlr-rtl/vlr-rtl/htb-rtl-Fail 776: vlr-rtl/vlr-rtl/vlr-rtl/vlr-ltr-Fail 777: vlr-rtl/vlr-rtl/vlr-rtl/vlr-rtl-Fail 778: vlr-rtl/vlr-rtl/vlr-rtl/vrl-ltr-Fail 779: vlr-rtl/vlr-rtl/vlr-rtl/vrl-rtl-Fail 780: vlr-rtl/vlr-rtl/vrl-ltr/htb-ltr-Fail 781: vlr-rtl/vlr-rtl/vrl-ltr/htb-rtl-Fail 782: vlr-rtl/vlr-rtl/vrl-ltr/vlr-ltr-Fail 783: vlr-rtl/vlr-rtl/vrl-ltr/vlr-rtl-Fail 784: vlr-rtl/vlr-rtl/vrl-ltr/vrl-ltr-Fail 785: vlr-rtl/vlr-rtl/vrl-ltr/vrl-rtl-Fail 786: vlr-rtl/vlr-rtl/vrl-rtl/htb-ltr-Fail 787: vlr-rtl/vlr-rtl/vrl-rtl/htb-rtl-Fail 788: vlr-rtl/vlr-rtl/vrl-rtl/vlr-ltr-Fail 789: vlr-rtl/vlr-rtl/vrl-rtl/vlr-rtl-Fail 790: vlr-rtl/vlr-rtl/vrl-rtl/vrl-ltr-Fail 791: vlr-rtl/vlr-rtl/vrl-rtl/vrl-rtl-Fail 792: vlr-rtl/vrl-ltr/htb-ltr/htb-ltr-Fail 793: vlr-rtl/vrl-ltr/htb-ltr/htb-rtl-Fail 794: vlr-rtl/vrl-ltr/htb-ltr/vlr-ltr-Fail 795: vlr-rtl/vrl-ltr/htb-ltr/vlr-rtl-Fail 796: vlr-rtl/vrl-ltr/htb-ltr/vrl-ltr-Fail 797: vlr-rtl/vrl-ltr/htb-ltr/vrl-rtl-Fail 798: vlr-rtl/vrl-ltr/htb-rtl/htb-ltr-Fail 799: vlr-rtl/vrl-ltr/htb-rtl/htb-rtl-Fail 800: vlr-rtl/vrl-ltr/htb-rtl/vlr-ltr-Fail 801: vlr-rtl/vrl-ltr/htb-rtl/vlr-rtl-Fail 802: vlr-rtl/vrl-ltr/htb-rtl/vrl-ltr-Fail 803: vlr-rtl/vrl-ltr/htb-rtl/vrl-rtl-Fail 804: vlr-rtl/vrl-ltr/vlr-ltr/htb-ltr-Fail 805: vlr-rtl/vrl-ltr/vlr-ltr/htb-rtl-Fail 806: vlr-rtl/vrl-ltr/vlr-ltr/vlr-ltr-Fail 807: vlr-rtl/vrl-ltr/vlr-ltr/vlr-rtl-Fail 808: vlr-rtl/vrl-ltr/vlr-ltr/vrl-ltr-Fail 809: vlr-rtl/vrl-ltr/vlr-ltr/vrl-rtl-Fail 810: vlr-rtl/vrl-ltr/vlr-rtl/htb-ltr-Fail 811: vlr-rtl/vrl-ltr/vlr-rtl/htb-rtl-Fail 812: vlr-rtl/vrl-ltr/vlr-rtl/vlr-ltr-Fail 813: vlr-rtl/vrl-ltr/vlr-rtl/vlr-rtl-Fail 814: vlr-rtl/vrl-ltr/vlr-rtl/vrl-ltr-Fail 815: vlr-rtl/vrl-ltr/vlr-rtl/vrl-rtl-Fail 816: vlr-rtl/vrl-ltr/vrl-ltr/htb-ltr-Fail 817: vlr-rtl/vrl-ltr/vrl-ltr/htb-rtl-Fail 818: vlr-rtl/vrl-ltr/vrl-ltr/vlr-ltr-Fail 819: vlr-rtl/vrl-ltr/vrl-ltr/vlr-rtl-Fail 820: vlr-rtl/vrl-ltr/vrl-ltr/vrl-ltr-Fail 821: vlr-rtl/vrl-ltr/vrl-ltr/vrl-rtl-Fail 822: vlr-rtl/vrl-ltr/vrl-rtl/htb-ltr-Fail 823: vlr-rtl/vrl-ltr/vrl-rtl/htb-rtl-Fail 824: vlr-rtl/vrl-ltr/vrl-rtl/vlr-ltr-Fail 825: vlr-rtl/vrl-ltr/vrl-rtl/vlr-rtl-Fail 826: vlr-rtl/vrl-ltr/vrl-rtl/vrl-ltr-Fail 827: vlr-rtl/vrl-ltr/vrl-rtl/vrl-rtl-Fail 828: vlr-rtl/vrl-rtl/htb-ltr/htb-ltr-Fail 829: vlr-rtl/vrl-rtl/htb-ltr/htb-rtl-Fail 830: vlr-rtl/vrl-rtl/htb-ltr/vlr-ltr-Fail 831: vlr-rtl/vrl-rtl/htb-ltr/vlr-rtl-Fail 832: vlr-rtl/vrl-rtl/htb-ltr/vrl-ltr-Fail 833: vlr-rtl/vrl-rtl/htb-ltr/vrl-rtl-Fail 834: vlr-rtl/vrl-rtl/htb-rtl/htb-ltr-Fail 835: vlr-rtl/vrl-rtl/htb-rtl/htb-rtl-Fail 836: vlr-rtl/vrl-rtl/htb-rtl/vlr-ltr-Fail 837: vlr-rtl/vrl-rtl/htb-rtl/vlr-rtl-Fail 838: vlr-rtl/vrl-rtl/htb-rtl/vrl-ltr-Fail 839: vlr-rtl/vrl-rtl/htb-rtl/vrl-rtl-Fail 840: vlr-rtl/vrl-rtl/vlr-ltr/htb-ltr-Fail 841: vlr-rtl/vrl-rtl/vlr-ltr/htb-rtl-Fail 842: vlr-rtl/vrl-rtl/vlr-ltr/vlr-ltr-Fail 843: vlr-rtl/vrl-rtl/vlr-ltr/vlr-rtl-Fail 844: vlr-rtl/vrl-rtl/vlr-ltr/vrl-ltr-Fail 845: vlr-rtl/vrl-rtl/vlr-ltr/vrl-rtl-Fail 846: vlr-rtl/vrl-rtl/vlr-rtl/htb-ltr-Fail 847: vlr-rtl/vrl-rtl/vlr-rtl/htb-rtl-Fail 848: vlr-rtl/vrl-rtl/vlr-rtl/vlr-ltr-Fail 849: vlr-rtl/vrl-rtl/vlr-rtl/vlr-rtl-Fail 850: vlr-rtl/vrl-rtl/vlr-rtl/vrl-ltr-Fail 851: vlr-rtl/vrl-rtl/vlr-rtl/vrl-rtl-Fail 852: vlr-rtl/vrl-rtl/vrl-ltr/htb-ltr-Fail 853: vlr-rtl/vrl-rtl/vrl-ltr/htb-rtl-Fail 854: vlr-rtl/vrl-rtl/vrl-ltr/vlr-ltr-Fail 855: vlr-rtl/vrl-rtl/vrl-ltr/vlr-rtl-Fail 856: vlr-rtl/vrl-rtl/vrl-ltr/vrl-ltr-Fail 857: vlr-rtl/vrl-rtl/vrl-ltr/vrl-rtl-Fail 858: vlr-rtl/vrl-rtl/vrl-rtl/htb-ltr-Fail 859: vlr-rtl/vrl-rtl/vrl-rtl/htb-rtl-Fail 860: vlr-rtl/vrl-rtl/vrl-rtl/vlr-ltr-Fail 861: vlr-rtl/vrl-rtl/vrl-rtl/vlr-rtl-Fail 862: vlr-rtl/vrl-rtl/vrl-rtl/vrl-ltr-Fail 863: vlr-rtl/vrl-rtl/vrl-rtl/vrl-rtl-Fail 864: vrl-ltr/htb-ltr/htb-ltr/htb-ltr-Fail 865: vrl-ltr/htb-ltr/htb-ltr/htb-rtl-Fail 866: vrl-ltr/htb-ltr/htb-ltr/vlr-ltr-Fail 867: vrl-ltr/htb-ltr/htb-ltr/vlr-rtl-Fail 868: vrl-ltr/htb-ltr/htb-ltr/vrl-ltr-Fail 869: vrl-ltr/htb-ltr/htb-ltr/vrl-rtl-Fail 870: vrl-ltr/htb-ltr/htb-rtl/htb-ltr-Fail 871: vrl-ltr/htb-ltr/htb-rtl/htb-rtl-Fail 872: vrl-ltr/htb-ltr/htb-rtl/vlr-ltr-Fail 873: vrl-ltr/htb-ltr/htb-rtl/vlr-rtl-Fail 874: vrl-ltr/htb-ltr/htb-rtl/vrl-ltr-Fail 875: vrl-ltr/htb-ltr/htb-rtl/vrl-rtl-Fail 876: vrl-ltr/htb-ltr/vlr-ltr/htb-ltr-Fail 877: vrl-ltr/htb-ltr/vlr-ltr/htb-rtl-Fail 878: vrl-ltr/htb-ltr/vlr-ltr/vlr-ltr-Fail 879: vrl-ltr/htb-ltr/vlr-ltr/vlr-rtl-Fail 880: vrl-ltr/htb-ltr/vlr-ltr/vrl-ltr-Fail 881: vrl-ltr/htb-ltr/vlr-ltr/vrl-rtl-Fail 882: vrl-ltr/htb-ltr/vlr-rtl/htb-ltr-Fail 883: vrl-ltr/htb-ltr/vlr-rtl/htb-rtl-Fail 884: vrl-ltr/htb-ltr/vlr-rtl/vlr-ltr-Fail 885: vrl-ltr/htb-ltr/vlr-rtl/vlr-rtl-Fail 886: vrl-ltr/htb-ltr/vlr-rtl/vrl-ltr-Fail 887: vrl-ltr/htb-ltr/vlr-rtl/vrl-rtl-Fail 888: vrl-ltr/htb-ltr/vrl-ltr/htb-ltr-Fail 889: vrl-ltr/htb-ltr/vrl-ltr/htb-rtl-Fail 890: vrl-ltr/htb-ltr/vrl-ltr/vlr-ltr-Fail 891: vrl-ltr/htb-ltr/vrl-ltr/vlr-rtl-Fail 892: vrl-ltr/htb-ltr/vrl-ltr/vrl-ltr-Fail 893: vrl-ltr/htb-ltr/vrl-ltr/vrl-rtl-Fail 894: vrl-ltr/htb-ltr/vrl-rtl/htb-ltr-Fail 895: vrl-ltr/htb-ltr/vrl-rtl/htb-rtl-Fail 896: vrl-ltr/htb-ltr/vrl-rtl/vlr-ltr-Fail 897: vrl-ltr/htb-ltr/vrl-rtl/vlr-rtl-Fail 898: vrl-ltr/htb-ltr/vrl-rtl/vrl-ltr-Fail 899: vrl-ltr/htb-ltr/vrl-rtl/vrl-rtl-Fail 900: vrl-ltr/htb-rtl/htb-ltr/htb-ltr-Fail 901: vrl-ltr/htb-rtl/htb-ltr/htb-rtl-Fail 902: vrl-ltr/htb-rtl/htb-ltr/vlr-ltr-Fail 903: vrl-ltr/htb-rtl/htb-ltr/vlr-rtl-Fail 904: vrl-ltr/htb-rtl/htb-ltr/vrl-ltr-Fail 905: vrl-ltr/htb-rtl/htb-ltr/vrl-rtl-Fail 906: vrl-ltr/htb-rtl/htb-rtl/htb-ltr-Fail 907: vrl-ltr/htb-rtl/htb-rtl/htb-rtl-Fail 908: vrl-ltr/htb-rtl/htb-rtl/vlr-ltr-Fail 909: vrl-ltr/htb-rtl/htb-rtl/vlr-rtl-Fail 910: vrl-ltr/htb-rtl/htb-rtl/vrl-ltr-Fail 911: vrl-ltr/htb-rtl/htb-rtl/vrl-rtl-Fail 912: vrl-ltr/htb-rtl/vlr-ltr/htb-ltr-Fail 913: vrl-ltr/htb-rtl/vlr-ltr/htb-rtl-Fail 914: vrl-ltr/htb-rtl/vlr-ltr/vlr-ltr-Fail 915: vrl-ltr/htb-rtl/vlr-ltr/vlr-rtl-Fail 916: vrl-ltr/htb-rtl/vlr-ltr/vrl-ltr-Fail 917: vrl-ltr/htb-rtl/vlr-ltr/vrl-rtl-Fail 918: vrl-ltr/htb-rtl/vlr-rtl/htb-ltr-Fail 919: vrl-ltr/htb-rtl/vlr-rtl/htb-rtl-Fail 920: vrl-ltr/htb-rtl/vlr-rtl/vlr-ltr-Fail 921: vrl-ltr/htb-rtl/vlr-rtl/vlr-rtl-Fail 922: vrl-ltr/htb-rtl/vlr-rtl/vrl-ltr-Fail 923: vrl-ltr/htb-rtl/vlr-rtl/vrl-rtl-Fail 924: vrl-ltr/htb-rtl/vrl-ltr/htb-ltr-Fail 925: vrl-ltr/htb-rtl/vrl-ltr/htb-rtl-Fail 926: vrl-ltr/htb-rtl/vrl-ltr/vlr-ltr-Fail 927: vrl-ltr/htb-rtl/vrl-ltr/vlr-rtl-Fail 928: vrl-ltr/htb-rtl/vrl-ltr/vrl-ltr-Fail 929: vrl-ltr/htb-rtl/vrl-ltr/vrl-rtl-Fail 930: vrl-ltr/htb-rtl/vrl-rtl/htb-ltr-Fail 931: vrl-ltr/htb-rtl/vrl-rtl/htb-rtl-Fail 932: vrl-ltr/htb-rtl/vrl-rtl/vlr-ltr-Fail 933: vrl-ltr/htb-rtl/vrl-rtl/vlr-rtl-Fail 934: vrl-ltr/htb-rtl/vrl-rtl/vrl-ltr-Fail 935: vrl-ltr/htb-rtl/vrl-rtl/vrl-rtl-Fail 936: vrl-ltr/vlr-ltr/htb-ltr/htb-ltr-Fail 937: vrl-ltr/vlr-ltr/htb-ltr/htb-rtl-Fail 938: vrl-ltr/vlr-ltr/htb-ltr/vlr-ltr-Fail 939: vrl-ltr/vlr-ltr/htb-ltr/vlr-rtl-Fail 940: vrl-ltr/vlr-ltr/htb-ltr/vrl-ltr-Fail 941: vrl-ltr/vlr-ltr/htb-ltr/vrl-rtl-Fail 942: vrl-ltr/vlr-ltr/htb-rtl/htb-ltr-Fail 943: vrl-ltr/vlr-ltr/htb-rtl/htb-rtl-Fail 944: vrl-ltr/vlr-ltr/htb-rtl/vlr-ltr-Fail 945: vrl-ltr/vlr-ltr/htb-rtl/vlr-rtl-Fail 946: vrl-ltr/vlr-ltr/htb-rtl/vrl-ltr-Fail 947: vrl-ltr/vlr-ltr/htb-rtl/vrl-rtl-Fail 948: vrl-ltr/vlr-ltr/vlr-ltr/htb-ltr-Fail 949: vrl-ltr/vlr-ltr/vlr-ltr/htb-rtl-Fail 950: vrl-ltr/vlr-ltr/vlr-ltr/vlr-ltr-Fail 951: vrl-ltr/vlr-ltr/vlr-ltr/vlr-rtl-Fail 952: vrl-ltr/vlr-ltr/vlr-ltr/vrl-ltr-Fail 953: vrl-ltr/vlr-ltr/vlr-ltr/vrl-rtl-Fail 954: vrl-ltr/vlr-ltr/vlr-rtl/htb-ltr-Fail 955: vrl-ltr/vlr-ltr/vlr-rtl/htb-rtl-Fail 956: vrl-ltr/vlr-ltr/vlr-rtl/vlr-ltr-Fail 957: vrl-ltr/vlr-ltr/vlr-rtl/vlr-rtl-Fail 958: vrl-ltr/vlr-ltr/vlr-rtl/vrl-ltr-Fail 959: vrl-ltr/vlr-ltr/vlr-rtl/vrl-rtl-Fail 960: vrl-ltr/vlr-ltr/vrl-ltr/htb-ltr-Fail 961: vrl-ltr/vlr-ltr/vrl-ltr/htb-rtl-Fail 962: vrl-ltr/vlr-ltr/vrl-ltr/vlr-ltr-Fail 963: vrl-ltr/vlr-ltr/vrl-ltr/vlr-rtl-Fail 964: vrl-ltr/vlr-ltr/vrl-ltr/vrl-ltr-Fail 965: vrl-ltr/vlr-ltr/vrl-ltr/vrl-rtl-Fail 966: vrl-ltr/vlr-ltr/vrl-rtl/htb-ltr-Fail 967: vrl-ltr/vlr-ltr/vrl-rtl/htb-rtl-Fail 968: vrl-ltr/vlr-ltr/vrl-rtl/vlr-ltr-Fail 969: vrl-ltr/vlr-ltr/vrl-rtl/vlr-rtl-Fail 970: vrl-ltr/vlr-ltr/vrl-rtl/vrl-ltr-Fail 971: vrl-ltr/vlr-ltr/vrl-rtl/vrl-rtl-Fail 972: vrl-ltr/vlr-rtl/htb-ltr/htb-ltr-Fail 973: vrl-ltr/vlr-rtl/htb-ltr/htb-rtl-Fail 974: vrl-ltr/vlr-rtl/htb-ltr/vlr-ltr-Fail 975: vrl-ltr/vlr-rtl/htb-ltr/vlr-rtl-Fail 976: vrl-ltr/vlr-rtl/htb-ltr/vrl-ltr-Fail 977: vrl-ltr/vlr-rtl/htb-ltr/vrl-rtl-Fail 978: vrl-ltr/vlr-rtl/htb-rtl/htb-ltr-Fail 979: vrl-ltr/vlr-rtl/htb-rtl/htb-rtl-Fail 980: vrl-ltr/vlr-rtl/htb-rtl/vlr-ltr-Fail 981: vrl-ltr/vlr-rtl/htb-rtl/vlr-rtl-Fail 982: vrl-ltr/vlr-rtl/htb-rtl/vrl-ltr-Fail 983: vrl-ltr/vlr-rtl/htb-rtl/vrl-rtl-Fail 984: vrl-ltr/vlr-rtl/vlr-ltr/htb-ltr-Fail 985: vrl-ltr/vlr-rtl/vlr-ltr/htb-rtl-Fail 986: vrl-ltr/vlr-rtl/vlr-ltr/vlr-ltr-Fail 987: vrl-ltr/vlr-rtl/vlr-ltr/vlr-rtl-Fail 988: vrl-ltr/vlr-rtl/vlr-ltr/vrl-ltr-Fail 989: vrl-ltr/vlr-rtl/vlr-ltr/vrl-rtl-Fail 990: vrl-ltr/vlr-rtl/vlr-rtl/htb-ltr-Fail 991: vrl-ltr/vlr-rtl/vlr-rtl/htb-rtl-Fail 992: vrl-ltr/vlr-rtl/vlr-rtl/vlr-ltr-Fail 993: vrl-ltr/vlr-rtl/vlr-rtl/vlr-rtl-Fail 994: vrl-ltr/vlr-rtl/vlr-rtl/vrl-ltr-Fail 995: vrl-ltr/vlr-rtl/vlr-rtl/vrl-rtl-Fail 996: vrl-ltr/vlr-rtl/vrl-ltr/htb-ltr-Fail 997: vrl-ltr/vlr-rtl/vrl-ltr/htb-rtl-Fail 998: vrl-ltr/vlr-rtl/vrl-ltr/vlr-ltr-Fail 999: vrl-ltr/vlr-rtl/vrl-ltr/vlr-rtl-Fail 1000: vrl-ltr/vlr-rtl/vrl-ltr/vrl-ltr-Fail 1001: vrl-ltr/vlr-rtl/vrl-ltr/vrl-rtl-Fail 1002: vrl-ltr/vlr-rtl/vrl-rtl/htb-ltr-Fail 1003: vrl-ltr/vlr-rtl/vrl-rtl/htb-rtl-Fail 1004: vrl-ltr/vlr-rtl/vrl-rtl/vlr-ltr-Fail 1005: vrl-ltr/vlr-rtl/vrl-rtl/vlr-rtl-Fail 1006: vrl-ltr/vlr-rtl/vrl-rtl/vrl-ltr-Fail 1007: vrl-ltr/vlr-rtl/vrl-rtl/vrl-rtl-Fail 1008: vrl-ltr/vrl-ltr/htb-ltr/htb-ltr-Fail 1009: vrl-ltr/vrl-ltr/htb-ltr/htb-rtl-Fail 1010: vrl-ltr/vrl-ltr/htb-ltr/vlr-ltr-Fail 1011: vrl-ltr/vrl-ltr/htb-ltr/vlr-rtl-Fail 1012: vrl-ltr/vrl-ltr/htb-ltr/vrl-ltr-Fail 1013: vrl-ltr/vrl-ltr/htb-ltr/vrl-rtl-Fail 1014: vrl-ltr/vrl-ltr/htb-rtl/htb-ltr-Fail 1015: vrl-ltr/vrl-ltr/htb-rtl/htb-rtl-Fail 1016: vrl-ltr/vrl-ltr/htb-rtl/vlr-ltr-Fail 1017: vrl-ltr/vrl-ltr/htb-rtl/vlr-rtl-Fail 1018: vrl-ltr/vrl-ltr/htb-rtl/vrl-ltr-Fail 1019: vrl-ltr/vrl-ltr/htb-rtl/vrl-rtl-Fail 1020: vrl-ltr/vrl-ltr/vlr-ltr/htb-ltr-Fail 1021: vrl-ltr/vrl-ltr/vlr-ltr/htb-rtl-Fail 1022: vrl-ltr/vrl-ltr/vlr-ltr/vlr-ltr-Fail 1023: vrl-ltr/vrl-ltr/vlr-ltr/vlr-rtl-Fail 1024: vrl-ltr/vrl-ltr/vlr-ltr/vrl-ltr-Fail 1025: vrl-ltr/vrl-ltr/vlr-ltr/vrl-rtl-Fail 1026: vrl-ltr/vrl-ltr/vlr-rtl/htb-ltr-Fail 1027: vrl-ltr/vrl-ltr/vlr-rtl/htb-rtl-Fail 1028: vrl-ltr/vrl-ltr/vlr-rtl/vlr-ltr-Fail 1029: vrl-ltr/vrl-ltr/vlr-rtl/vlr-rtl-Fail 1030: vrl-ltr/vrl-ltr/vlr-rtl/vrl-ltr-Fail 1031: vrl-ltr/vrl-ltr/vlr-rtl/vrl-rtl-Fail 1032: vrl-ltr/vrl-ltr/vrl-ltr/htb-ltr-Fail 1033: vrl-ltr/vrl-ltr/vrl-ltr/htb-rtl-Fail 1034: vrl-ltr/vrl-ltr/vrl-ltr/vlr-ltr-Fail 1035: vrl-ltr/vrl-ltr/vrl-ltr/vlr-rtl-Fail 1036: vrl-ltr/vrl-ltr/vrl-ltr/vrl-ltr-Fail 1037: vrl-ltr/vrl-ltr/vrl-ltr/vrl-rtl-Fail 1038: vrl-ltr/vrl-ltr/vrl-rtl/htb-ltr-Fail 1039: vrl-ltr/vrl-ltr/vrl-rtl/htb-rtl-Fail 1040: vrl-ltr/vrl-ltr/vrl-rtl/vlr-ltr-Fail 1041: vrl-ltr/vrl-ltr/vrl-rtl/vlr-rtl-Fail 1042: vrl-ltr/vrl-ltr/vrl-rtl/vrl-ltr-Fail 1043: vrl-ltr/vrl-ltr/vrl-rtl/vrl-rtl-Fail 1044: vrl-ltr/vrl-rtl/htb-ltr/htb-ltr-Fail 1045: vrl-ltr/vrl-rtl/htb-ltr/htb-rtl-Fail 1046: vrl-ltr/vrl-rtl/htb-ltr/vlr-ltr-Fail 1047: vrl-ltr/vrl-rtl/htb-ltr/vlr-rtl-Fail 1048: vrl-ltr/vrl-rtl/htb-ltr/vrl-ltr-Fail 1049: vrl-ltr/vrl-rtl/htb-ltr/vrl-rtl-Fail 1050: vrl-ltr/vrl-rtl/htb-rtl/htb-ltr-Fail 1051: vrl-ltr/vrl-rtl/htb-rtl/htb-rtl-Fail 1052: vrl-ltr/vrl-rtl/htb-rtl/vlr-ltr-Fail 1053: vrl-ltr/vrl-rtl/htb-rtl/vlr-rtl-Fail 1054: vrl-ltr/vrl-rtl/htb-rtl/vrl-ltr-Fail 1055: vrl-ltr/vrl-rtl/htb-rtl/vrl-rtl-Fail 1056: vrl-ltr/vrl-rtl/vlr-ltr/htb-ltr-Fail 1057: vrl-ltr/vrl-rtl/vlr-ltr/htb-rtl-Fail 1058: vrl-ltr/vrl-rtl/vlr-ltr/vlr-ltr-Fail 1059: vrl-ltr/vrl-rtl/vlr-ltr/vlr-rtl-Fail 1060: vrl-ltr/vrl-rtl/vlr-ltr/vrl-ltr-Fail 1061: vrl-ltr/vrl-rtl/vlr-ltr/vrl-rtl-Fail 1062: vrl-ltr/vrl-rtl/vlr-rtl/htb-ltr-Fail 1063: vrl-ltr/vrl-rtl/vlr-rtl/htb-rtl-Fail 1064: vrl-ltr/vrl-rtl/vlr-rtl/vlr-ltr-Fail 1065: vrl-ltr/vrl-rtl/vlr-rtl/vlr-rtl-Fail 1066: vrl-ltr/vrl-rtl/vlr-rtl/vrl-ltr-Fail 1067: vrl-ltr/vrl-rtl/vlr-rtl/vrl-rtl-Fail 1068: vrl-ltr/vrl-rtl/vrl-ltr/htb-ltr-Fail 1069: vrl-ltr/vrl-rtl/vrl-ltr/htb-rtl-Fail 1070: vrl-ltr/vrl-rtl/vrl-ltr/vlr-ltr-Fail 1071: vrl-ltr/vrl-rtl/vrl-ltr/vlr-rtl-Fail 1072: vrl-ltr/vrl-rtl/vrl-ltr/vrl-ltr-Fail 1073: vrl-ltr/vrl-rtl/vrl-ltr/vrl-rtl-Fail 1074: vrl-ltr/vrl-rtl/vrl-rtl/htb-ltr-Fail 1075: vrl-ltr/vrl-rtl/vrl-rtl/htb-rtl-Fail 1076: vrl-ltr/vrl-rtl/vrl-rtl/vlr-ltr-Fail 1077: vrl-ltr/vrl-rtl/vrl-rtl/vlr-rtl-Fail 1078: vrl-ltr/vrl-rtl/vrl-rtl/vrl-ltr-Fail 1079: vrl-ltr/vrl-rtl/vrl-rtl/vrl-rtl-Fail 1080: vrl-rtl/htb-ltr/htb-ltr/htb-ltr-Fail 1081: vrl-rtl/htb-ltr/htb-ltr/htb-rtl-Fail 1082: vrl-rtl/htb-ltr/htb-ltr/vlr-ltr-Fail 1083: vrl-rtl/htb-ltr/htb-ltr/vlr-rtl-Fail 1084: vrl-rtl/htb-ltr/htb-ltr/vrl-ltr-Fail 1085: vrl-rtl/htb-ltr/htb-ltr/vrl-rtl-Fail 1086: vrl-rtl/htb-ltr/htb-rtl/htb-ltr-Fail 1087: vrl-rtl/htb-ltr/htb-rtl/htb-rtl-Fail 1088: vrl-rtl/htb-ltr/htb-rtl/vlr-ltr-Fail 1089: vrl-rtl/htb-ltr/htb-rtl/vlr-rtl-Fail 1090: vrl-rtl/htb-ltr/htb-rtl/vrl-ltr-Fail 1091: vrl-rtl/htb-ltr/htb-rtl/vrl-rtl-Fail 1092: vrl-rtl/htb-ltr/vlr-ltr/htb-ltr-Fail 1093: vrl-rtl/htb-ltr/vlr-ltr/htb-rtl-Fail 1094: vrl-rtl/htb-ltr/vlr-ltr/vlr-ltr-Fail 1095: vrl-rtl/htb-ltr/vlr-ltr/vlr-rtl-Fail 1096: vrl-rtl/htb-ltr/vlr-ltr/vrl-ltr-Fail 1097: vrl-rtl/htb-ltr/vlr-ltr/vrl-rtl-Fail 1098: vrl-rtl/htb-ltr/vlr-rtl/htb-ltr-Fail 1099: vrl-rtl/htb-ltr/vlr-rtl/htb-rtl-Fail 1100: vrl-rtl/htb-ltr/vlr-rtl/vlr-ltr-Fail 1101: vrl-rtl/htb-ltr/vlr-rtl/vlr-rtl-Fail 1102: vrl-rtl/htb-ltr/vlr-rtl/vrl-ltr-Fail 1103: vrl-rtl/htb-ltr/vlr-rtl/vrl-rtl-Fail 1104: vrl-rtl/htb-ltr/vrl-ltr/htb-ltr-Fail 1105: vrl-rtl/htb-ltr/vrl-ltr/htb-rtl-Fail 1106: vrl-rtl/htb-ltr/vrl-ltr/vlr-ltr-Fail 1107: vrl-rtl/htb-ltr/vrl-ltr/vlr-rtl-Fail 1108: vrl-rtl/htb-ltr/vrl-ltr/vrl-ltr-Fail 1109: vrl-rtl/htb-ltr/vrl-ltr/vrl-rtl-Fail 1110: vrl-rtl/htb-ltr/vrl-rtl/htb-ltr-Fail 1111: vrl-rtl/htb-ltr/vrl-rtl/htb-rtl-Fail 1112: vrl-rtl/htb-ltr/vrl-rtl/vlr-ltr-Fail 1113: vrl-rtl/htb-ltr/vrl-rtl/vlr-rtl-Fail 1114: vrl-rtl/htb-ltr/vrl-rtl/vrl-ltr-Fail 1115: vrl-rtl/htb-ltr/vrl-rtl/vrl-rtl-Fail 1116: vrl-rtl/htb-rtl/htb-ltr/htb-ltr-Fail 1117: vrl-rtl/htb-rtl/htb-ltr/htb-rtl-Fail 1118: vrl-rtl/htb-rtl/htb-ltr/vlr-ltr-Fail 1119: vrl-rtl/htb-rtl/htb-ltr/vlr-rtl-Fail 1120: vrl-rtl/htb-rtl/htb-ltr/vrl-ltr-Fail 1121: vrl-rtl/htb-rtl/htb-ltr/vrl-rtl-Fail 1122: vrl-rtl/htb-rtl/htb-rtl/htb-ltr-Fail 1123: vrl-rtl/htb-rtl/htb-rtl/htb-rtl-Fail 1124: vrl-rtl/htb-rtl/htb-rtl/vlr-ltr-Fail 1125: vrl-rtl/htb-rtl/htb-rtl/vlr-rtl-Fail 1126: vrl-rtl/htb-rtl/htb-rtl/vrl-ltr-Fail 1127: vrl-rtl/htb-rtl/htb-rtl/vrl-rtl-Fail 1128: vrl-rtl/htb-rtl/vlr-ltr/htb-ltr-Fail 1129: vrl-rtl/htb-rtl/vlr-ltr/htb-rtl-Fail 1130: vrl-rtl/htb-rtl/vlr-ltr/vlr-ltr-Fail 1131: vrl-rtl/htb-rtl/vlr-ltr/vlr-rtl-Fail 1132: vrl-rtl/htb-rtl/vlr-ltr/vrl-ltr-Fail 1133: vrl-rtl/htb-rtl/vlr-ltr/vrl-rtl-Fail 1134: vrl-rtl/htb-rtl/vlr-rtl/htb-ltr-Fail 1135: vrl-rtl/htb-rtl/vlr-rtl/htb-rtl-Fail 1136: vrl-rtl/htb-rtl/vlr-rtl/vlr-ltr-Fail 1137: vrl-rtl/htb-rtl/vlr-rtl/vlr-rtl-Fail 1138: vrl-rtl/htb-rtl/vlr-rtl/vrl-ltr-Fail 1139: vrl-rtl/htb-rtl/vlr-rtl/vrl-rtl-Fail 1140: vrl-rtl/htb-rtl/vrl-ltr/htb-ltr-Fail 1141: vrl-rtl/htb-rtl/vrl-ltr/htb-rtl-Fail 1142: vrl-rtl/htb-rtl/vrl-ltr/vlr-ltr-Fail 1143: vrl-rtl/htb-rtl/vrl-ltr/vlr-rtl-Fail 1144: vrl-rtl/htb-rtl/vrl-ltr/vrl-ltr-Fail 1145: vrl-rtl/htb-rtl/vrl-ltr/vrl-rtl-Fail 1146: vrl-rtl/htb-rtl/vrl-rtl/htb-ltr-Fail 1147: vrl-rtl/htb-rtl/vrl-rtl/htb-rtl-Fail 1148: vrl-rtl/htb-rtl/vrl-rtl/vlr-ltr-Fail 1149: vrl-rtl/htb-rtl/vrl-rtl/vlr-rtl-Fail 1150: vrl-rtl/htb-rtl/vrl-rtl/vrl-ltr-Fail 1151: vrl-rtl/htb-rtl/vrl-rtl/vrl-rtl-Fail 1152: vrl-rtl/vlr-ltr/htb-ltr/htb-ltr-Fail 1153: vrl-rtl/vlr-ltr/htb-ltr/htb-rtl-Fail 1154: vrl-rtl/vlr-ltr/htb-ltr/vlr-ltr-Fail 1155: vrl-rtl/vlr-ltr/htb-ltr/vlr-rtl-Fail 1156: vrl-rtl/vlr-ltr/htb-ltr/vrl-ltr-Fail 1157: vrl-rtl/vlr-ltr/htb-ltr/vrl-rtl-Fail 1158: vrl-rtl/vlr-ltr/htb-rtl/htb-ltr-Fail 1159: vrl-rtl/vlr-ltr/htb-rtl/htb-rtl-Fail 1160: vrl-rtl/vlr-ltr/htb-rtl/vlr-ltr-Fail 1161: vrl-rtl/vlr-ltr/htb-rtl/vlr-rtl-Fail 1162: vrl-rtl/vlr-ltr/htb-rtl/vrl-ltr-Fail 1163: vrl-rtl/vlr-ltr/htb-rtl/vrl-rtl-Fail 1164: vrl-rtl/vlr-ltr/vlr-ltr/htb-ltr-Fail 1165: vrl-rtl/vlr-ltr/vlr-ltr/htb-rtl-Fail 1166: vrl-rtl/vlr-ltr/vlr-ltr/vlr-ltr-Fail 1167: vrl-rtl/vlr-ltr/vlr-ltr/vlr-rtl-Fail 1168: vrl-rtl/vlr-ltr/vlr-ltr/vrl-ltr-Fail 1169: vrl-rtl/vlr-ltr/vlr-ltr/vrl-rtl-Fail 1170: vrl-rtl/vlr-ltr/vlr-rtl/htb-ltr-Fail 1171: vrl-rtl/vlr-ltr/vlr-rtl/htb-rtl-Fail 1172: vrl-rtl/vlr-ltr/vlr-rtl/vlr-ltr-Fail 1173: vrl-rtl/vlr-ltr/vlr-rtl/vlr-rtl-Fail 1174: vrl-rtl/vlr-ltr/vlr-rtl/vrl-ltr-Fail 1175: vrl-rtl/vlr-ltr/vlr-rtl/vrl-rtl-Fail 1176: vrl-rtl/vlr-ltr/vrl-ltr/htb-ltr-Fail 1177: vrl-rtl/vlr-ltr/vrl-ltr/htb-rtl-Fail 1178: vrl-rtl/vlr-ltr/vrl-ltr/vlr-ltr-Fail 1179: vrl-rtl/vlr-ltr/vrl-ltr/vlr-rtl-Fail 1180: vrl-rtl/vlr-ltr/vrl-ltr/vrl-ltr-Fail 1181: vrl-rtl/vlr-ltr/vrl-ltr/vrl-rtl-Fail 1182: vrl-rtl/vlr-ltr/vrl-rtl/htb-ltr-Fail 1183: vrl-rtl/vlr-ltr/vrl-rtl/htb-rtl-Fail 1184: vrl-rtl/vlr-ltr/vrl-rtl/vlr-ltr-Fail 1185: vrl-rtl/vlr-ltr/vrl-rtl/vlr-rtl-Fail 1186: vrl-rtl/vlr-ltr/vrl-rtl/vrl-ltr-Fail 1187: vrl-rtl/vlr-ltr/vrl-rtl/vrl-rtl-Fail 1188: vrl-rtl/vlr-rtl/htb-ltr/htb-ltr-Fail 1189: vrl-rtl/vlr-rtl/htb-ltr/htb-rtl-Fail 1190: vrl-rtl/vlr-rtl/htb-ltr/vlr-ltr-Fail 1191: vrl-rtl/vlr-rtl/htb-ltr/vlr-rtl-Fail 1192: vrl-rtl/vlr-rtl/htb-ltr/vrl-ltr-Fail 1193: vrl-rtl/vlr-rtl/htb-ltr/vrl-rtl-Fail 1194: vrl-rtl/vlr-rtl/htb-rtl/htb-ltr-Fail 1195: vrl-rtl/vlr-rtl/htb-rtl/htb-rtl-Fail 1196: vrl-rtl/vlr-rtl/htb-rtl/vlr-ltr-Fail 1197: vrl-rtl/vlr-rtl/htb-rtl/vlr-rtl-Fail 1198: vrl-rtl/vlr-rtl/htb-rtl/vrl-ltr-Fail 1199: vrl-rtl/vlr-rtl/htb-rtl/vrl-rtl-Fail 1200: vrl-rtl/vlr-rtl/vlr-ltr/htb-ltr-Fail 1201: vrl-rtl/vlr-rtl/vlr-ltr/htb-rtl-Fail 1202: vrl-rtl/vlr-rtl/vlr-ltr/vlr-ltr-Fail 1203: vrl-rtl/vlr-rtl/vlr-ltr/vlr-rtl-Fail 1204: vrl-rtl/vlr-rtl/vlr-ltr/vrl-ltr-Fail 1205: vrl-rtl/vlr-rtl/vlr-ltr/vrl-rtl-Fail 1206: vrl-rtl/vlr-rtl/vlr-rtl/htb-ltr-Fail 1207: vrl-rtl/vlr-rtl/vlr-rtl/htb-rtl-Fail 1208: vrl-rtl/vlr-rtl/vlr-rtl/vlr-ltr-Fail 1209: vrl-rtl/vlr-rtl/vlr-rtl/vlr-rtl-Fail 1210: vrl-rtl/vlr-rtl/vlr-rtl/vrl-ltr-Fail 1211: vrl-rtl/vlr-rtl/vlr-rtl/vrl-rtl-Fail 1212: vrl-rtl/vlr-rtl/vrl-ltr/htb-ltr-Fail 1213: vrl-rtl/vlr-rtl/vrl-ltr/htb-rtl-Fail 1214: vrl-rtl/vlr-rtl/vrl-ltr/vlr-ltr-Fail 1215: vrl-rtl/vlr-rtl/vrl-ltr/vlr-rtl-Fail 1216: vrl-rtl/vlr-rtl/vrl-ltr/vrl-ltr-Fail 1217: vrl-rtl/vlr-rtl/vrl-ltr/vrl-rtl-Fail 1218: vrl-rtl/vlr-rtl/vrl-rtl/htb-ltr-Fail 1219: vrl-rtl/vlr-rtl/vrl-rtl/htb-rtl-Fail 1220: vrl-rtl/vlr-rtl/vrl-rtl/vlr-ltr-Fail 1221: vrl-rtl/vlr-rtl/vrl-rtl/vlr-rtl-Fail 1222: vrl-rtl/vlr-rtl/vrl-rtl/vrl-ltr-Fail 1223: vrl-rtl/vlr-rtl/vrl-rtl/vrl-rtl-Fail 1224: vrl-rtl/vrl-ltr/htb-ltr/htb-ltr-Fail 1225: vrl-rtl/vrl-ltr/htb-ltr/htb-rtl-Fail 1226: vrl-rtl/vrl-ltr/htb-ltr/vlr-ltr-Fail 1227: vrl-rtl/vrl-ltr/htb-ltr/vlr-rtl-Fail 1228: vrl-rtl/vrl-ltr/htb-ltr/vrl-ltr-Fail 1229: vrl-rtl/vrl-ltr/htb-ltr/vrl-rtl-Fail 1230: vrl-rtl/vrl-ltr/htb-rtl/htb-ltr-Fail 1231: vrl-rtl/vrl-ltr/htb-rtl/htb-rtl-Fail 1232: vrl-rtl/vrl-ltr/htb-rtl/vlr-ltr-Fail 1233: vrl-rtl/vrl-ltr/htb-rtl/vlr-rtl-Fail 1234: vrl-rtl/vrl-ltr/htb-rtl/vrl-ltr-Fail 1235: vrl-rtl/vrl-ltr/htb-rtl/vrl-rtl-Fail 1236: vrl-rtl/vrl-ltr/vlr-ltr/htb-ltr-Fail 1237: vrl-rtl/vrl-ltr/vlr-ltr/htb-rtl-Fail 1238: vrl-rtl/vrl-ltr/vlr-ltr/vlr-ltr-Fail 1239: vrl-rtl/vrl-ltr/vlr-ltr/vlr-rtl-Fail 1240: vrl-rtl/vrl-ltr/vlr-ltr/vrl-ltr-Fail 1241: vrl-rtl/vrl-ltr/vlr-ltr/vrl-rtl-Fail 1242: vrl-rtl/vrl-ltr/vlr-rtl/htb-ltr-Fail 1243: vrl-rtl/vrl-ltr/vlr-rtl/htb-rtl-Fail 1244: vrl-rtl/vrl-ltr/vlr-rtl/vlr-ltr-Fail 1245: vrl-rtl/vrl-ltr/vlr-rtl/vlr-rtl-Fail 1246: vrl-rtl/vrl-ltr/vlr-rtl/vrl-ltr-Fail 1247: vrl-rtl/vrl-ltr/vlr-rtl/vrl-rtl-Fail 1248: vrl-rtl/vrl-ltr/vrl-ltr/htb-ltr-Fail 1249: vrl-rtl/vrl-ltr/vrl-ltr/htb-rtl-Fail 1250: vrl-rtl/vrl-ltr/vrl-ltr/vlr-ltr-Fail 1251: vrl-rtl/vrl-ltr/vrl-ltr/vlr-rtl-Fail 1252: vrl-rtl/vrl-ltr/vrl-ltr/vrl-ltr-Fail 1253: vrl-rtl/vrl-ltr/vrl-ltr/vrl-rtl-Fail 1254: vrl-rtl/vrl-ltr/vrl-rtl/htb-ltr-Fail 1255: vrl-rtl/vrl-ltr/vrl-rtl/htb-rtl-Fail 1256: vrl-rtl/vrl-ltr/vrl-rtl/vlr-ltr-Fail 1257: vrl-rtl/vrl-ltr/vrl-rtl/vlr-rtl-Fail 1258: vrl-rtl/vrl-ltr/vrl-rtl/vrl-ltr-Fail 1259: vrl-rtl/vrl-ltr/vrl-rtl/vrl-rtl-Fail 1260: vrl-rtl/vrl-rtl/htb-ltr/htb-ltr-Fail 1261: vrl-rtl/vrl-rtl/htb-ltr/htb-rtl-Fail 1262: vrl-rtl/vrl-rtl/htb-ltr/vlr-ltr-Fail 1263: vrl-rtl/vrl-rtl/htb-ltr/vlr-rtl-Fail 1264: vrl-rtl/vrl-rtl/htb-ltr/vrl-ltr-Fail 1265: vrl-rtl/vrl-rtl/htb-ltr/vrl-rtl-Fail 1266: vrl-rtl/vrl-rtl/htb-rtl/htb-ltr-Fail 1267: vrl-rtl/vrl-rtl/htb-rtl/htb-rtl-Fail 1268: vrl-rtl/vrl-rtl/htb-rtl/vlr-ltr-Fail 1269: vrl-rtl/vrl-rtl/htb-rtl/vlr-rtl-Fail 1270: vrl-rtl/vrl-rtl/htb-rtl/vrl-ltr-Fail 1271: vrl-rtl/vrl-rtl/htb-rtl/vrl-rtl-Fail 1272: vrl-rtl/vrl-rtl/vlr-ltr/htb-ltr-Fail 1273: vrl-rtl/vrl-rtl/vlr-ltr/htb-rtl-Fail 1274: vrl-rtl/vrl-rtl/vlr-ltr/vlr-ltr-Fail 1275: vrl-rtl/vrl-rtl/vlr-ltr/vlr-rtl-Fail 1276: vrl-rtl/vrl-rtl/vlr-ltr/vrl-ltr-Fail 1277: vrl-rtl/vrl-rtl/vlr-ltr/vrl-rtl-Fail 1278: vrl-rtl/vrl-rtl/vlr-rtl/htb-ltr-Fail 1279: vrl-rtl/vrl-rtl/vlr-rtl/htb-rtl-Fail 1280: vrl-rtl/vrl-rtl/vlr-rtl/vlr-ltr-Fail 1281: vrl-rtl/vrl-rtl/vlr-rtl/vlr-rtl-Fail 1282: vrl-rtl/vrl-rtl/vlr-rtl/vrl-ltr-Fail 1283: vrl-rtl/vrl-rtl/vlr-rtl/vrl-rtl-Fail 1284: vrl-rtl/vrl-rtl/vrl-ltr/htb-ltr-Fail 1285: vrl-rtl/vrl-rtl/vrl-ltr/htb-rtl-Fail 1286: vrl-rtl/vrl-rtl/vrl-ltr/vlr-ltr-Fail 1287: vrl-rtl/vrl-rtl/vrl-ltr/vlr-rtl-Fail 1288: vrl-rtl/vrl-rtl/vrl-ltr/vrl-ltr-Fail 1289: vrl-rtl/vrl-rtl/vrl-ltr/vrl-rtl-Fail 1290: vrl-rtl/vrl-rtl/vrl-rtl/htb-ltr-Fail 1291: vrl-rtl/vrl-rtl/vrl-rtl/htb-rtl-Fail 1292: vrl-rtl/vrl-rtl/vrl-rtl/vlr-ltr-Fail 1293: vrl-rtl/vrl-rtl/vrl-rtl/vlr-rtl-Fail 1294: vrl-rtl/vrl-rtl/vrl-rtl/vrl-ltr-Fail 1295: vrl-rtl/vrl-rtl/vrl-rtl/vrl-rtl\ No newline at end of file+Pass 432: vlr-ltr/htb-ltr/htb-ltr/htb-ltr+Pass 433: vlr-ltr/htb-ltr/htb-ltr/htb-rtl+Pass 434: vlr-ltr/htb-ltr/htb-ltr/vlr-ltr+Pass 435: vlr-ltr/htb-ltr/htb-ltr/vlr-rtl+Pass 436: vlr-ltr/htb-ltr/htb-ltr/vrl-ltr+Pass 437: vlr-ltr/htb-ltr/htb-ltr/vrl-rtl+Pass 438: vlr-ltr/htb-ltr/htb-rtl/htb-ltr+Pass 439: vlr-ltr/htb-ltr/htb-rtl/htb-rtl+Pass 440: vlr-ltr/htb-ltr/htb-rtl/vlr-ltr+Pass 441: vlr-ltr/htb-ltr/htb-rtl/vlr-rtl+Pass 442: vlr-ltr/htb-ltr/htb-rtl/vrl-ltr+Pass 443: vlr-ltr/htb-ltr/htb-rtl/vrl-rtl+Pass 444: vlr-ltr/htb-ltr/vlr-ltr/htb-ltr+Pass 445: vlr-ltr/htb-ltr/vlr-ltr/htb-rtl+Pass 446: vlr-ltr/htb-ltr/vlr-ltr/vlr-ltr+Pass 447: vlr-ltr/htb-ltr/vlr-ltr/vlr-rtl+Pass 448: vlr-ltr/htb-ltr/vlr-ltr/vrl-ltr+Pass 449: vlr-ltr/htb-ltr/vlr-ltr/vrl-rtl+Pass 450: vlr-ltr/htb-ltr/vlr-rtl/htb-ltr+Pass 451: vlr-ltr/htb-ltr/vlr-rtl/htb-rtl+Pass 452: vlr-ltr/htb-ltr/vlr-rtl/vlr-ltr+Pass 453: vlr-ltr/htb-ltr/vlr-rtl/vlr-rtl+Pass 454: vlr-ltr/htb-ltr/vlr-rtl/vrl-ltr+Pass 455: vlr-ltr/htb-ltr/vlr-rtl/vrl-rtl+Pass 456: vlr-ltr/htb-ltr/vrl-ltr/htb-ltr+Pass 457: vlr-ltr/htb-ltr/vrl-ltr/htb-rtl+Pass 458: vlr-ltr/htb-ltr/vrl-ltr/vlr-ltr+Pass 459: vlr-ltr/htb-ltr/vrl-ltr/vlr-rtl+Pass 460: vlr-ltr/htb-ltr/vrl-ltr/vrl-ltr+Pass 461: vlr-ltr/htb-ltr/vrl-ltr/vrl-rtl+Pass 462: vlr-ltr/htb-ltr/vrl-rtl/htb-ltr+Pass 463: vlr-ltr/htb-ltr/vrl-rtl/htb-rtl+Pass 464: vlr-ltr/htb-ltr/vrl-rtl/vlr-ltr+Pass 465: vlr-ltr/htb-ltr/vrl-rtl/vlr-rtl+Pass 466: vlr-ltr/htb-ltr/vrl-rtl/vrl-ltr+Pass 467: vlr-ltr/htb-ltr/vrl-rtl/vrl-rtl+Pass 468: vlr-ltr/htb-rtl/htb-ltr/htb-ltr+Pass 469: vlr-ltr/htb-rtl/htb-ltr/htb-rtl+Pass 470: vlr-ltr/htb-rtl/htb-ltr/vlr-ltr+Pass 471: vlr-ltr/htb-rtl/htb-ltr/vlr-rtl+Pass 472: vlr-ltr/htb-rtl/htb-ltr/vrl-ltr+Pass 473: vlr-ltr/htb-rtl/htb-ltr/vrl-rtl+Pass 474: vlr-ltr/htb-rtl/htb-rtl/htb-ltr+Pass 475: vlr-ltr/htb-rtl/htb-rtl/htb-rtl+Pass 476: vlr-ltr/htb-rtl/htb-rtl/vlr-ltr+Pass 477: vlr-ltr/htb-rtl/htb-rtl/vlr-rtl+Pass 478: vlr-ltr/htb-rtl/htb-rtl/vrl-ltr+Pass 479: vlr-ltr/htb-rtl/htb-rtl/vrl-rtl+Pass 480: vlr-ltr/htb-rtl/vlr-ltr/htb-ltr+Pass 481: vlr-ltr/htb-rtl/vlr-ltr/htb-rtl+Pass 482: vlr-ltr/htb-rtl/vlr-ltr/vlr-ltr+Pass 483: vlr-ltr/htb-rtl/vlr-ltr/vlr-rtl+Pass 484: vlr-ltr/htb-rtl/vlr-ltr/vrl-ltr+Pass 485: vlr-ltr/htb-rtl/vlr-ltr/vrl-rtl+Pass 486: vlr-ltr/htb-rtl/vlr-rtl/htb-ltr+Pass 487: vlr-ltr/htb-rtl/vlr-rtl/htb-rtl+Pass 488: vlr-ltr/htb-rtl/vlr-rtl/vlr-ltr+Pass 489: vlr-ltr/htb-rtl/vlr-rtl/vlr-rtl+Pass 490: vlr-ltr/htb-rtl/vlr-rtl/vrl-ltr+Pass 491: vlr-ltr/htb-rtl/vlr-rtl/vrl-rtl+Pass 492: vlr-ltr/htb-rtl/vrl-ltr/htb-ltr+Pass 493: vlr-ltr/htb-rtl/vrl-ltr/htb-rtl+Pass 494: vlr-ltr/htb-rtl/vrl-ltr/vlr-ltr+Pass 495: vlr-ltr/htb-rtl/vrl-ltr/vlr-rtl+Pass 496: vlr-ltr/htb-rtl/vrl-ltr/vrl-ltr+Pass 497: vlr-ltr/htb-rtl/vrl-ltr/vrl-rtl+Pass 498: vlr-ltr/htb-rtl/vrl-rtl/htb-ltr+Pass 499: vlr-ltr/htb-rtl/vrl-rtl/htb-rtl+Pass 500: vlr-ltr/htb-rtl/vrl-rtl/vlr-ltr+Pass 501: vlr-ltr/htb-rtl/vrl-rtl/vlr-rtl+Pass 502: vlr-ltr/htb-rtl/vrl-rtl/vrl-ltr+Pass 503: vlr-ltr/htb-rtl/vrl-rtl/vrl-rtl+Pass 504: vlr-ltr/vlr-ltr/htb-ltr/htb-ltr+Pass 505: vlr-ltr/vlr-ltr/htb-ltr/htb-rtl+Pass 506: vlr-ltr/vlr-ltr/htb-ltr/vlr-ltr+Pass 507: vlr-ltr/vlr-ltr/htb-ltr/vlr-rtl+Pass 508: vlr-ltr/vlr-ltr/htb-ltr/vrl-ltr+Pass 509: vlr-ltr/vlr-ltr/htb-ltr/vrl-rtl+Pass 510: vlr-ltr/vlr-ltr/htb-rtl/htb-ltr+Pass 511: vlr-ltr/vlr-ltr/htb-rtl/htb-rtl+Pass 512: vlr-ltr/vlr-ltr/htb-rtl/vlr-ltr+Pass 513: vlr-ltr/vlr-ltr/htb-rtl/vlr-rtl+Pass 514: vlr-ltr/vlr-ltr/htb-rtl/vrl-ltr+Pass 515: vlr-ltr/vlr-ltr/htb-rtl/vrl-rtl+Pass 516: vlr-ltr/vlr-ltr/vlr-ltr/htb-ltr+Pass 517: vlr-ltr/vlr-ltr/vlr-ltr/htb-rtl+Pass 518: vlr-ltr/vlr-ltr/vlr-ltr/vlr-ltr+Pass 519: vlr-ltr/vlr-ltr/vlr-ltr/vlr-rtl+Pass 520: vlr-ltr/vlr-ltr/vlr-ltr/vrl-ltr+Pass 521: vlr-ltr/vlr-ltr/vlr-ltr/vrl-rtl+Pass 522: vlr-ltr/vlr-ltr/vlr-rtl/htb-ltr+Pass 523: vlr-ltr/vlr-ltr/vlr-rtl/htb-rtl+Pass 524: vlr-ltr/vlr-ltr/vlr-rtl/vlr-ltr+Pass 525: vlr-ltr/vlr-ltr/vlr-rtl/vlr-rtl+Pass 526: vlr-ltr/vlr-ltr/vlr-rtl/vrl-ltr+Pass 527: vlr-ltr/vlr-ltr/vlr-rtl/vrl-rtl+Pass 528: vlr-ltr/vlr-ltr/vrl-ltr/htb-ltr+Pass 529: vlr-ltr/vlr-ltr/vrl-ltr/htb-rtl+Pass 530: vlr-ltr/vlr-ltr/vrl-ltr/vlr-ltr+Pass 531: vlr-ltr/vlr-ltr/vrl-ltr/vlr-rtl+Pass 532: vlr-ltr/vlr-ltr/vrl-ltr/vrl-ltr+Pass 533: vlr-ltr/vlr-ltr/vrl-ltr/vrl-rtl+Pass 534: vlr-ltr/vlr-ltr/vrl-rtl/htb-ltr+Pass 535: vlr-ltr/vlr-ltr/vrl-rtl/htb-rtl+Pass 536: vlr-ltr/vlr-ltr/vrl-rtl/vlr-ltr+Pass 537: vlr-ltr/vlr-ltr/vrl-rtl/vlr-rtl+Pass 538: vlr-ltr/vlr-ltr/vrl-rtl/vrl-ltr+Pass 539: vlr-ltr/vlr-ltr/vrl-rtl/vrl-rtl+Pass 540: vlr-ltr/vlr-rtl/htb-ltr/htb-ltr+Pass 541: vlr-ltr/vlr-rtl/htb-ltr/htb-rtl+Pass 542: vlr-ltr/vlr-rtl/htb-ltr/vlr-ltr+Pass 543: vlr-ltr/vlr-rtl/htb-ltr/vlr-rtl+Pass 544: vlr-ltr/vlr-rtl/htb-ltr/vrl-ltr+Pass 545: vlr-ltr/vlr-rtl/htb-ltr/vrl-rtl+Pass 546: vlr-ltr/vlr-rtl/htb-rtl/htb-ltr+Pass 547: vlr-ltr/vlr-rtl/htb-rtl/htb-rtl+Pass 548: vlr-ltr/vlr-rtl/htb-rtl/vlr-ltr+Pass 549: vlr-ltr/vlr-rtl/htb-rtl/vlr-rtl+Pass 550: vlr-ltr/vlr-rtl/htb-rtl/vrl-ltr+Pass 551: vlr-ltr/vlr-rtl/htb-rtl/vrl-rtl+Pass 552: vlr-ltr/vlr-rtl/vlr-ltr/htb-ltr+Pass 553: vlr-ltr/vlr-rtl/vlr-ltr/htb-rtl+Pass 554: vlr-ltr/vlr-rtl/vlr-ltr/vlr-ltr+Pass 555: vlr-ltr/vlr-rtl/vlr-ltr/vlr-rtl+Pass 556: vlr-ltr/vlr-rtl/vlr-ltr/vrl-ltr+Pass 557: vlr-ltr/vlr-rtl/vlr-ltr/vrl-rtl+Pass 558: vlr-ltr/vlr-rtl/vlr-rtl/htb-ltr+Pass 559: vlr-ltr/vlr-rtl/vlr-rtl/htb-rtl+Pass 560: vlr-ltr/vlr-rtl/vlr-rtl/vlr-ltr+Pass 561: vlr-ltr/vlr-rtl/vlr-rtl/vlr-rtl+Pass 562: vlr-ltr/vlr-rtl/vlr-rtl/vrl-ltr+Pass 563: vlr-ltr/vlr-rtl/vlr-rtl/vrl-rtl+Pass 564: vlr-ltr/vlr-rtl/vrl-ltr/htb-ltr+Pass 565: vlr-ltr/vlr-rtl/vrl-ltr/htb-rtl+Pass 566: vlr-ltr/vlr-rtl/vrl-ltr/vlr-ltr+Pass 567: vlr-ltr/vlr-rtl/vrl-ltr/vlr-rtl+Pass 568: vlr-ltr/vlr-rtl/vrl-ltr/vrl-ltr+Pass 569: vlr-ltr/vlr-rtl/vrl-ltr/vrl-rtl+Pass 570: vlr-ltr/vlr-rtl/vrl-rtl/htb-ltr+Pass 571: vlr-ltr/vlr-rtl/vrl-rtl/htb-rtl+Pass 572: vlr-ltr/vlr-rtl/vrl-rtl/vlr-ltr+Pass 573: vlr-ltr/vlr-rtl/vrl-rtl/vlr-rtl+Pass 574: vlr-ltr/vlr-rtl/vrl-rtl/vrl-ltr+Pass 575: vlr-ltr/vlr-rtl/vrl-rtl/vrl-rtl+Pass 576: vlr-ltr/vrl-ltr/htb-ltr/htb-ltr+Pass 577: vlr-ltr/vrl-ltr/htb-ltr/htb-rtl+Pass 578: vlr-ltr/vrl-ltr/htb-ltr/vlr-ltr+Pass 579: vlr-ltr/vrl-ltr/htb-ltr/vlr-rtl+Pass 580: vlr-ltr/vrl-ltr/htb-ltr/vrl-ltr+Pass 581: vlr-ltr/vrl-ltr/htb-ltr/vrl-rtl+Pass 582: vlr-ltr/vrl-ltr/htb-rtl/htb-ltr+Pass 583: vlr-ltr/vrl-ltr/htb-rtl/htb-rtl+Pass 584: vlr-ltr/vrl-ltr/htb-rtl/vlr-ltr+Pass 585: vlr-ltr/vrl-ltr/htb-rtl/vlr-rtl+Pass 586: vlr-ltr/vrl-ltr/htb-rtl/vrl-ltr+Pass 587: vlr-ltr/vrl-ltr/htb-rtl/vrl-rtl+Pass 588: vlr-ltr/vrl-ltr/vlr-ltr/htb-ltr+Pass 589: vlr-ltr/vrl-ltr/vlr-ltr/htb-rtl+Pass 590: vlr-ltr/vrl-ltr/vlr-ltr/vlr-ltr+Pass 591: vlr-ltr/vrl-ltr/vlr-ltr/vlr-rtl+Pass 592: vlr-ltr/vrl-ltr/vlr-ltr/vrl-ltr+Pass 593: vlr-ltr/vrl-ltr/vlr-ltr/vrl-rtl+Pass 594: vlr-ltr/vrl-ltr/vlr-rtl/htb-ltr+Pass 595: vlr-ltr/vrl-ltr/vlr-rtl/htb-rtl+Pass 596: vlr-ltr/vrl-ltr/vlr-rtl/vlr-ltr+Pass 597: vlr-ltr/vrl-ltr/vlr-rtl/vlr-rtl+Pass 598: vlr-ltr/vrl-ltr/vlr-rtl/vrl-ltr+Pass 599: vlr-ltr/vrl-ltr/vlr-rtl/vrl-rtl+Pass 600: vlr-ltr/vrl-ltr/vrl-ltr/htb-ltr+Pass 601: vlr-ltr/vrl-ltr/vrl-ltr/htb-rtl+Pass 602: vlr-ltr/vrl-ltr/vrl-ltr/vlr-ltr+Pass 603: vlr-ltr/vrl-ltr/vrl-ltr/vlr-rtl+Pass 604: vlr-ltr/vrl-ltr/vrl-ltr/vrl-ltr+Pass 605: vlr-ltr/vrl-ltr/vrl-ltr/vrl-rtl+Pass 606: vlr-ltr/vrl-ltr/vrl-rtl/htb-ltr+Pass 607: vlr-ltr/vrl-ltr/vrl-rtl/htb-rtl+Pass 608: vlr-ltr/vrl-ltr/vrl-rtl/vlr-ltr+Pass 609: vlr-ltr/vrl-ltr/vrl-rtl/vlr-rtl+Pass 610: vlr-ltr/vrl-ltr/vrl-rtl/vrl-ltr+Pass 611: vlr-ltr/vrl-ltr/vrl-rtl/vrl-rtl+Pass 612: vlr-ltr/vrl-rtl/htb-ltr/htb-ltr+Pass 613: vlr-ltr/vrl-rtl/htb-ltr/htb-rtl+Pass 614: vlr-ltr/vrl-rtl/htb-ltr/vlr-ltr+Pass 615: vlr-ltr/vrl-rtl/htb-ltr/vlr-rtl+Pass 616: vlr-ltr/vrl-rtl/htb-ltr/vrl-ltr+Pass 617: vlr-ltr/vrl-rtl/htb-ltr/vrl-rtl+Pass 618: vlr-ltr/vrl-rtl/htb-rtl/htb-ltr+Pass 619: vlr-ltr/vrl-rtl/htb-rtl/htb-rtl+Pass 620: vlr-ltr/vrl-rtl/htb-rtl/vlr-ltr+Pass 621: vlr-ltr/vrl-rtl/htb-rtl/vlr-rtl+Pass 622: vlr-ltr/vrl-rtl/htb-rtl/vrl-ltr+Pass 623: vlr-ltr/vrl-rtl/htb-rtl/vrl-rtl+Pass 624: vlr-ltr/vrl-rtl/vlr-ltr/htb-ltr+Pass 625: vlr-ltr/vrl-rtl/vlr-ltr/htb-rtl+Pass 626: vlr-ltr/vrl-rtl/vlr-ltr/vlr-ltr+Pass 627: vlr-ltr/vrl-rtl/vlr-ltr/vlr-rtl+Pass 628: vlr-ltr/vrl-rtl/vlr-ltr/vrl-ltr+Pass 629: vlr-ltr/vrl-rtl/vlr-ltr/vrl-rtl+Pass 630: vlr-ltr/vrl-rtl/vlr-rtl/htb-ltr+Pass 631: vlr-ltr/vrl-rtl/vlr-rtl/htb-rtl+Pass 632: vlr-ltr/vrl-rtl/vlr-rtl/vlr-ltr+Pass 633: vlr-ltr/vrl-rtl/vlr-rtl/vlr-rtl+Pass 634: vlr-ltr/vrl-rtl/vlr-rtl/vrl-ltr+Pass 635: vlr-ltr/vrl-rtl/vlr-rtl/vrl-rtl+Pass 636: vlr-ltr/vrl-rtl/vrl-ltr/htb-ltr+Pass 637: vlr-ltr/vrl-rtl/vrl-ltr/htb-rtl+Pass 638: vlr-ltr/vrl-rtl/vrl-ltr/vlr-ltr+Pass 639: vlr-ltr/vrl-rtl/vrl-ltr/vlr-rtl+Pass 640: vlr-ltr/vrl-rtl/vrl-ltr/vrl-ltr+Pass 641: vlr-ltr/vrl-rtl/vrl-ltr/vrl-rtl+Pass 642: vlr-ltr/vrl-rtl/vrl-rtl/htb-ltr+Pass 643: vlr-ltr/vrl-rtl/vrl-rtl/htb-rtl+Pass 644: vlr-ltr/vrl-rtl/vrl-rtl/vlr-ltr+Pass 645: vlr-ltr/vrl-rtl/vrl-rtl/vlr-rtl+Pass 646: vlr-ltr/vrl-rtl/vrl-rtl/vrl-ltr+Pass 647: vlr-ltr/vrl-rtl/vrl-rtl/vrl-rtl+Pass 648: vlr-rtl/htb-ltr/htb-ltr/htb-ltr+Pass 649: vlr-rtl/htb-ltr/htb-ltr/htb-rtl+Pass 650: vlr-rtl/htb-ltr/htb-ltr/vlr-ltr+Pass 651: vlr-rtl/htb-ltr/htb-ltr/vlr-rtl+Pass 652: vlr-rtl/htb-ltr/htb-ltr/vrl-ltr+Pass 653: vlr-rtl/htb-ltr/htb-ltr/vrl-rtl+Pass 654: vlr-rtl/htb-ltr/htb-rtl/htb-ltr+Pass 655: vlr-rtl/htb-ltr/htb-rtl/htb-rtl+Pass 656: vlr-rtl/htb-ltr/htb-rtl/vlr-ltr+Pass 657: vlr-rtl/htb-ltr/htb-rtl/vlr-rtl+Pass 658: vlr-rtl/htb-ltr/htb-rtl/vrl-ltr+Pass 659: vlr-rtl/htb-ltr/htb-rtl/vrl-rtl+Pass 660: vlr-rtl/htb-ltr/vlr-ltr/htb-ltr+Pass 661: vlr-rtl/htb-ltr/vlr-ltr/htb-rtl+Pass 662: vlr-rtl/htb-ltr/vlr-ltr/vlr-ltr+Pass 663: vlr-rtl/htb-ltr/vlr-ltr/vlr-rtl+Pass 664: vlr-rtl/htb-ltr/vlr-ltr/vrl-ltr+Pass 665: vlr-rtl/htb-ltr/vlr-ltr/vrl-rtl+Pass 666: vlr-rtl/htb-ltr/vlr-rtl/htb-ltr+Pass 667: vlr-rtl/htb-ltr/vlr-rtl/htb-rtl+Pass 668: vlr-rtl/htb-ltr/vlr-rtl/vlr-ltr+Pass 669: vlr-rtl/htb-ltr/vlr-rtl/vlr-rtl+Pass 670: vlr-rtl/htb-ltr/vlr-rtl/vrl-ltr+Pass 671: vlr-rtl/htb-ltr/vlr-rtl/vrl-rtl+Pass 672: vlr-rtl/htb-ltr/vrl-ltr/htb-ltr+Pass 673: vlr-rtl/htb-ltr/vrl-ltr/htb-rtl+Pass 674: vlr-rtl/htb-ltr/vrl-ltr/vlr-ltr+Pass 675: vlr-rtl/htb-ltr/vrl-ltr/vlr-rtl+Pass 676: vlr-rtl/htb-ltr/vrl-ltr/vrl-ltr+Pass 677: vlr-rtl/htb-ltr/vrl-ltr/vrl-rtl+Pass 678: vlr-rtl/htb-ltr/vrl-rtl/htb-ltr+Pass 679: vlr-rtl/htb-ltr/vrl-rtl/htb-rtl+Pass 680: vlr-rtl/htb-ltr/vrl-rtl/vlr-ltr+Pass 681: vlr-rtl/htb-ltr/vrl-rtl/vlr-rtl+Pass 682: vlr-rtl/htb-ltr/vrl-rtl/vrl-ltr+Pass 683: vlr-rtl/htb-ltr/vrl-rtl/vrl-rtl+Pass 684: vlr-rtl/htb-rtl/htb-ltr/htb-ltr+Pass 685: vlr-rtl/htb-rtl/htb-ltr/htb-rtl+Pass 686: vlr-rtl/htb-rtl/htb-ltr/vlr-ltr+Pass 687: vlr-rtl/htb-rtl/htb-ltr/vlr-rtl+Pass 688: vlr-rtl/htb-rtl/htb-ltr/vrl-ltr+Pass 689: vlr-rtl/htb-rtl/htb-ltr/vrl-rtl+Pass 690: vlr-rtl/htb-rtl/htb-rtl/htb-ltr+Pass 691: vlr-rtl/htb-rtl/htb-rtl/htb-rtl+Pass 692: vlr-rtl/htb-rtl/htb-rtl/vlr-ltr+Pass 693: vlr-rtl/htb-rtl/htb-rtl/vlr-rtl+Pass 694: vlr-rtl/htb-rtl/htb-rtl/vrl-ltr+Pass 695: vlr-rtl/htb-rtl/htb-rtl/vrl-rtl+Pass 696: vlr-rtl/htb-rtl/vlr-ltr/htb-ltr+Pass 697: vlr-rtl/htb-rtl/vlr-ltr/htb-rtl+Pass 698: vlr-rtl/htb-rtl/vlr-ltr/vlr-ltr+Pass 699: vlr-rtl/htb-rtl/vlr-ltr/vlr-rtl+Pass 700: vlr-rtl/htb-rtl/vlr-ltr/vrl-ltr+Pass 701: vlr-rtl/htb-rtl/vlr-ltr/vrl-rtl+Pass 702: vlr-rtl/htb-rtl/vlr-rtl/htb-ltr+Pass 703: vlr-rtl/htb-rtl/vlr-rtl/htb-rtl+Pass 704: vlr-rtl/htb-rtl/vlr-rtl/vlr-ltr+Pass 705: vlr-rtl/htb-rtl/vlr-rtl/vlr-rtl+Pass 706: vlr-rtl/htb-rtl/vlr-rtl/vrl-ltr+Pass 707: vlr-rtl/htb-rtl/vlr-rtl/vrl-rtl+Pass 708: vlr-rtl/htb-rtl/vrl-ltr/htb-ltr+Pass 709: vlr-rtl/htb-rtl/vrl-ltr/htb-rtl+Pass 710: vlr-rtl/htb-rtl/vrl-ltr/vlr-ltr+Pass 711: vlr-rtl/htb-rtl/vrl-ltr/vlr-rtl+Pass 712: vlr-rtl/htb-rtl/vrl-ltr/vrl-ltr+Pass 713: vlr-rtl/htb-rtl/vrl-ltr/vrl-rtl+Pass 714: vlr-rtl/htb-rtl/vrl-rtl/htb-ltr+Pass 715: vlr-rtl/htb-rtl/vrl-rtl/htb-rtl+Pass 716: vlr-rtl/htb-rtl/vrl-rtl/vlr-ltr+Pass 717: vlr-rtl/htb-rtl/vrl-rtl/vlr-rtl+Pass 718: vlr-rtl/htb-rtl/vrl-rtl/vrl-ltr+Pass 719: vlr-rtl/htb-rtl/vrl-rtl/vrl-rtl+Pass 720: vlr-rtl/vlr-ltr/htb-ltr/htb-ltr+Pass 721: vlr-rtl/vlr-ltr/htb-ltr/htb-rtl+Pass 722: vlr-rtl/vlr-ltr/htb-ltr/vlr-ltr+Pass 723: vlr-rtl/vlr-ltr/htb-ltr/vlr-rtl+Pass 724: vlr-rtl/vlr-ltr/htb-ltr/vrl-ltr+Pass 725: vlr-rtl/vlr-ltr/htb-ltr/vrl-rtl+Pass 726: vlr-rtl/vlr-ltr/htb-rtl/htb-ltr+Pass 727: vlr-rtl/vlr-ltr/htb-rtl/htb-rtl+Pass 728: vlr-rtl/vlr-ltr/htb-rtl/vlr-ltr+Pass 729: vlr-rtl/vlr-ltr/htb-rtl/vlr-rtl+Pass 730: vlr-rtl/vlr-ltr/htb-rtl/vrl-ltr+Pass 731: vlr-rtl/vlr-ltr/htb-rtl/vrl-rtl+Pass 732: vlr-rtl/vlr-ltr/vlr-ltr/htb-ltr+Pass 733: vlr-rtl/vlr-ltr/vlr-ltr/htb-rtl+Pass 734: vlr-rtl/vlr-ltr/vlr-ltr/vlr-ltr+Pass 735: vlr-rtl/vlr-ltr/vlr-ltr/vlr-rtl+Pass 736: vlr-rtl/vlr-ltr/vlr-ltr/vrl-ltr+Pass 737: vlr-rtl/vlr-ltr/vlr-ltr/vrl-rtl+Pass 738: vlr-rtl/vlr-ltr/vlr-rtl/htb-ltr+Pass 739: vlr-rtl/vlr-ltr/vlr-rtl/htb-rtl+Pass 740: vlr-rtl/vlr-ltr/vlr-rtl/vlr-ltr+Pass 741: vlr-rtl/vlr-ltr/vlr-rtl/vlr-rtl+Pass 742: vlr-rtl/vlr-ltr/vlr-rtl/vrl-ltr+Pass 743: vlr-rtl/vlr-ltr/vlr-rtl/vrl-rtl+Pass 744: vlr-rtl/vlr-ltr/vrl-ltr/htb-ltr+Pass 745: vlr-rtl/vlr-ltr/vrl-ltr/htb-rtl+Pass 746: vlr-rtl/vlr-ltr/vrl-ltr/vlr-ltr+Pass 747: vlr-rtl/vlr-ltr/vrl-ltr/vlr-rtl+Pass 748: vlr-rtl/vlr-ltr/vrl-ltr/vrl-ltr+Pass 749: vlr-rtl/vlr-ltr/vrl-ltr/vrl-rtl+Pass 750: vlr-rtl/vlr-ltr/vrl-rtl/htb-ltr+Pass 751: vlr-rtl/vlr-ltr/vrl-rtl/htb-rtl+Pass 752: vlr-rtl/vlr-ltr/vrl-rtl/vlr-ltr+Pass 753: vlr-rtl/vlr-ltr/vrl-rtl/vlr-rtl+Pass 754: vlr-rtl/vlr-ltr/vrl-rtl/vrl-ltr+Pass 755: vlr-rtl/vlr-ltr/vrl-rtl/vrl-rtl+Pass 756: vlr-rtl/vlr-rtl/htb-ltr/htb-ltr+Pass 757: vlr-rtl/vlr-rtl/htb-ltr/htb-rtl+Pass 758: vlr-rtl/vlr-rtl/htb-ltr/vlr-ltr+Pass 759: vlr-rtl/vlr-rtl/htb-ltr/vlr-rtl+Pass 760: vlr-rtl/vlr-rtl/htb-ltr/vrl-ltr+Pass 761: vlr-rtl/vlr-rtl/htb-ltr/vrl-rtl+Pass 762: vlr-rtl/vlr-rtl/htb-rtl/htb-ltr+Pass 763: vlr-rtl/vlr-rtl/htb-rtl/htb-rtl+Pass 764: vlr-rtl/vlr-rtl/htb-rtl/vlr-ltr+Pass 765: vlr-rtl/vlr-rtl/htb-rtl/vlr-rtl+Pass 766: vlr-rtl/vlr-rtl/htb-rtl/vrl-ltr+Pass 767: vlr-rtl/vlr-rtl/htb-rtl/vrl-rtl+Pass 768: vlr-rtl/vlr-rtl/vlr-ltr/htb-ltr+Pass 769: vlr-rtl/vlr-rtl/vlr-ltr/htb-rtl+Pass 770: vlr-rtl/vlr-rtl/vlr-ltr/vlr-ltr+Pass 771: vlr-rtl/vlr-rtl/vlr-ltr/vlr-rtl+Pass 772: vlr-rtl/vlr-rtl/vlr-ltr/vrl-ltr+Pass 773: vlr-rtl/vlr-rtl/vlr-ltr/vrl-rtl+Pass 774: vlr-rtl/vlr-rtl/vlr-rtl/htb-ltr+Pass 775: vlr-rtl/vlr-rtl/vlr-rtl/htb-rtl+Pass 776: vlr-rtl/vlr-rtl/vlr-rtl/vlr-ltr+Pass 777: vlr-rtl/vlr-rtl/vlr-rtl/vlr-rtl+Pass 778: vlr-rtl/vlr-rtl/vlr-rtl/vrl-ltr+Pass 779: vlr-rtl/vlr-rtl/vlr-rtl/vrl-rtl+Pass 780: vlr-rtl/vlr-rtl/vrl-ltr/htb-ltr+Pass 781: vlr-rtl/vlr-rtl/vrl-ltr/htb-rtl+Pass 782: vlr-rtl/vlr-rtl/vrl-ltr/vlr-ltr+Pass 783: vlr-rtl/vlr-rtl/vrl-ltr/vlr-rtl+Pass 784: vlr-rtl/vlr-rtl/vrl-ltr/vrl-ltr+Pass 785: vlr-rtl/vlr-rtl/vrl-ltr/vrl-rtl+Pass 786: vlr-rtl/vlr-rtl/vrl-rtl/htb-ltr+Pass 787: vlr-rtl/vlr-rtl/vrl-rtl/htb-rtl+Pass 788: vlr-rtl/vlr-rtl/vrl-rtl/vlr-ltr+Pass 789: vlr-rtl/vlr-rtl/vrl-rtl/vlr-rtl+Pass 790: vlr-rtl/vlr-rtl/vrl-rtl/vrl-ltr+Pass 791: vlr-rtl/vlr-rtl/vrl-rtl/vrl-rtl+Pass 792: vlr-rtl/vrl-ltr/htb-ltr/htb-ltr+Pass 793: vlr-rtl/vrl-ltr/htb-ltr/htb-rtl+Pass 794: vlr-rtl/vrl-ltr/htb-ltr/vlr-ltr+Pass 795: vlr-rtl/vrl-ltr/htb-ltr/vlr-rtl+Pass 796: vlr-rtl/vrl-ltr/htb-ltr/vrl-ltr+Pass 797: vlr-rtl/vrl-ltr/htb-ltr/vrl-rtl+Pass 798: vlr-rtl/vrl-ltr/htb-rtl/htb-ltr+Pass 799: vlr-rtl/vrl-ltr/htb-rtl/htb-rtl+Pass 800: vlr-rtl/vrl-ltr/htb-rtl/vlr-ltr+Pass 801: vlr-rtl/vrl-ltr/htb-rtl/vlr-rtl+Pass 802: vlr-rtl/vrl-ltr/htb-rtl/vrl-ltr+Pass 803: vlr-rtl/vrl-ltr/htb-rtl/vrl-rtl+Pass 804: vlr-rtl/vrl-ltr/vlr-ltr/htb-ltr+Pass 805: vlr-rtl/vrl-ltr/vlr-ltr/htb-rtl+Pass 806: vlr-rtl/vrl-ltr/vlr-ltr/vlr-ltr+Pass 807: vlr-rtl/vrl-ltr/vlr-ltr/vlr-rtl+Pass 808: vlr-rtl/vrl-ltr/vlr-ltr/vrl-ltr+Pass 809: vlr-rtl/vrl-ltr/vlr-ltr/vrl-rtl+Pass 810: vlr-rtl/vrl-ltr/vlr-rtl/htb-ltr+Pass 811: vlr-rtl/vrl-ltr/vlr-rtl/htb-rtl+Pass 812: vlr-rtl/vrl-ltr/vlr-rtl/vlr-ltr+Pass 813: vlr-rtl/vrl-ltr/vlr-rtl/vlr-rtl+Pass 814: vlr-rtl/vrl-ltr/vlr-rtl/vrl-ltr+Pass 815: vlr-rtl/vrl-ltr/vlr-rtl/vrl-rtl+Pass 816: vlr-rtl/vrl-ltr/vrl-ltr/htb-ltr+Pass 817: vlr-rtl/vrl-ltr/vrl-ltr/htb-rtl+Pass 818: vlr-rtl/vrl-ltr/vrl-ltr/vlr-ltr+Pass 819: vlr-rtl/vrl-ltr/vrl-ltr/vlr-rtl+Pass 820: vlr-rtl/vrl-ltr/vrl-ltr/vrl-ltr+Pass 821: vlr-rtl/vrl-ltr/vrl-ltr/vrl-rtl+Pass 822: vlr-rtl/vrl-ltr/vrl-rtl/htb-ltr+Pass 823: vlr-rtl/vrl-ltr/vrl-rtl/htb-rtl+Pass 824: vlr-rtl/vrl-ltr/vrl-rtl/vlr-ltr+Pass 825: vlr-rtl/vrl-ltr/vrl-rtl/vlr-rtl+Pass 826: vlr-rtl/vrl-ltr/vrl-rtl/vrl-ltr+Pass 827: vlr-rtl/vrl-ltr/vrl-rtl/vrl-rtl+Pass 828: vlr-rtl/vrl-rtl/htb-ltr/htb-ltr+Pass 829: vlr-rtl/vrl-rtl/htb-ltr/htb-rtl+Pass 830: vlr-rtl/vrl-rtl/htb-ltr/vlr-ltr+Pass 831: vlr-rtl/vrl-rtl/htb-ltr/vlr-rtl+Pass 832: vlr-rtl/vrl-rtl/htb-ltr/vrl-ltr+Pass 833: vlr-rtl/vrl-rtl/htb-ltr/vrl-rtl+Pass 834: vlr-rtl/vrl-rtl/htb-rtl/htb-ltr+Pass 835: vlr-rtl/vrl-rtl/htb-rtl/htb-rtl+Pass 836: vlr-rtl/vrl-rtl/htb-rtl/vlr-ltr+Pass 837: vlr-rtl/vrl-rtl/htb-rtl/vlr-rtl+Pass 838: vlr-rtl/vrl-rtl/htb-rtl/vrl-ltr+Pass 839: vlr-rtl/vrl-rtl/htb-rtl/vrl-rtl+Pass 840: vlr-rtl/vrl-rtl/vlr-ltr/htb-ltr+Pass 841: vlr-rtl/vrl-rtl/vlr-ltr/htb-rtl+Pass 842: vlr-rtl/vrl-rtl/vlr-ltr/vlr-ltr+Pass 843: vlr-rtl/vrl-rtl/vlr-ltr/vlr-rtl+Pass 844: vlr-rtl/vrl-rtl/vlr-ltr/vrl-ltr+Pass 845: vlr-rtl/vrl-rtl/vlr-ltr/vrl-rtl+Pass 846: vlr-rtl/vrl-rtl/vlr-rtl/htb-ltr+Pass 847: vlr-rtl/vrl-rtl/vlr-rtl/htb-rtl+Pass 848: vlr-rtl/vrl-rtl/vlr-rtl/vlr-ltr+Pass 849: vlr-rtl/vrl-rtl/vlr-rtl/vlr-rtl+Pass 850: vlr-rtl/vrl-rtl/vlr-rtl/vrl-ltr+Pass 851: vlr-rtl/vrl-rtl/vlr-rtl/vrl-rtl+Pass 852: vlr-rtl/vrl-rtl/vrl-ltr/htb-ltr+Pass 853: vlr-rtl/vrl-rtl/vrl-ltr/htb-rtl+Pass 854: vlr-rtl/vrl-rtl/vrl-ltr/vlr-ltr+Pass 855: vlr-rtl/vrl-rtl/vrl-ltr/vlr-rtl+Pass 856: vlr-rtl/vrl-rtl/vrl-ltr/vrl-ltr+Pass 857: vlr-rtl/vrl-rtl/vrl-ltr/vrl-rtl+Pass 858: vlr-rtl/vrl-rtl/vrl-rtl/htb-ltr+Pass 859: vlr-rtl/vrl-rtl/vrl-rtl/htb-rtl+Pass 860: vlr-rtl/vrl-rtl/vrl-rtl/vlr-ltr+Pass 861: vlr-rtl/vrl-rtl/vrl-rtl/vlr-rtl+Pass 862: vlr-rtl/vrl-rtl/vrl-rtl/vrl-ltr+Pass 863: vlr-rtl/vrl-rtl/vrl-rtl/vrl-rtl+Pass 864: vrl-ltr/htb-ltr/htb-ltr/htb-ltr+Pass 865: vrl-ltr/htb-ltr/htb-ltr/htb-rtl+Pass 866: vrl-ltr/htb-ltr/htb-ltr/vlr-ltr+Pass 867: vrl-ltr/htb-ltr/htb-ltr/vlr-rtl+Pass 868: vrl-ltr/htb-ltr/htb-ltr/vrl-ltr+Pass 869: vrl-ltr/htb-ltr/htb-ltr/vrl-rtl+Pass 870: vrl-ltr/htb-ltr/htb-rtl/htb-ltr+Pass 871: vrl-ltr/htb-ltr/htb-rtl/htb-rtl+Pass 872: vrl-ltr/htb-ltr/htb-rtl/vlr-ltr+Pass 873: vrl-ltr/htb-ltr/htb-rtl/vlr-rtl+Pass 874: vrl-ltr/htb-ltr/htb-rtl/vrl-ltr+Pass 875: vrl-ltr/htb-ltr/htb-rtl/vrl-rtl+Pass 876: vrl-ltr/htb-ltr/vlr-ltr/htb-ltr+Pass 877: vrl-ltr/htb-ltr/vlr-ltr/htb-rtl+Pass 878: vrl-ltr/htb-ltr/vlr-ltr/vlr-ltr+Pass 879: vrl-ltr/htb-ltr/vlr-ltr/vlr-rtl+Pass 880: vrl-ltr/htb-ltr/vlr-ltr/vrl-ltr+Pass 881: vrl-ltr/htb-ltr/vlr-ltr/vrl-rtl+Pass 882: vrl-ltr/htb-ltr/vlr-rtl/htb-ltr+Pass 883: vrl-ltr/htb-ltr/vlr-rtl/htb-rtl+Pass 884: vrl-ltr/htb-ltr/vlr-rtl/vlr-ltr+Pass 885: vrl-ltr/htb-ltr/vlr-rtl/vlr-rtl+Pass 886: vrl-ltr/htb-ltr/vlr-rtl/vrl-ltr+Pass 887: vrl-ltr/htb-ltr/vlr-rtl/vrl-rtl+Pass 888: vrl-ltr/htb-ltr/vrl-ltr/htb-ltr+Pass 889: vrl-ltr/htb-ltr/vrl-ltr/htb-rtl+Pass 890: vrl-ltr/htb-ltr/vrl-ltr/vlr-ltr+Pass 891: vrl-ltr/htb-ltr/vrl-ltr/vlr-rtl+Pass 892: vrl-ltr/htb-ltr/vrl-ltr/vrl-ltr+Pass 893: vrl-ltr/htb-ltr/vrl-ltr/vrl-rtl+Pass 894: vrl-ltr/htb-ltr/vrl-rtl/htb-ltr+Pass 895: vrl-ltr/htb-ltr/vrl-rtl/htb-rtl+Pass 896: vrl-ltr/htb-ltr/vrl-rtl/vlr-ltr+Pass 897: vrl-ltr/htb-ltr/vrl-rtl/vlr-rtl+Pass 898: vrl-ltr/htb-ltr/vrl-rtl/vrl-ltr+Pass 899: vrl-ltr/htb-ltr/vrl-rtl/vrl-rtl+Pass 900: vrl-ltr/htb-rtl/htb-ltr/htb-ltr+Pass 901: vrl-ltr/htb-rtl/htb-ltr/htb-rtl+Pass 902: vrl-ltr/htb-rtl/htb-ltr/vlr-ltr+Pass 903: vrl-ltr/htb-rtl/htb-ltr/vlr-rtl+Pass 904: vrl-ltr/htb-rtl/htb-ltr/vrl-ltr+Pass 905: vrl-ltr/htb-rtl/htb-ltr/vrl-rtl+Pass 906: vrl-ltr/htb-rtl/htb-rtl/htb-ltr+Pass 907: vrl-ltr/htb-rtl/htb-rtl/htb-rtl+Pass 908: vrl-ltr/htb-rtl/htb-rtl/vlr-ltr+Pass 909: vrl-ltr/htb-rtl/htb-rtl/vlr-rtl+Pass 910: vrl-ltr/htb-rtl/htb-rtl/vrl-ltr+Pass 911: vrl-ltr/htb-rtl/htb-rtl/vrl-rtl+Pass 912: vrl-ltr/htb-rtl/vlr-ltr/htb-ltr+Pass 913: vrl-ltr/htb-rtl/vlr-ltr/htb-rtl+Pass 914: vrl-ltr/htb-rtl/vlr-ltr/vlr-ltr+Pass 915: vrl-ltr/htb-rtl/vlr-ltr/vlr-rtl+Pass 916: vrl-ltr/htb-rtl/vlr-ltr/vrl-ltr+Pass 917: vrl-ltr/htb-rtl/vlr-ltr/vrl-rtl+Pass 918: vrl-ltr/htb-rtl/vlr-rtl/htb-ltr+Pass 919: vrl-ltr/htb-rtl/vlr-rtl/htb-rtl+Pass 920: vrl-ltr/htb-rtl/vlr-rtl/vlr-ltr+Pass 921: vrl-ltr/htb-rtl/vlr-rtl/vlr-rtl+Pass 922: vrl-ltr/htb-rtl/vlr-rtl/vrl-ltr+Pass 923: vrl-ltr/htb-rtl/vlr-rtl/vrl-rtl+Pass 924: vrl-ltr/htb-rtl/vrl-ltr/htb-ltr+Pass 925: vrl-ltr/htb-rtl/vrl-ltr/htb-rtl+Pass 926: vrl-ltr/htb-rtl/vrl-ltr/vlr-ltr+Pass 927: vrl-ltr/htb-rtl/vrl-ltr/vlr-rtl+Pass 928: vrl-ltr/htb-rtl/vrl-ltr/vrl-ltr+Pass 929: vrl-ltr/htb-rtl/vrl-ltr/vrl-rtl+Pass 930: vrl-ltr/htb-rtl/vrl-rtl/htb-ltr+Pass 931: vrl-ltr/htb-rtl/vrl-rtl/htb-rtl+Pass 932: vrl-ltr/htb-rtl/vrl-rtl/vlr-ltr+Pass 933: vrl-ltr/htb-rtl/vrl-rtl/vlr-rtl+Pass 934: vrl-ltr/htb-rtl/vrl-rtl/vrl-ltr+Pass 935: vrl-ltr/htb-rtl/vrl-rtl/vrl-rtl+Pass 936: vrl-ltr/vlr-ltr/htb-ltr/htb-ltr+Pass 937: vrl-ltr/vlr-ltr/htb-ltr/htb-rtl+Pass 938: vrl-ltr/vlr-ltr/htb-ltr/vlr-ltr+Pass 939: vrl-ltr/vlr-ltr/htb-ltr/vlr-rtl+Pass 940: vrl-ltr/vlr-ltr/htb-ltr/vrl-ltr+Pass 941: vrl-ltr/vlr-ltr/htb-ltr/vrl-rtl+Pass 942: vrl-ltr/vlr-ltr/htb-rtl/htb-ltr+Pass 943: vrl-ltr/vlr-ltr/htb-rtl/htb-rtl+Pass 944: vrl-ltr/vlr-ltr/htb-rtl/vlr-ltr+Pass 945: vrl-ltr/vlr-ltr/htb-rtl/vlr-rtl+Pass 946: vrl-ltr/vlr-ltr/htb-rtl/vrl-ltr+Pass 947: vrl-ltr/vlr-ltr/htb-rtl/vrl-rtl+Pass 948: vrl-ltr/vlr-ltr/vlr-ltr/htb-ltr+Pass 949: vrl-ltr/vlr-ltr/vlr-ltr/htb-rtl+Pass 950: vrl-ltr/vlr-ltr/vlr-ltr/vlr-ltr+Pass 951: vrl-ltr/vlr-ltr/vlr-ltr/vlr-rtl+Pass 952: vrl-ltr/vlr-ltr/vlr-ltr/vrl-ltr+Pass 953: vrl-ltr/vlr-ltr/vlr-ltr/vrl-rtl+Pass 954: vrl-ltr/vlr-ltr/vlr-rtl/htb-ltr+Pass 955: vrl-ltr/vlr-ltr/vlr-rtl/htb-rtl+Pass 956: vrl-ltr/vlr-ltr/vlr-rtl/vlr-ltr+Pass 957: vrl-ltr/vlr-ltr/vlr-rtl/vlr-rtl+Pass 958: vrl-ltr/vlr-ltr/vlr-rtl/vrl-ltr+Pass 959: vrl-ltr/vlr-ltr/vlr-rtl/vrl-rtl+Pass 960: vrl-ltr/vlr-ltr/vrl-ltr/htb-ltr+Pass 961: vrl-ltr/vlr-ltr/vrl-ltr/htb-rtl+Pass 962: vrl-ltr/vlr-ltr/vrl-ltr/vlr-ltr+Pass 963: vrl-ltr/vlr-ltr/vrl-ltr/vlr-rtl+Pass 964: vrl-ltr/vlr-ltr/vrl-ltr/vrl-ltr+Pass 965: vrl-ltr/vlr-ltr/vrl-ltr/vrl-rtl+Pass 966: vrl-ltr/vlr-ltr/vrl-rtl/htb-ltr+Pass 967: vrl-ltr/vlr-ltr/vrl-rtl/htb-rtl+Pass 968: vrl-ltr/vlr-ltr/vrl-rtl/vlr-ltr+Pass 969: vrl-ltr/vlr-ltr/vrl-rtl/vlr-rtl+Pass 970: vrl-ltr/vlr-ltr/vrl-rtl/vrl-ltr+Pass 971: vrl-ltr/vlr-ltr/vrl-rtl/vrl-rtl+Pass 972: vrl-ltr/vlr-rtl/htb-ltr/htb-ltr+Pass 973: vrl-ltr/vlr-rtl/htb-ltr/htb-rtl+Pass 974: vrl-ltr/vlr-rtl/htb-ltr/vlr-ltr+Pass 975: vrl-ltr/vlr-rtl/htb-ltr/vlr-rtl+Pass 976: vrl-ltr/vlr-rtl/htb-ltr/vrl-ltr+Pass 977: vrl-ltr/vlr-rtl/htb-ltr/vrl-rtl+Pass 978: vrl-ltr/vlr-rtl/htb-rtl/htb-ltr+Pass 979: vrl-ltr/vlr-rtl/htb-rtl/htb-rtl+Pass 980: vrl-ltr/vlr-rtl/htb-rtl/vlr-ltr+Pass 981: vrl-ltr/vlr-rtl/htb-rtl/vlr-rtl+Pass 982: vrl-ltr/vlr-rtl/htb-rtl/vrl-ltr+Pass 983: vrl-ltr/vlr-rtl/htb-rtl/vrl-rtl+Pass 984: vrl-ltr/vlr-rtl/vlr-ltr/htb-ltr+Pass 985: vrl-ltr/vlr-rtl/vlr-ltr/htb-rtl+Pass 986: vrl-ltr/vlr-rtl/vlr-ltr/vlr-ltr+Pass 987: vrl-ltr/vlr-rtl/vlr-ltr/vlr-rtl+Pass 988: vrl-ltr/vlr-rtl/vlr-ltr/vrl-ltr+Pass 989: vrl-ltr/vlr-rtl/vlr-ltr/vrl-rtl+Pass 990: vrl-ltr/vlr-rtl/vlr-rtl/htb-ltr+Pass 991: vrl-ltr/vlr-rtl/vlr-rtl/htb-rtl+Pass 992: vrl-ltr/vlr-rtl/vlr-rtl/vlr-ltr+Pass 993: vrl-ltr/vlr-rtl/vlr-rtl/vlr-rtl+Pass 994: vrl-ltr/vlr-rtl/vlr-rtl/vrl-ltr+Pass 995: vrl-ltr/vlr-rtl/vlr-rtl/vrl-rtl+Pass 996: vrl-ltr/vlr-rtl/vrl-ltr/htb-ltr+Pass 997: vrl-ltr/vlr-rtl/vrl-ltr/htb-rtl+Pass 998: vrl-ltr/vlr-rtl/vrl-ltr/vlr-ltr+Pass 999: vrl-ltr/vlr-rtl/vrl-ltr/vlr-rtl+Pass 1000: vrl-ltr/vlr-rtl/vrl-ltr/vrl-ltr+Pass 1001: vrl-ltr/vlr-rtl/vrl-ltr/vrl-rtl+Pass 1002: vrl-ltr/vlr-rtl/vrl-rtl/htb-ltr+Pass 1003: vrl-ltr/vlr-rtl/vrl-rtl/htb-rtl+Pass 1004: vrl-ltr/vlr-rtl/vrl-rtl/vlr-ltr+Pass 1005: vrl-ltr/vlr-rtl/vrl-rtl/vlr-rtl+Pass 1006: vrl-ltr/vlr-rtl/vrl-rtl/vrl-ltr+Pass 1007: vrl-ltr/vlr-rtl/vrl-rtl/vrl-rtl+Pass 1008: vrl-ltr/vrl-ltr/htb-ltr/htb-ltr+Pass 1009: vrl-ltr/vrl-ltr/htb-ltr/htb-rtl+Pass 1010: vrl-ltr/vrl-ltr/htb-ltr/vlr-ltr+Pass 1011: vrl-ltr/vrl-ltr/htb-ltr/vlr-rtl+Pass 1012: vrl-ltr/vrl-ltr/htb-ltr/vrl-ltr+Pass 1013: vrl-ltr/vrl-ltr/htb-ltr/vrl-rtl+Pass 1014: vrl-ltr/vrl-ltr/htb-rtl/htb-ltr+Pass 1015: vrl-ltr/vrl-ltr/htb-rtl/htb-rtl+Pass 1016: vrl-ltr/vrl-ltr/htb-rtl/vlr-ltr+Pass 1017: vrl-ltr/vrl-ltr/htb-rtl/vlr-rtl+Pass 1018: vrl-ltr/vrl-ltr/htb-rtl/vrl-ltr+Pass 1019: vrl-ltr/vrl-ltr/htb-rtl/vrl-rtl+Pass 1020: vrl-ltr/vrl-ltr/vlr-ltr/htb-ltr+Pass 1021: vrl-ltr/vrl-ltr/vlr-ltr/htb-rtl+Pass 1022: vrl-ltr/vrl-ltr/vlr-ltr/vlr-ltr+Pass 1023: vrl-ltr/vrl-ltr/vlr-ltr/vlr-rtl+Pass 1024: vrl-ltr/vrl-ltr/vlr-ltr/vrl-ltr+Pass 1025: vrl-ltr/vrl-ltr/vlr-ltr/vrl-rtl+Pass 1026: vrl-ltr/vrl-ltr/vlr-rtl/htb-ltr+Pass 1027: vrl-ltr/vrl-ltr/vlr-rtl/htb-rtl+Pass 1028: vrl-ltr/vrl-ltr/vlr-rtl/vlr-ltr+Pass 1029: vrl-ltr/vrl-ltr/vlr-rtl/vlr-rtl+Pass 1030: vrl-ltr/vrl-ltr/vlr-rtl/vrl-ltr+Pass 1031: vrl-ltr/vrl-ltr/vlr-rtl/vrl-rtl+Pass 1032: vrl-ltr/vrl-ltr/vrl-ltr/htb-ltr+Pass 1033: vrl-ltr/vrl-ltr/vrl-ltr/htb-rtl+Pass 1034: vrl-ltr/vrl-ltr/vrl-ltr/vlr-ltr+Pass 1035: vrl-ltr/vrl-ltr/vrl-ltr/vlr-rtl+Pass 1036: vrl-ltr/vrl-ltr/vrl-ltr/vrl-ltr+Pass 1037: vrl-ltr/vrl-ltr/vrl-ltr/vrl-rtl+Pass 1038: vrl-ltr/vrl-ltr/vrl-rtl/htb-ltr+Pass 1039: vrl-ltr/vrl-ltr/vrl-rtl/htb-rtl+Pass 1040: vrl-ltr/vrl-ltr/vrl-rtl/vlr-ltr+Pass 1041: vrl-ltr/vrl-ltr/vrl-rtl/vlr-rtl+Pass 1042: vrl-ltr/vrl-ltr/vrl-rtl/vrl-ltr+Pass 1043: vrl-ltr/vrl-ltr/vrl-rtl/vrl-rtl+Pass 1044: vrl-ltr/vrl-rtl/htb-ltr/htb-ltr+Pass 1045: vrl-ltr/vrl-rtl/htb-ltr/htb-rtl+Pass 1046: vrl-ltr/vrl-rtl/htb-ltr/vlr-ltr+Pass 1047: vrl-ltr/vrl-rtl/htb-ltr/vlr-rtl+Pass 1048: vrl-ltr/vrl-rtl/htb-ltr/vrl-ltr+Pass 1049: vrl-ltr/vrl-rtl/htb-ltr/vrl-rtl+Pass 1050: vrl-ltr/vrl-rtl/htb-rtl/htb-ltr+Pass 1051: vrl-ltr/vrl-rtl/htb-rtl/htb-rtl+Pass 1052: vrl-ltr/vrl-rtl/htb-rtl/vlr-ltr+Pass 1053: vrl-ltr/vrl-rtl/htb-rtl/vlr-rtl+Pass 1054: vrl-ltr/vrl-rtl/htb-rtl/vrl-ltr+Pass 1055: vrl-ltr/vrl-rtl/htb-rtl/vrl-rtl+Pass 1056: vrl-ltr/vrl-rtl/vlr-ltr/htb-ltr+Pass 1057: vrl-ltr/vrl-rtl/vlr-ltr/htb-rtl+Pass 1058: vrl-ltr/vrl-rtl/vlr-ltr/vlr-ltr+Pass 1059: vrl-ltr/vrl-rtl/vlr-ltr/vlr-rtl+Pass 1060: vrl-ltr/vrl-rtl/vlr-ltr/vrl-ltr+Pass 1061: vrl-ltr/vrl-rtl/vlr-ltr/vrl-rtl+Pass 1062: vrl-ltr/vrl-rtl/vlr-rtl/htb-ltr+Pass 1063: vrl-ltr/vrl-rtl/vlr-rtl/htb-rtl+Pass 1064: vrl-ltr/vrl-rtl/vlr-rtl/vlr-ltr+Pass 1065: vrl-ltr/vrl-rtl/vlr-rtl/vlr-rtl+Pass 1066: vrl-ltr/vrl-rtl/vlr-rtl/vrl-ltr+Pass 1067: vrl-ltr/vrl-rtl/vlr-rtl/vrl-rtl+Pass 1068: vrl-ltr/vrl-rtl/vrl-ltr/htb-ltr+Pass 1069: vrl-ltr/vrl-rtl/vrl-ltr/htb-rtl+Pass 1070: vrl-ltr/vrl-rtl/vrl-ltr/vlr-ltr+Pass 1071: vrl-ltr/vrl-rtl/vrl-ltr/vlr-rtl+Pass 1072: vrl-ltr/vrl-rtl/vrl-ltr/vrl-ltr+Pass 1073: vrl-ltr/vrl-rtl/vrl-ltr/vrl-rtl+Pass 1074: vrl-ltr/vrl-rtl/vrl-rtl/htb-ltr+Pass 1075: vrl-ltr/vrl-rtl/vrl-rtl/htb-rtl+Pass 1076: vrl-ltr/vrl-rtl/vrl-rtl/vlr-ltr+Pass 1077: vrl-ltr/vrl-rtl/vrl-rtl/vlr-rtl+Pass 1078: vrl-ltr/vrl-rtl/vrl-rtl/vrl-ltr+Pass 1079: vrl-ltr/vrl-rtl/vrl-rtl/vrl-rtl+Pass 1080: vrl-rtl/htb-ltr/htb-ltr/htb-ltr+Pass 1081: vrl-rtl/htb-ltr/htb-ltr/htb-rtl+Pass 1082: vrl-rtl/htb-ltr/htb-ltr/vlr-ltr+Pass 1083: vrl-rtl/htb-ltr/htb-ltr/vlr-rtl+Pass 1084: vrl-rtl/htb-ltr/htb-ltr/vrl-ltr+Pass 1085: vrl-rtl/htb-ltr/htb-ltr/vrl-rtl+Pass 1086: vrl-rtl/htb-ltr/htb-rtl/htb-ltr+Pass 1087: vrl-rtl/htb-ltr/htb-rtl/htb-rtl+Pass 1088: vrl-rtl/htb-ltr/htb-rtl/vlr-ltr+Pass 1089: vrl-rtl/htb-ltr/htb-rtl/vlr-rtl+Pass 1090: vrl-rtl/htb-ltr/htb-rtl/vrl-ltr+Pass 1091: vrl-rtl/htb-ltr/htb-rtl/vrl-rtl+Pass 1092: vrl-rtl/htb-ltr/vlr-ltr/htb-ltr+Pass 1093: vrl-rtl/htb-ltr/vlr-ltr/htb-rtl+Pass 1094: vrl-rtl/htb-ltr/vlr-ltr/vlr-ltr+Pass 1095: vrl-rtl/htb-ltr/vlr-ltr/vlr-rtl+Pass 1096: vrl-rtl/htb-ltr/vlr-ltr/vrl-ltr+Pass 1097: vrl-rtl/htb-ltr/vlr-ltr/vrl-rtl+Pass 1098: vrl-rtl/htb-ltr/vlr-rtl/htb-ltr+Pass 1099: vrl-rtl/htb-ltr/vlr-rtl/htb-rtl+Pass 1100: vrl-rtl/htb-ltr/vlr-rtl/vlr-ltr+Pass 1101: vrl-rtl/htb-ltr/vlr-rtl/vlr-rtl+Pass 1102: vrl-rtl/htb-ltr/vlr-rtl/vrl-ltr+Pass 1103: vrl-rtl/htb-ltr/vlr-rtl/vrl-rtl+Pass 1104: vrl-rtl/htb-ltr/vrl-ltr/htb-ltr+Pass 1105: vrl-rtl/htb-ltr/vrl-ltr/htb-rtl+Pass 1106: vrl-rtl/htb-ltr/vrl-ltr/vlr-ltr+Pass 1107: vrl-rtl/htb-ltr/vrl-ltr/vlr-rtl+Pass 1108: vrl-rtl/htb-ltr/vrl-ltr/vrl-ltr+Pass 1109: vrl-rtl/htb-ltr/vrl-ltr/vrl-rtl+Pass 1110: vrl-rtl/htb-ltr/vrl-rtl/htb-ltr+Pass 1111: vrl-rtl/htb-ltr/vrl-rtl/htb-rtl+Pass 1112: vrl-rtl/htb-ltr/vrl-rtl/vlr-ltr+Pass 1113: vrl-rtl/htb-ltr/vrl-rtl/vlr-rtl+Pass 1114: vrl-rtl/htb-ltr/vrl-rtl/vrl-ltr+Pass 1115: vrl-rtl/htb-ltr/vrl-rtl/vrl-rtl+Pass 1116: vrl-rtl/htb-rtl/htb-ltr/htb-ltr+Pass 1117: vrl-rtl/htb-rtl/htb-ltr/htb-rtl+Pass 1118: vrl-rtl/htb-rtl/htb-ltr/vlr-ltr+Pass 1119: vrl-rtl/htb-rtl/htb-ltr/vlr-rtl+Pass 1120: vrl-rtl/htb-rtl/htb-ltr/vrl-ltr+Pass 1121: vrl-rtl/htb-rtl/htb-ltr/vrl-rtl+Pass 1122: vrl-rtl/htb-rtl/htb-rtl/htb-ltr+Pass 1123: vrl-rtl/htb-rtl/htb-rtl/htb-rtl+Pass 1124: vrl-rtl/htb-rtl/htb-rtl/vlr-ltr+Pass 1125: vrl-rtl/htb-rtl/htb-rtl/vlr-rtl+Pass 1126: vrl-rtl/htb-rtl/htb-rtl/vrl-ltr+Pass 1127: vrl-rtl/htb-rtl/htb-rtl/vrl-rtl+Pass 1128: vrl-rtl/htb-rtl/vlr-ltr/htb-ltr+Pass 1129: vrl-rtl/htb-rtl/vlr-ltr/htb-rtl+Pass 1130: vrl-rtl/htb-rtl/vlr-ltr/vlr-ltr+Pass 1131: vrl-rtl/htb-rtl/vlr-ltr/vlr-rtl+Pass 1132: vrl-rtl/htb-rtl/vlr-ltr/vrl-ltr+Pass 1133: vrl-rtl/htb-rtl/vlr-ltr/vrl-rtl+Pass 1134: vrl-rtl/htb-rtl/vlr-rtl/htb-ltr+Pass 1135: vrl-rtl/htb-rtl/vlr-rtl/htb-rtl+Pass 1136: vrl-rtl/htb-rtl/vlr-rtl/vlr-ltr+Pass 1137: vrl-rtl/htb-rtl/vlr-rtl/vlr-rtl+Pass 1138: vrl-rtl/htb-rtl/vlr-rtl/vrl-ltr+Pass 1139: vrl-rtl/htb-rtl/vlr-rtl/vrl-rtl+Pass 1140: vrl-rtl/htb-rtl/vrl-ltr/htb-ltr+Pass 1141: vrl-rtl/htb-rtl/vrl-ltr/htb-rtl+Pass 1142: vrl-rtl/htb-rtl/vrl-ltr/vlr-ltr+Pass 1143: vrl-rtl/htb-rtl/vrl-ltr/vlr-rtl+Pass 1144: vrl-rtl/htb-rtl/vrl-ltr/vrl-ltr+Pass 1145: vrl-rtl/htb-rtl/vrl-ltr/vrl-rtl+Pass 1146: vrl-rtl/htb-rtl/vrl-rtl/htb-ltr+Pass 1147: vrl-rtl/htb-rtl/vrl-rtl/htb-rtl+Pass 1148: vrl-rtl/htb-rtl/vrl-rtl/vlr-ltr+Pass 1149: vrl-rtl/htb-rtl/vrl-rtl/vlr-rtl+Pass 1150: vrl-rtl/htb-rtl/vrl-rtl/vrl-ltr+Pass 1151: vrl-rtl/htb-rtl/vrl-rtl/vrl-rtl+Pass 1152: vrl-rtl/vlr-ltr/htb-ltr/htb-ltr+Pass 1153: vrl-rtl/vlr-ltr/htb-ltr/htb-rtl+Pass 1154: vrl-rtl/vlr-ltr/htb-ltr/vlr-ltr+Pass 1155: vrl-rtl/vlr-ltr/htb-ltr/vlr-rtl+Pass 1156: vrl-rtl/vlr-ltr/htb-ltr/vrl-ltr+Pass 1157: vrl-rtl/vlr-ltr/htb-ltr/vrl-rtl+Pass 1158: vrl-rtl/vlr-ltr/htb-rtl/htb-ltr+Pass 1159: vrl-rtl/vlr-ltr/htb-rtl/htb-rtl+Pass 1160: vrl-rtl/vlr-ltr/htb-rtl/vlr-ltr+Pass 1161: vrl-rtl/vlr-ltr/htb-rtl/vlr-rtl+Pass 1162: vrl-rtl/vlr-ltr/htb-rtl/vrl-ltr+Pass 1163: vrl-rtl/vlr-ltr/htb-rtl/vrl-rtl+Pass 1164: vrl-rtl/vlr-ltr/vlr-ltr/htb-ltr+Pass 1165: vrl-rtl/vlr-ltr/vlr-ltr/htb-rtl+Pass 1166: vrl-rtl/vlr-ltr/vlr-ltr/vlr-ltr+Pass 1167: vrl-rtl/vlr-ltr/vlr-ltr/vlr-rtl+Pass 1168: vrl-rtl/vlr-ltr/vlr-ltr/vrl-ltr+Pass 1169: vrl-rtl/vlr-ltr/vlr-ltr/vrl-rtl+Pass 1170: vrl-rtl/vlr-ltr/vlr-rtl/htb-ltr+Pass 1171: vrl-rtl/vlr-ltr/vlr-rtl/htb-rtl+Pass 1172: vrl-rtl/vlr-ltr/vlr-rtl/vlr-ltr+Pass 1173: vrl-rtl/vlr-ltr/vlr-rtl/vlr-rtl+Pass 1174: vrl-rtl/vlr-ltr/vlr-rtl/vrl-ltr+Pass 1175: vrl-rtl/vlr-ltr/vlr-rtl/vrl-rtl+Pass 1176: vrl-rtl/vlr-ltr/vrl-ltr/htb-ltr+Pass 1177: vrl-rtl/vlr-ltr/vrl-ltr/htb-rtl+Pass 1178: vrl-rtl/vlr-ltr/vrl-ltr/vlr-ltr+Pass 1179: vrl-rtl/vlr-ltr/vrl-ltr/vlr-rtl+Pass 1180: vrl-rtl/vlr-ltr/vrl-ltr/vrl-ltr+Pass 1181: vrl-rtl/vlr-ltr/vrl-ltr/vrl-rtl+Pass 1182: vrl-rtl/vlr-ltr/vrl-rtl/htb-ltr+Pass 1183: vrl-rtl/vlr-ltr/vrl-rtl/htb-rtl+Pass 1184: vrl-rtl/vlr-ltr/vrl-rtl/vlr-ltr+Pass 1185: vrl-rtl/vlr-ltr/vrl-rtl/vlr-rtl+Pass 1186: vrl-rtl/vlr-ltr/vrl-rtl/vrl-ltr+Pass 1187: vrl-rtl/vlr-ltr/vrl-rtl/vrl-rtl+Pass 1188: vrl-rtl/vlr-rtl/htb-ltr/htb-ltr+Pass 1189: vrl-rtl/vlr-rtl/htb-ltr/htb-rtl+Pass 1190: vrl-rtl/vlr-rtl/htb-ltr/vlr-ltr+Pass 1191: vrl-rtl/vlr-rtl/htb-ltr/vlr-rtl+Pass 1192: vrl-rtl/vlr-rtl/htb-ltr/vrl-ltr+Pass 1193: vrl-rtl/vlr-rtl/htb-ltr/vrl-rtl+Pass 1194: vrl-rtl/vlr-rtl/htb-rtl/htb-ltr+Pass 1195: vrl-rtl/vlr-rtl/htb-rtl/htb-rtl+Pass 1196: vrl-rtl/vlr-rtl/htb-rtl/vlr-ltr+Pass 1197: vrl-rtl/vlr-rtl/htb-rtl/vlr-rtl+Pass 1198: vrl-rtl/vlr-rtl/htb-rtl/vrl-ltr+Pass 1199: vrl-rtl/vlr-rtl/htb-rtl/vrl-rtl+Pass 1200: vrl-rtl/vlr-rtl/vlr-ltr/htb-ltr+Pass 1201: vrl-rtl/vlr-rtl/vlr-ltr/htb-rtl+Pass 1202: vrl-rtl/vlr-rtl/vlr-ltr/vlr-ltr+Pass 1203: vrl-rtl/vlr-rtl/vlr-ltr/vlr-rtl+Pass 1204: vrl-rtl/vlr-rtl/vlr-ltr/vrl-ltr+Pass 1205: vrl-rtl/vlr-rtl/vlr-ltr/vrl-rtl+Pass 1206: vrl-rtl/vlr-rtl/vlr-rtl/htb-ltr+Pass 1207: vrl-rtl/vlr-rtl/vlr-rtl/htb-rtl+Pass 1208: vrl-rtl/vlr-rtl/vlr-rtl/vlr-ltr+Pass 1209: vrl-rtl/vlr-rtl/vlr-rtl/vlr-rtl+Pass 1210: vrl-rtl/vlr-rtl/vlr-rtl/vrl-ltr+Pass 1211: vrl-rtl/vlr-rtl/vlr-rtl/vrl-rtl+Pass 1212: vrl-rtl/vlr-rtl/vrl-ltr/htb-ltr+Pass 1213: vrl-rtl/vlr-rtl/vrl-ltr/htb-rtl+Pass 1214: vrl-rtl/vlr-rtl/vrl-ltr/vlr-ltr+Pass 1215: vrl-rtl/vlr-rtl/vrl-ltr/vlr-rtl+Pass 1216: vrl-rtl/vlr-rtl/vrl-ltr/vrl-ltr+Pass 1217: vrl-rtl/vlr-rtl/vrl-ltr/vrl-rtl+Pass 1218: vrl-rtl/vlr-rtl/vrl-rtl/htb-ltr+Pass 1219: vrl-rtl/vlr-rtl/vrl-rtl/htb-rtl+Pass 1220: vrl-rtl/vlr-rtl/vrl-rtl/vlr-ltr+Pass 1221: vrl-rtl/vlr-rtl/vrl-rtl/vlr-rtl+Pass 1222: vrl-rtl/vlr-rtl/vrl-rtl/vrl-ltr+Pass 1223: vrl-rtl/vlr-rtl/vrl-rtl/vrl-rtl+Pass 1224: vrl-rtl/vrl-ltr/htb-ltr/htb-ltr+Pass 1225: vrl-rtl/vrl-ltr/htb-ltr/htb-rtl+Pass 1226: vrl-rtl/vrl-ltr/htb-ltr/vlr-ltr+Pass 1227: vrl-rtl/vrl-ltr/htb-ltr/vlr-rtl+Pass 1228: vrl-rtl/vrl-ltr/htb-ltr/vrl-ltr+Pass 1229: vrl-rtl/vrl-ltr/htb-ltr/vrl-rtl+Pass 1230: vrl-rtl/vrl-ltr/htb-rtl/htb-ltr+Pass 1231: vrl-rtl/vrl-ltr/htb-rtl/htb-rtl+Pass 1232: vrl-rtl/vrl-ltr/htb-rtl/vlr-ltr+Pass 1233: vrl-rtl/vrl-ltr/htb-rtl/vlr-rtl+Pass 1234: vrl-rtl/vrl-ltr/htb-rtl/vrl-ltr+Pass 1235: vrl-rtl/vrl-ltr/htb-rtl/vrl-rtl+Pass 1236: vrl-rtl/vrl-ltr/vlr-ltr/htb-ltr+Pass 1237: vrl-rtl/vrl-ltr/vlr-ltr/htb-rtl+Pass 1238: vrl-rtl/vrl-ltr/vlr-ltr/vlr-ltr+Pass 1239: vrl-rtl/vrl-ltr/vlr-ltr/vlr-rtl+Pass 1240: vrl-rtl/vrl-ltr/vlr-ltr/vrl-ltr+Pass 1241: vrl-rtl/vrl-ltr/vlr-ltr/vrl-rtl+Pass 1242: vrl-rtl/vrl-ltr/vlr-rtl/htb-ltr+Pass 1243: vrl-rtl/vrl-ltr/vlr-rtl/htb-rtl+Pass 1244: vrl-rtl/vrl-ltr/vlr-rtl/vlr-ltr+Pass 1245: vrl-rtl/vrl-ltr/vlr-rtl/vlr-rtl+Pass 1246: vrl-rtl/vrl-ltr/vlr-rtl/vrl-ltr+Pass 1247: vrl-rtl/vrl-ltr/vlr-rtl/vrl-rtl+Pass 1248: vrl-rtl/vrl-ltr/vrl-ltr/htb-ltr+Pass 1249: vrl-rtl/vrl-ltr/vrl-ltr/htb-rtl+Pass 1250: vrl-rtl/vrl-ltr/vrl-ltr/vlr-ltr+Pass 1251: vrl-rtl/vrl-ltr/vrl-ltr/vlr-rtl+Pass 1252: vrl-rtl/vrl-ltr/vrl-ltr/vrl-ltr+Pass 1253: vrl-rtl/vrl-ltr/vrl-ltr/vrl-rtl+Pass 1254: vrl-rtl/vrl-ltr/vrl-rtl/htb-ltr+Pass 1255: vrl-rtl/vrl-ltr/vrl-rtl/htb-rtl+Pass 1256: vrl-rtl/vrl-ltr/vrl-rtl/vlr-ltr+Pass 1257: vrl-rtl/vrl-ltr/vrl-rtl/vlr-rtl+Pass 1258: vrl-rtl/vrl-ltr/vrl-rtl/vrl-ltr+Pass 1259: vrl-rtl/vrl-ltr/vrl-rtl/vrl-rtl+Pass 1260: vrl-rtl/vrl-rtl/htb-ltr/htb-ltr+Pass 1261: vrl-rtl/vrl-rtl/htb-ltr/htb-rtl+Pass 1262: vrl-rtl/vrl-rtl/htb-ltr/vlr-ltr+Pass 1263: vrl-rtl/vrl-rtl/htb-ltr/vlr-rtl+Pass 1264: vrl-rtl/vrl-rtl/htb-ltr/vrl-ltr+Pass 1265: vrl-rtl/vrl-rtl/htb-ltr/vrl-rtl+Pass 1266: vrl-rtl/vrl-rtl/htb-rtl/htb-ltr+Pass 1267: vrl-rtl/vrl-rtl/htb-rtl/htb-rtl+Pass 1268: vrl-rtl/vrl-rtl/htb-rtl/vlr-ltr+Pass 1269: vrl-rtl/vrl-rtl/htb-rtl/vlr-rtl+Pass 1270: vrl-rtl/vrl-rtl/htb-rtl/vrl-ltr+Pass 1271: vrl-rtl/vrl-rtl/htb-rtl/vrl-rtl+Pass 1272: vrl-rtl/vrl-rtl/vlr-ltr/htb-ltr+Pass 1273: vrl-rtl/vrl-rtl/vlr-ltr/htb-rtl+Pass 1274: vrl-rtl/vrl-rtl/vlr-ltr/vlr-ltr+Pass 1275: vrl-rtl/vrl-rtl/vlr-ltr/vlr-rtl+Pass 1276: vrl-rtl/vrl-rtl/vlr-ltr/vrl-ltr+Pass 1277: vrl-rtl/vrl-rtl/vlr-ltr/vrl-rtl+Pass 1278: vrl-rtl/vrl-rtl/vlr-rtl/htb-ltr+Pass 1279: vrl-rtl/vrl-rtl/vlr-rtl/htb-rtl+Pass 1280: vrl-rtl/vrl-rtl/vlr-rtl/vlr-ltr+Pass 1281: vrl-rtl/vrl-rtl/vlr-rtl/vlr-rtl+Pass 1282: vrl-rtl/vrl-rtl/vlr-rtl/vrl-ltr+Pass 1283: vrl-rtl/vrl-rtl/vlr-rtl/vrl-rtl+Pass 1284: vrl-rtl/vrl-rtl/vrl-ltr/htb-ltr+Pass 1285: vrl-rtl/vrl-rtl/vrl-ltr/htb-rtl+Pass 1286: vrl-rtl/vrl-rtl/vrl-ltr/vlr-ltr+Pass 1287: vrl-rtl/vrl-rtl/vrl-ltr/vlr-rtl+Pass 1288: vrl-rtl/vrl-rtl/vrl-ltr/vrl-ltr+Pass 1289: vrl-rtl/vrl-rtl/vrl-ltr/vrl-rtl+Pass 1290: vrl-rtl/vrl-rtl/vrl-rtl/htb-ltr+Pass 1291: vrl-rtl/vrl-rtl/vrl-rtl/htb-rtl+Pass 1292: vrl-rtl/vrl-rtl/vrl-rtl/vlr-ltr+Pass 1293: vrl-rtl/vrl-rtl/vrl-rtl/vlr-rtl+Pass 1294: vrl-rtl/vrl-rtl/vrl-rtl/vrl-ltr+Pass 1295: vrl-rtl/vrl-rtl/vrl-rtl/vrl-rtl\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-conditional/container-queries/scroll-state/scroll-state-scrollable-wm.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-conditional/container-queries/scroll-state/scroll-state-scrollable-wm.txtindex 6ab8f7fa22e..2d9c3870d3c 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-conditional/container-queries/scroll-state/scroll-state-scrollable-wm.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-conditional/container-queries/scroll-state/scroll-state-scrollable-wm.txt@@ -2,17 +2,16 @@ Harness status: OKFound 12 tests-8 Pass-4 Fail+12 PassPass scroll-state(scrollable) horizontal scrollbar horizontal-tb/ltrPass scroll-state(scrollable) horizontal scrollbar horizontal-tb/rtlPass scroll-state(scrollable) horizontal scrollbar vertical-lr/ltr-Fail scroll-state(scrollable) horizontal scrollbar vertical-lr/rtl-Fail scroll-state(scrollable) horizontal scrollbar vertical-rl/ltr+Pass scroll-state(scrollable) horizontal scrollbar vertical-lr/rtl+Pass scroll-state(scrollable) horizontal scrollbar vertical-rl/ltrPass scroll-state(scrollable) horizontal scrollbar vertical-rl/rtlPass scroll-state(scrollable) vertical scrollbar horizontal-tb/ltrPass scroll-state(scrollable) vertical scrollbar horizontal-tb/rtlPass scroll-state(scrollable) vertical scrollbar vertical-lr/ltr-Fail scroll-state(scrollable) vertical scrollbar vertical-lr/rtl+Pass scroll-state(scrollable) vertical scrollbar vertical-lr/rtlPass scroll-state(scrollable) vertical scrollbar vertical-rl/ltr-Fail scroll-state(scrollable) vertical scrollbar vertical-rl/rtl\ No newline at end of file+Pass scroll-state(scrollable) vertical scrollbar vertical-rl/rtl\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-conditional/container-queries/scroll-state/scroll-state-scrolled-wm.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-conditional/container-queries/scroll-state/scroll-state-scrolled-wm.txtindex f658fb43c29..513d036d6ca 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-conditional/container-queries/scroll-state/scroll-state-scrolled-wm.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-conditional/container-queries/scroll-state/scroll-state-scrolled-wm.txt@@ -2,17 +2,16 @@ Harness status: OKFound 12 tests-8 Pass-4 Fail+12 PassPass scroll-state(scrolled) horizontal scrollbar horizontal-tb/ltrPass scroll-state(scrolled) horizontal scrollbar horizontal-tb/rtlPass scroll-state(scrolled) horizontal scrollbar vertical-lr/ltr-Fail scroll-state(scrolled) horizontal scrollbar vertical-lr/rtl-Fail scroll-state(scrolled) horizontal scrollbar vertical-rl/ltr+Pass scroll-state(scrolled) horizontal scrollbar vertical-lr/rtl+Pass scroll-state(scrolled) horizontal scrollbar vertical-rl/ltrPass scroll-state(scrolled) horizontal scrollbar vertical-rl/rtlPass scroll-state(scrolled) vertical scrollbar horizontal-tb/ltrPass scroll-state(scrolled) vertical scrollbar horizontal-tb/rtlPass scroll-state(scrolled) vertical scrollbar vertical-lr/ltr-Fail scroll-state(scrolled) vertical scrollbar vertical-lr/rtl+Pass scroll-state(scrolled) vertical scrollbar vertical-lr/rtlPass scroll-state(scrolled) vertical scrollbar vertical-rl/ltr-Fail scroll-state(scrolled) vertical scrollbar vertical-rl/rtl\ No newline at end of file+Pass scroll-state(scrolled) vertical scrollbar vertical-rl/rtl\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-vertWM-001.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-vertWM-001.txtindex 45d31dadc1b..4d0a7c44c53 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-vertWM-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-vertWM-001.txt@@ -2,18 +2,18 @@ Harness status: OKFound 28 tests-18 Pass-10 Fail+26 Pass+2 FailPass .container > div 1Pass .container > div 2Pass .container > div 3Pass .container > div 4Fail .container > div 5Pass .container > div 6-Fail .container > div 7-Fail .container > div 8-Fail .container > div 9-Fail .container > div 10+Pass .container > div 7+Pass .container > div 8+Pass .container > div 9+Pass .container > div 10Pass .container > div 11Pass .container > div 12Pass .container > div 13@@ -24,10 +24,10 @@ Pass .container > div 17Pass .container > div 18Fail .container > div 19Pass .container > div 20-Fail .container > div 21-Fail .container > div 22-Fail .container > div 23-Fail .container > div 24+Pass .container > div 21+Pass .container > div 22+Pass .container > div 23+Pass .container > div 24Pass .container > div 25Pass .container > div 26Pass .container > div 27diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-vertWM-002.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-vertWM-002.txtindex 44d236edb57..30961f0438e 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-vertWM-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-vertWM-002.txt@@ -10,10 +10,10 @@ Pass .container > div 3Pass .container > div 4Fail .container > div 5Pass .container > div 6-Fail .container > div 7-Fail .container > div 8-Pass .container > div 9-Pass .container > div 10+Pass .container > div 7+Pass .container > div 8+Fail .container > div 9+Fail .container > div 10Pass .container > div 11Pass .container > div 12Pass .container > div 13@@ -24,10 +24,10 @@ Pass .container > div 17Pass .container > div 18Fail .container > div 19Pass .container > div 20-Fail .container > div 21-Fail .container > div 22-Pass .container > div 23-Pass .container > div 24+Pass .container > div 21+Pass .container > div 22+Fail .container > div 23+Fail .container > div 24Pass .container > div 25Pass .container > div 26Pass .container > div 27diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-vertWM-002.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-vertWM-002.txtindex 6d9560b04a9..89682674c64 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-vertWM-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-vertWM-002.txt@@ -10,21 +10,21 @@ Pass .container > div 3Pass .container > div 4Pass .container > div 5Pass .container > div 6-Fail .container > div 7-Fail .container > div 8+Pass .container > div 7+Pass .container > div 8Pass .container > div 9Pass .container > div 10-Pass .container > div 11-Pass .container > div 12+Fail .container > div 11+Fail .container > div 12Pass .container > div 13Pass .container > div 14Pass .container > div 15Pass .container > div 16Pass .container > div 17Pass .container > div 18-Fail .container > div 19-Fail .container > div 20+Pass .container > div 19+Pass .container > div 20Pass .container > div 21Pass .container > div 22-Pass .container > div 23-Pass .container > div 24\ No newline at end of file+Fail .container > div 23+Fail .container > div 24\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-lr-column-horz-flexbox-item.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-lr-column-horz-flexbox-item.txtindex 519fc6aa373..580b4938d5f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-lr-column-horz-flexbox-item.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-lr-column-horz-flexbox-item.txt@@ -2,6 +2,7 @@ Harness status: OKFound 2 tests-2 Pass+1 Pass+1 FailPass #target > div 1-Pass #target > div 2\ No newline at end of file+Fail #target > div 2\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-lr-column-horz-grid-item.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-lr-column-horz-grid-item.txtindex 519fc6aa373..580b4938d5f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-lr-column-horz-grid-item.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-lr-column-horz-grid-item.txt@@ -2,6 +2,7 @@ Harness status: OKFound 2 tests-2 Pass+1 Pass+1 FailPass #target > div 1-Pass #target > div 2\ No newline at end of file+Fail #target > div 2\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-lr-column-horz-items.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-lr-column-horz-items.txtindex 519fc6aa373..580b4938d5f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-lr-column-horz-items.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-lr-column-horz-items.txt@@ -2,6 +2,7 @@ Harness status: OKFound 2 tests-2 Pass+1 Pass+1 FailPass #target > div 1-Pass #target > div 2\ No newline at end of file+Fail #target > div 2\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-lr-column-horz-table-item.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-lr-column-horz-table-item.txtindex ae9aee5207f..c2f6cd214b1 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-lr-column-horz-table-item.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-lr-column-horz-table-item.txt@@ -2,5 +2,5 @@ Harness status: OKFound 1 tests-1 Pass-Pass #target > div 1\ No newline at end of file+1 Fail+Fail #target > div 1\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-rl-column-horz-flexbox-item.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-rl-column-horz-flexbox-item.txtindex 519fc6aa373..580b4938d5f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-rl-column-horz-flexbox-item.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-rl-column-horz-flexbox-item.txt@@ -2,6 +2,7 @@ Harness status: OKFound 2 tests-2 Pass+1 Pass+1 FailPass #target > div 1-Pass #target > div 2\ No newline at end of file+Fail #target > div 2\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-rl-column-horz-grid-item.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-rl-column-horz-grid-item.txtindex 519fc6aa373..580b4938d5f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-rl-column-horz-grid-item.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-rl-column-horz-grid-item.txt@@ -2,6 +2,7 @@ Harness status: OKFound 2 tests-2 Pass+1 Pass+1 FailPass #target > div 1-Pass #target > div 2\ No newline at end of file+Fail #target > div 2\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-rl-column-horz-items.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-rl-column-horz-items.txtindex 519fc6aa373..580b4938d5f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-rl-column-horz-items.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-rl-column-horz-items.txt@@ -2,6 +2,7 @@ Harness status: OKFound 2 tests-2 Pass+1 Pass+1 FailPass #target > div 1-Pass #target > div 2\ No newline at end of file+Fail #target > div 2\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-rl-column-horz-table-item.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-rl-column-horz-table-item.txtindex ae9aee5207f..c2f6cd214b1 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-rl-column-horz-table-item.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/align-items-baseline-vert-rl-column-horz-table-item.txt@@ -2,5 +2,5 @@ Harness status: OKFound 1 tests-1 Pass-Pass #target > div 1\ No newline at end of file+1 Fail+Fail #target > div 1\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/alignment/flex-align-baseline-003.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/alignment/flex-align-baseline-003.txtindex f0edcff8c91..cd98ace24a7 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/alignment/flex-align-baseline-003.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/alignment/flex-align-baseline-003.txt@@ -4,9 +4,9 @@ Found 6 tests1 Pass5 Fail-Fail #target > div 1+Pass #target > div 1Fail #target > div 2Fail #target > div 3-Pass #target > div 4+Fail #target > div 4Fail #target > div 5Fail #target > div 6\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/alignment/flex-align-baseline-flex-002.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/alignment/flex-align-baseline-flex-002.txtindex 0f6f75ec0d1..f485aa9de8d 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/alignment/flex-align-baseline-flex-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/alignment/flex-align-baseline-flex-002.txt@@ -2,8 +2,8 @@ Harness status: OKFound 48 tests-20 Pass-28 Fail+24 Pass+24 FailFail .target > * 1Pass .target > * 2Fail .target > * 3@@ -31,11 +31,11 @@ Pass .target > * 24Fail .target > * 25Pass .target > * 26Fail .target > * 27-Fail .target > * 28+Pass .target > * 28Fail .target > * 29Pass .target > * 30Fail .target > * 31-Fail .target > * 32+Pass .target > * 32Fail .target > * 33Pass .target > * 34Fail .target > * 35@@ -47,8 +47,8 @@ Pass .target > * 40Fail .target > * 41Pass .target > * 42Fail .target > * 43-Fail .target > * 44+Pass .target > * 44Fail .target > * 45Pass .target > * 46Fail .target > * 47-Fail .target > * 48\ No newline at end of file+Pass .target > * 48\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/alignment/flex-align-baseline-overflow-002.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/alignment/flex-align-baseline-overflow-002.txtindex 4091b81dbd6..b82e0cbc7a6 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/alignment/flex-align-baseline-overflow-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/alignment/flex-align-baseline-overflow-002.txt@@ -2,17 +2,17 @@ Harness status: OKFound 12 tests-4 Pass-8 Fail+7 Pass+5 FailFail .target > * 1Pass .target > * 2Fail .target > * 3-Fail .target > * 4-Fail .target > * 5+Pass .target > * 4+Pass .target > * 5Pass .target > * 6Fail .target > * 7-Fail .target > * 8-Pass .target > * 9+Pass .target > * 8+Fail .target > * 9Fail .target > * 10Pass .target > * 11-Fail .target > * 12\ No newline at end of file+Pass .target > * 12\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/flex-basis-009.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/flex-basis-009.txtindex 78055a95106..37233625c81 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/flex-basis-009.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/flex-basis-009.txt@@ -2,5 +2,5 @@ Harness status: OKFound 1 tests-1 Fail-Fail #flexbox 1\ No newline at end of file+1 Pass+Pass #flexbox 1\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/flex-item-compressible-002.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/flex-item-compressible-002.txtindex 299a6591560..fd4baefadf0 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/flex-item-compressible-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/flex-item-compressible-002.txt@@ -2,20 +2,20 @@ Harness status: OKFound 15 tests-4 Pass-11 Fail+13 Pass+2 FailPass .flexbox 1Pass .flexbox 2-Fail .flexbox 3-Fail .flexbox 4-Fail .flexbox 5+Pass .flexbox 3+Pass .flexbox 4+Pass .flexbox 5Pass .flexbox 6Pass .flexbox 7-Fail .flexbox 8-Fail .flexbox 9-Fail .flexbox 10+Pass .flexbox 8+Pass .flexbox 9+Pass .flexbox 10Fail .flexbox 11Fail .flexbox 12-Fail .flexbox 13-Fail .flexbox 14-Fail .flexbox 15\ No newline at end of file+Pass .flexbox 13+Pass .flexbox 14+Pass .flexbox 15\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/flex-one-sets-flex-basis-to-zero-px.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/flex-one-sets-flex-basis-to-zero-px.txtindex f86b1c6f13f..64a457567c7 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/flex-one-sets-flex-basis-to-zero-px.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/flex-one-sets-flex-basis-to-zero-px.txt@@ -2,8 +2,8 @@ Harness status: OKFound 18 tests-10 Pass-8 Fail+14 Pass+4 FailPass .flexbox 1Pass .flexbox 2Pass .flexbox 3@@ -18,7 +18,7 @@ Fail .flexbox 11Pass .flexbox 12Fail .flexbox 13Fail .flexbox 14-Fail .flexbox 15-Fail .flexbox 16-Fail .flexbox 17-Fail .flexbox 18\ No newline at end of file+Pass .flexbox 15+Pass .flexbox 16+Pass .flexbox 17+Pass .flexbox 18\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/flexbox-justify-content-wmvert-002.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/flexbox-justify-content-wmvert-002.txtindex cbc46e1c355..71e8e4e07e1 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/flexbox-justify-content-wmvert-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/flexbox-justify-content-wmvert-002.txt@@ -4,7 +4,7 @@ Found 4 tests2 Pass2 Fail-Pass .flexitem 1+Fail .flexitem 1Pass .flexitem 2-Fail .flexitem 3+Pass .flexitem 3Fail .flexitem 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-002.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-002.txtindex 14005b4a37c..cd98ace24a7 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-002.txt@@ -2,8 +2,9 @@ Harness status: OKFound 6 tests-6 Fail-Fail #target > div 1+1 Pass+5 Fail+Pass #target > div 1Fail #target > div 2Fail #target > div 3Fail #target > div 4diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-flex-002.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-flex-002.txtindex 6f5fc9d3a18..b3ea3518349 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-flex-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-flex-002.txt@@ -2,53 +2,53 @@ Harness status: OKFound 48 tests-8 Pass-40 Fail+25 Pass+23 FailFail .target > * 1-Fail .target > * 2+Pass .target > * 2Fail .target > * 3Pass .target > * 4Fail .target > * 5-Fail .target > * 6+Pass .target > * 6Fail .target > * 7Pass .target > * 8Fail .target > * 9-Fail .target > * 10+Pass .target > * 10Fail .target > * 11Pass .target > * 12Fail .target > * 13-Fail .target > * 14+Pass .target > * 14Fail .target > * 15Pass .target > * 16Fail .target > * 17-Fail .target > * 18+Pass .target > * 18Fail .target > * 19Pass .target > * 20Fail .target > * 21-Fail .target > * 22+Pass .target > * 22Fail .target > * 23Pass .target > * 24-Fail .target > * 25-Fail .target > * 26+Pass .target > * 25+Pass .target > * 26Fail .target > * 27-Fail .target > * 28+Pass .target > * 28Fail .target > * 29-Fail .target > * 30+Pass .target > * 30Fail .target > * 31-Fail .target > * 32+Pass .target > * 32Fail .target > * 33-Fail .target > * 34+Pass .target > * 34Fail .target > * 35Pass .target > * 36Fail .target > * 37-Fail .target > * 38+Pass .target > * 38Fail .target > * 39Pass .target > * 40Fail .target > * 41-Fail .target > * 42+Pass .target > * 42Fail .target > * 43-Fail .target > * 44+Pass .target > * 44Fail .target > * 45-Fail .target > * 46+Pass .target > * 46Fail .target > * 47-Fail .target > * 48\ No newline at end of file+Pass .target > * 48\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-flex-004.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-flex-004.txtindex 06693beaeca..6ad46da7e96 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-flex-004.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-flex-004.txt@@ -2,16 +2,16 @@ Harness status: OKFound 16 tests-4 Pass-12 Fail+8 Pass+8 FailFail .target > * 1-Fail .target > * 2+Pass .target > * 2Fail .target > * 3-Fail .target > * 4+Pass .target > * 4Fail .target > * 5-Fail .target > * 6+Pass .target > * 6Fail .target > * 7-Fail .target > * 8+Pass .target > * 8Fail .target > * 9Pass .target > * 10Fail .target > * 11diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-grid-002.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-grid-002.txtindex 71c3878eb8f..064c9122747 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-grid-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-grid-002.txt@@ -2,17 +2,17 @@ Harness status: OKFound 12 tests-3 Pass-9 Fail+7 Pass+5 FailFail .target > * 1-Fail .target > * 2+Pass .target > * 2Fail .target > * 3Pass .target > * 4Fail .target > * 5-Fail .target > * 6+Pass .target > * 6Fail .target > * 7Pass .target > * 8-Fail .target > * 9-Fail .target > * 10+Pass .target > * 9+Pass .target > * 10Fail .target > * 11Pass .target > * 12\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-grid-003.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-grid-003.txtindex 4f9b1d8e983..064c9122747 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-grid-003.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-grid-003.txt@@ -2,8 +2,8 @@ Harness status: OKFound 12 tests-6 Pass-6 Fail+7 Pass+5 FailFail .target > * 1Pass .target > * 2Fail .target > * 3@@ -12,7 +12,7 @@ Fail .target > * 5Pass .target > * 6Fail .target > * 7Pass .target > * 8-Fail .target > * 9+Pass .target > * 9Pass .target > * 10Fail .target > * 11Pass .target > * 12\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-line-clamp-002.tentative.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-line-clamp-002.tentative.txtindex cacea32cd37..4d57525ed66 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-line-clamp-002.tentative.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-line-clamp-002.tentative.txt@@ -2,29 +2,29 @@ Harness status: OKFound 24 tests-6 Pass-18 Fail+12 Pass+12 FailFail .target > * 1-Fail .target > * 2+Pass .target > * 2Fail .target > * 3Pass .target > * 4Fail .target > * 5-Fail .target > * 6+Pass .target > * 6Fail .target > * 7Pass .target > * 8Fail .target > * 9-Fail .target > * 10+Pass .target > * 10Fail .target > * 11Pass .target > * 12Fail .target > * 13-Fail .target > * 14+Pass .target > * 14Fail .target > * 15Pass .target > * 16Fail .target > * 17-Fail .target > * 18+Pass .target > * 18Fail .target > * 19Pass .target > * 20Fail .target > * 21-Fail .target > * 22+Pass .target > * 22Fail .target > * 23Pass .target > * 24\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-multicol-002.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-multicol-002.txtindex 71c3878eb8f..eb4655d2190 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-multicol-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-multicol-002.txt@@ -2,17 +2,17 @@ Harness status: OKFound 12 tests-3 Pass-9 Fail+7 Pass+5 FailFail .target > * 1-Fail .target > * 2+Pass .target > * 2Fail .target > * 3Pass .target > * 4-Fail .target > * 5-Fail .target > * 6+Pass .target > * 5+Pass .target > * 6Fail .target > * 7Pass .target > * 8Fail .target > * 9-Fail .target > * 10+Pass .target > * 10Fail .target > * 11Pass .target > * 12\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-multicol-003.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-multicol-003.txtindex 4f9b1d8e983..eb4655d2190 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-multicol-003.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-multicol-003.txt@@ -2,13 +2,13 @@ Harness status: OKFound 12 tests-6 Pass-6 Fail+7 Pass+5 FailFail .target > * 1Pass .target > * 2Fail .target > * 3Pass .target > * 4-Fail .target > * 5+Pass .target > * 5Pass .target > * 6Fail .target > * 7Pass .target > * 8diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-overflow-002.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-overflow-002.txtindex c509b2efbc0..2c0ba2b1415 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-overflow-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-overflow-002.txt@@ -2,17 +2,17 @@ Harness status: OKFound 12 tests-1 Pass-11 Fail+6 Pass+6 FailFail .target > * 1-Fail .target > * 2+Pass .target > * 2Fail .target > * 3-Fail .target > * 4-Fail .target > * 5+Pass .target > * 4+Pass .target > * 5Fail .target > * 6Fail .target > * 7-Fail .target > * 8+Pass .target > * 8Fail .target > * 9Fail .target > * 10Pass .target > * 11-Fail .target > * 12\ No newline at end of file+Pass .target > * 12\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-overflow-003.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-overflow-003.txtindex 59c74e5d14f..e6bf7401f78 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-overflow-003.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-overflow-003.txt@@ -2,14 +2,14 @@ Harness status: OKFound 12 tests-7 Pass-5 Fail+6 Pass+6 FailFail .target > * 1Pass .target > * 2Fail .target > * 3Pass .target > * 4Pass .target > * 5-Pass .target > * 6+Fail .target > * 6Pass .target > * 7Fail .target > * 8Fail .target > * 9diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-vertical-mixed.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-vertical-mixed.txtindex be8ecd09cdf..1e41cd46655 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-vertical-mixed.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-vertical-mixed.txt@@ -2,16 +2,16 @@ Harness status: OKFound 11 tests-4 Pass-7 Fail+7 Pass+4 FailFail .grid 1-Fail .grid 2-Fail .grid 3+Pass .grid 2+Pass .grid 3Fail .grid 4Pass .grid 5Fail Additional Check 1Pass Additional Check 2Pass Additional Check 3-Fail Additional Check 4+Pass Additional Check 4Fail Additional Check 5Pass Additional Check 6\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-vertical.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-vertical.txtindex d50fc7a9325..a11b341cd92 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-vertical.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-align-baseline-vertical.txt@@ -2,16 +2,16 @@ Harness status: OKFound 11 tests-5 Pass-6 Fail-Fail .grid 1-Fail .grid 2-Fail .grid 3+8 Pass+3 Fail+Pass .grid 1+Pass .grid 2+Pass .grid 3Fail .grid 4Pass .grid 5Fail Additional Check 1Pass Additional Check 2Pass Additional Check 3-Fail Additional Check 4-Pass Additional Check 5+Pass Additional Check 4+Fail Additional Check 5Pass Additional Check 6\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-001.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-001.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-001.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-002.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-002.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-002.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-003.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-003.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-003.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-003.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-004.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-004.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-004.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-004.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-005.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-005.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-005.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-005.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-006.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-006.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-006.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-006.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-007.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-007.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-007.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-007.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-008.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-008.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-008.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-008.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-009.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-009.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-009.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-009.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-010.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-010.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-010.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-010.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-011.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-011.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-011.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-011.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-012.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-012.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-012.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-012.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-013.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-013.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-013.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-013.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-014.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-014.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-014.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-014.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-015.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-015.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-015.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-015.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-016.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-016.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-016.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-016.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-017.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-017.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-017.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-column-axis-alignment-positioned-items-017.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-container-baseline-001.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-container-baseline-001.txtindex f466a608492..13ea2f8211d 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-container-baseline-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-container-baseline-001.txt@@ -2,8 +2,8 @@ Harness status: OKFound 11 tests-3 Pass-8 Fail+7 Pass+4 FailPass .wrapper 1Pass .wrapper 2Pass .wrapper 3@@ -11,7 +11,7 @@ Fail .wrapper 4Fail .wrapper 5Fail .wrapper 6Fail .wrapper 7-Fail .wrapper 8-Fail .wrapper 9-Fail .wrapper 10-Fail .wrapper 11\ No newline at end of file+Pass .wrapper 8+Pass .wrapper 9+Pass .wrapper 10+Pass .wrapper 11\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-content-alignment-second-pass-001.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-content-alignment-second-pass-001.txtindex 17d84546bef..3f02c67dc03 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-content-alignment-second-pass-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-content-alignment-second-pass-001.txt@@ -2,12 +2,12 @@ Harness status: OKFound 8 tests-8 Fail-Fail .grid 1-Fail .grid 2-Fail .grid 3-Fail .grid 4-Fail .grid 5-Fail .grid 6-Fail .grid 7-Fail .grid 8\ No newline at end of file+8 Pass+Pass .grid 1+Pass .grid 2+Pass .grid 3+Pass .grid 4+Pass .grid 5+Pass .grid 6+Pass .grid 7+Pass .grid 8\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-item-auto-margins-alignment-vertical-rl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-item-auto-margins-alignment-vertical-rl.txtindex 1130ce8df8a..3f02c67dc03 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-item-auto-margins-alignment-vertical-rl.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-item-auto-margins-alignment-vertical-rl.txt@@ -2,8 +2,7 @@ Harness status: OKFound 8 tests-7 Pass-1 Fail+8 PassPass .grid 1Pass .grid 2Pass .grid 3@@ -11,4 +10,4 @@ Pass .grid 4Pass .grid 5Pass .grid 6Pass .grid 7-Fail .grid 8\ No newline at end of file+Pass .grid 8\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-001.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-001.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-001.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-002.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-002.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-002.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-003.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-003.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-003.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-003.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-004.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-004.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-004.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-004.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-005.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-005.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-005.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-005.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-006.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-006.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-006.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-006.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-007.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-007.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-007.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-007.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-008.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-008.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-008.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-008.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-009.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-009.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-009.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-009.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-010.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-010.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-010.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-010.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-011.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-011.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-011.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-011.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-012.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-012.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-012.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-012.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-013.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-013.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-013.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-013.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-014.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-014.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-014.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-014.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-015.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-015.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-015.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-015.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-016.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-016.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-016.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-016.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-017.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-017.txtindex 04488aefab5..0016bacd96f 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-017.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-row-axis-alignment-positioned-items-017.txt@@ -2,9 +2,8 @@ Harness status: OKFound 4 tests-2 Pass-2 Fail+4 PassPass .grid 1Pass .grid 2-Fail .grid 3-Fail .grid 4\ No newline at end of file+Pass .grid 3+Pass .grid 4\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-005.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-005.txtindex 5baee83e332..7f955bf00bf 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-005.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-005.txt@@ -2,5 +2,5 @@ Harness status: OKFound 1 tests-1 Fail-Fail .grid 1\ No newline at end of file+1 Pass+Pass .grid 1\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-006.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-006.txtindex 5baee83e332..7f955bf00bf 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-006.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-006.txt@@ -2,5 +2,5 @@ Harness status: OKFound 1 tests-1 Fail-Fail .grid 1\ No newline at end of file+1 Pass+Pass .grid 1\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-007.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-007.txtindex 5baee83e332..7f955bf00bf 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-007.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-007.txt@@ -2,5 +2,5 @@ Harness status: OKFound 1 tests-1 Fail-Fail .grid 1\ No newline at end of file+1 Pass+Pass .grid 1\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-008.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-008.txtindex 5baee83e332..7f955bf00bf 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-008.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-008.txt@@ -2,5 +2,5 @@ Harness status: OKFound 1 tests-1 Fail-Fail .grid 1\ No newline at end of file+1 Pass+Pass .grid 1\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-014.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-014.txtindex 5baee83e332..7f955bf00bf 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-014.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-014.txt@@ -2,5 +2,5 @@ Harness status: OKFound 1 tests-1 Fail-Fail .grid 1\ No newline at end of file+1 Pass+Pass .grid 1\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-015.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-015.txtindex 5baee83e332..7f955bf00bf 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-015.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-015.txt@@ -2,5 +2,5 @@ Harness status: OKFound 1 tests-1 Fail-Fail .grid 1\ No newline at end of file+1 Pass+Pass .grid 1\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-016.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-016.txtindex 5baee83e332..7f955bf00bf 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-016.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/alignment/grid-self-alignment-stretch-016.txt@@ -2,5 +2,5 @@ Harness status: OKFound 1 tests-1 Fail-Fail .grid 1\ No newline at end of file+1 Pass+Pass .grid 1\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-margins-vertical-lr-001.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-margins-vertical-lr-001.txtindex 17d84546bef..6a50350da0d 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-margins-vertical-lr-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-margins-vertical-lr-001.txt@@ -2,12 +2,13 @@ Harness status: OKFound 8 tests-8 Fail-Fail .grid 1-Fail .grid 2-Fail .grid 3+6 Pass+2 Fail+Pass .grid 1+Pass .grid 2+Pass .grid 3Fail .grid 4-Fail .grid 5-Fail .grid 6+Pass .grid 5+Pass .grid 6Fail .grid 7-Fail .grid 8\ No newline at end of file+Pass .grid 8\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-margins-vertical-lr-002.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-margins-vertical-lr-002.txtindex 17d84546bef..6a50350da0d 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-margins-vertical-lr-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-margins-vertical-lr-002.txt@@ -2,12 +2,13 @@ Harness status: OKFound 8 tests-8 Fail-Fail .grid 1-Fail .grid 2-Fail .grid 3+6 Pass+2 Fail+Pass .grid 1+Pass .grid 2+Pass .grid 3Fail .grid 4-Fail .grid 5-Fail .grid 6+Pass .grid 5+Pass .grid 6Fail .grid 7-Fail .grid 8\ No newline at end of file+Pass .grid 8\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-margins-vertical-rl-001.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-margins-vertical-rl-001.txtindex 17d84546bef..6a50350da0d 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-margins-vertical-rl-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-margins-vertical-rl-001.txt@@ -2,12 +2,13 @@ Harness status: OKFound 8 tests-8 Fail-Fail .grid 1-Fail .grid 2-Fail .grid 3+6 Pass+2 Fail+Pass .grid 1+Pass .grid 2+Pass .grid 3Fail .grid 4-Fail .grid 5-Fail .grid 6+Pass .grid 5+Pass .grid 6Fail .grid 7-Fail .grid 8\ No newline at end of file+Pass .grid 8\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-margins-vertical-rl-002.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-margins-vertical-rl-002.txtindex 17d84546bef..6a50350da0d 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-margins-vertical-rl-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-margins-vertical-rl-002.txt@@ -2,12 +2,13 @@ Harness status: OKFound 8 tests-8 Fail-Fail .grid 1-Fail .grid 2-Fail .grid 3+6 Pass+2 Fail+Pass .grid 1+Pass .grid 2+Pass .grid 3Fail .grid 4-Fail .grid 5-Fail .grid 6+Pass .grid 5+Pass .grid 6Fail .grid 7-Fail .grid 8\ No newline at end of file+Pass .grid 8\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-paddings-vertical-lr-001.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-paddings-vertical-lr-001.txtindex 17d84546bef..3f02c67dc03 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-paddings-vertical-lr-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-paddings-vertical-lr-001.txt@@ -2,12 +2,12 @@ Harness status: OKFound 8 tests-8 Fail-Fail .grid 1-Fail .grid 2-Fail .grid 3-Fail .grid 4-Fail .grid 5-Fail .grid 6-Fail .grid 7-Fail .grid 8\ No newline at end of file+8 Pass+Pass .grid 1+Pass .grid 2+Pass .grid 3+Pass .grid 4+Pass .grid 5+Pass .grid 6+Pass .grid 7+Pass .grid 8\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-paddings-vertical-lr-002.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-paddings-vertical-lr-002.txtindex 17d84546bef..3f02c67dc03 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-paddings-vertical-lr-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-paddings-vertical-lr-002.txt@@ -2,12 +2,12 @@ Harness status: OKFound 8 tests-8 Fail-Fail .grid 1-Fail .grid 2-Fail .grid 3-Fail .grid 4-Fail .grid 5-Fail .grid 6-Fail .grid 7-Fail .grid 8\ No newline at end of file+8 Pass+Pass .grid 1+Pass .grid 2+Pass .grid 3+Pass .grid 4+Pass .grid 5+Pass .grid 6+Pass .grid 7+Pass .grid 8\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-paddings-vertical-rl-001.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-paddings-vertical-rl-001.txtindex 17d84546bef..3f02c67dc03 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-paddings-vertical-rl-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-paddings-vertical-rl-001.txt@@ -2,12 +2,12 @@ Harness status: OKFound 8 tests-8 Fail-Fail .grid 1-Fail .grid 2-Fail .grid 3-Fail .grid 4-Fail .grid 5-Fail .grid 6-Fail .grid 7-Fail .grid 8\ No newline at end of file+8 Pass+Pass .grid 1+Pass .grid 2+Pass .grid 3+Pass .grid 4+Pass .grid 5+Pass .grid 6+Pass .grid 7+Pass .grid 8\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-paddings-vertical-rl-002.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-paddings-vertical-rl-002.txtindex 17d84546bef..3f02c67dc03 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-paddings-vertical-rl-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-items/grid-items-percentage-paddings-vertical-rl-002.txt@@ -2,12 +2,12 @@ Harness status: OKFound 8 tests-8 Fail-Fail .grid 1-Fail .grid 2-Fail .grid 3-Fail .grid 4-Fail .grid 5-Fail .grid 6-Fail .grid 7-Fail .grid 8\ No newline at end of file+8 Pass+Pass .grid 1+Pass .grid 2+Pass .grid 3+Pass .grid 4+Pass .grid 5+Pass .grid 6+Pass .grid 7+Pass .grid 8\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-model/grid-gutters-and-tracks-001.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-model/grid-gutters-and-tracks-001.txtindex 4cef4314d4c..dddef28aeb0 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-model/grid-gutters-and-tracks-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/grid-model/grid-gutters-and-tracks-001.txt@@ -2,8 +2,7 @@ Harness status: OKFound 17 tests-16 Pass-1 Fail+17 PassPass .grid 1Pass .grid 2Pass .grid 3@@ -20,4 +19,4 @@ Pass .grid 13Pass .grid 14Pass .grid 15Pass .grid 16-Fail .grid 17\ No newline at end of file+Pass .grid 17\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/layout-algorithm/baseline-alignment-affects-intrinsic-size-005.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/layout-algorithm/baseline-alignment-affects-intrinsic-size-005.txtindex 18e39ae74cd..02fad60ffc4 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/layout-algorithm/baseline-alignment-affects-intrinsic-size-005.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/layout-algorithm/baseline-alignment-affects-intrinsic-size-005.txt@@ -2,29 +2,28 @@ Harness status: OKFound 24 tests-12 Pass-12 Fail-Pass #grid1-auto-auto 1+24 Fail+Fail #grid1-auto-auto 1Fail #grid2-auto-auto 2-Pass #grid1-auto-min-content 3+Fail #grid1-auto-min-content 3Fail #grid2-auto-min-content 4-Pass #grid1-auto-max-content 5+Fail #grid1-auto-max-content 5Fail #grid2-auto-max-content 6-Pass #grid1-min-content-auto 7+Fail #grid1-min-content-auto 7Fail #grid2-min-content-auto 8-Pass #grid1-min-content-min-content 9+Fail #grid1-min-content-min-content 9Fail #grid2-min-content-min-content 10-Pass #grid1-min-content-max-content 11+Fail #grid1-min-content-max-content 11Fail #grid2-min-content-max-content 12-Pass #grid1-max-content-auto 13+Fail #grid1-max-content-auto 13Fail #grid2-max-content-auto 14-Pass #grid1-max-content-min-content 15+Fail #grid1-max-content-min-content 15Fail #grid2-max-content-min-content 16-Pass #grid1-max-content-max-content 17+Fail #grid1-max-content-max-content 17Fail #grid2-max-content-max-content 18-Pass #grid1-0px-auto 19+Fail #grid1-0px-auto 19Fail #grid2-0px-auto 20-Pass #grid1-0px-min-content 21+Fail #grid1-0px-min-content 21Fail #grid2-0px-min-content 22-Pass #grid1-0px-max-content 23+Fail #grid1-0px-max-content 23Fail #grid2-0px-max-content 24\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/layout-algorithm/baseline-alignment-affects-intrinsic-size-006.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/layout-algorithm/baseline-alignment-affects-intrinsic-size-006.txtindex 18e39ae74cd..02fad60ffc4 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/layout-algorithm/baseline-alignment-affects-intrinsic-size-006.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/layout-algorithm/baseline-alignment-affects-intrinsic-size-006.txt@@ -2,29 +2,28 @@ Harness status: OKFound 24 tests-12 Pass-12 Fail-Pass #grid1-auto-auto 1+24 Fail+Fail #grid1-auto-auto 1Fail #grid2-auto-auto 2-Pass #grid1-auto-min-content 3+Fail #grid1-auto-min-content 3Fail #grid2-auto-min-content 4-Pass #grid1-auto-max-content 5+Fail #grid1-auto-max-content 5Fail #grid2-auto-max-content 6-Pass #grid1-min-content-auto 7+Fail #grid1-min-content-auto 7Fail #grid2-min-content-auto 8-Pass #grid1-min-content-min-content 9+Fail #grid1-min-content-min-content 9Fail #grid2-min-content-min-content 10-Pass #grid1-min-content-max-content 11+Fail #grid1-min-content-max-content 11Fail #grid2-min-content-max-content 12-Pass #grid1-max-content-auto 13+Fail #grid1-max-content-auto 13Fail #grid2-max-content-auto 14-Pass #grid1-max-content-min-content 15+Fail #grid1-max-content-min-content 15Fail #grid2-max-content-min-content 16-Pass #grid1-max-content-max-content 17+Fail #grid1-max-content-max-content 17Fail #grid2-max-content-max-content 18-Pass #grid1-0px-auto 19+Fail #grid1-0px-auto 19Fail #grid2-0px-auto 20-Pass #grid1-0px-min-content 21+Fail #grid1-0px-min-content 21Fail #grid2-0px-min-content 22-Pass #grid1-0px-max-content 23+Fail #grid1-0px-max-content 23Fail #grid2-0px-max-content 24\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/subgrid/subgrid-baseline-006.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/subgrid/subgrid-baseline-006.txtindex 2340c3c2b1a..6b903a927d2 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/subgrid/subgrid-baseline-006.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/subgrid/subgrid-baseline-006.txt@@ -2,8 +2,9 @@ Harness status: OKFound 12 tests-12 Fail-Fail .item 1+1 Pass+11 Fail+Pass .item 1Fail .item 2Fail .item 3Fail .item 4diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-sizing/stretch/block-height-008.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-sizing/stretch/block-height-008.txtindex 6db0f8c3e11..3a99e6a9f55 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-sizing/stretch/block-height-008.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-sizing/stretch/block-height-008.txt@@ -2,164 +2,164 @@ Harness status: OKFound 160 tests-160 Fail-Fail .child 1-Fail .child 2-Fail .child 3-Fail .child 4-Fail .child 5-Fail .child 6-Fail .child 7-Fail .child 8-Fail .child 9-Fail .child 10-Fail .child 11-Fail .child 12-Fail .child 13-Fail .child 14-Fail .child 15-Fail .child 16-Fail .child 17-Fail .child 18-Fail .child 19-Fail .child 20-Fail .child 21-Fail .child 22-Fail .child 23-Fail .child 24-Fail .child 25-Fail .child 26-Fail .child 27-Fail .child 28-Fail .child 29-Fail .child 30-Fail .child 31-Fail .child 32-Fail .child 33-Fail .child 34-Fail .child 35-Fail .child 36-Fail .child 37-Fail .child 38-Fail .child 39-Fail .child 40-Fail .child 41-Fail .child 42-Fail .child 43-Fail .child 44-Fail .child 45-Fail .child 46-Fail .child 47-Fail .child 48-Fail .child 49-Fail .child 50-Fail .child 51-Fail .child 52-Fail .child 53-Fail .child 54-Fail .child 55-Fail .child 56-Fail .child 57-Fail .child 58-Fail .child 59-Fail .child 60-Fail .child 61-Fail .child 62-Fail .child 63-Fail .child 64-Fail .child 65-Fail .child 66-Fail .child 67-Fail .child 68-Fail .child 69-Fail .child 70-Fail .child 71-Fail .child 72-Fail .child 73-Fail .child 74-Fail .child 75-Fail .child 76-Fail .child 77-Fail .child 78-Fail .child 79-Fail .child 80-Fail .child 81-Fail .child 82-Fail .child 83-Fail .child 84-Fail .child 85-Fail .child 86-Fail .child 87-Fail .child 88-Fail .child 89-Fail .child 90-Fail .child 91-Fail .child 92-Fail .child 93-Fail .child 94-Fail .child 95-Fail .child 96-Fail .child 97-Fail .child 98-Fail .child 99-Fail .child 100-Fail .child 101-Fail .child 102-Fail .child 103-Fail .child 104-Fail .child 105-Fail .child 106-Fail .child 107-Fail .child 108-Fail .child 109-Fail .child 110-Fail .child 111-Fail .child 112-Fail .child 113-Fail .child 114-Fail .child 115-Fail .child 116-Fail .child 117-Fail .child 118-Fail .child 119-Fail .child 120-Fail .child 121-Fail .child 122-Fail .child 123-Fail .child 124-Fail .child 125-Fail .child 126-Fail .child 127-Fail .child 128-Fail .child 129-Fail .child 130-Fail .child 131-Fail .child 132-Fail .child 133-Fail .child 134-Fail .child 135-Fail .child 136-Fail .child 137-Fail .child 138-Fail .child 139-Fail .child 140-Fail .child 141-Fail .child 142-Fail .child 143-Fail .child 144-Fail .child 145-Fail .child 146-Fail .child 147-Fail .child 148-Fail .child 149-Fail .child 150-Fail .child 151-Fail .child 152-Fail .child 153-Fail .child 154-Fail .child 155-Fail .child 156-Fail .child 157-Fail .child 158-Fail .child 159-Fail .child 160\ No newline at end of file+160 Pass+Pass .child 1+Pass .child 2+Pass .child 3+Pass .child 4+Pass .child 5+Pass .child 6+Pass .child 7+Pass .child 8+Pass .child 9+Pass .child 10+Pass .child 11+Pass .child 12+Pass .child 13+Pass .child 14+Pass .child 15+Pass .child 16+Pass .child 17+Pass .child 18+Pass .child 19+Pass .child 20+Pass .child 21+Pass .child 22+Pass .child 23+Pass .child 24+Pass .child 25+Pass .child 26+Pass .child 27+Pass .child 28+Pass .child 29+Pass .child 30+Pass .child 31+Pass .child 32+Pass .child 33+Pass .child 34+Pass .child 35+Pass .child 36+Pass .child 37+Pass .child 38+Pass .child 39+Pass .child 40+Pass .child 41+Pass .child 42+Pass .child 43+Pass .child 44+Pass .child 45+Pass .child 46+Pass .child 47+Pass .child 48+Pass .child 49+Pass .child 50+Pass .child 51+Pass .child 52+Pass .child 53+Pass .child 54+Pass .child 55+Pass .child 56+Pass .child 57+Pass .child 58+Pass .child 59+Pass .child 60+Pass .child 61+Pass .child 62+Pass .child 63+Pass .child 64+Pass .child 65+Pass .child 66+Pass .child 67+Pass .child 68+Pass .child 69+Pass .child 70+Pass .child 71+Pass .child 72+Pass .child 73+Pass .child 74+Pass .child 75+Pass .child 76+Pass .child 77+Pass .child 78+Pass .child 79+Pass .child 80+Pass .child 81+Pass .child 82+Pass .child 83+Pass .child 84+Pass .child 85+Pass .child 86+Pass .child 87+Pass .child 88+Pass .child 89+Pass .child 90+Pass .child 91+Pass .child 92+Pass .child 93+Pass .child 94+Pass .child 95+Pass .child 96+Pass .child 97+Pass .child 98+Pass .child 99+Pass .child 100+Pass .child 101+Pass .child 102+Pass .child 103+Pass .child 104+Pass .child 105+Pass .child 106+Pass .child 107+Pass .child 108+Pass .child 109+Pass .child 110+Pass .child 111+Pass .child 112+Pass .child 113+Pass .child 114+Pass .child 115+Pass .child 116+Pass .child 117+Pass .child 118+Pass .child 119+Pass .child 120+Pass .child 121+Pass .child 122+Pass .child 123+Pass .child 124+Pass .child 125+Pass .child 126+Pass .child 127+Pass .child 128+Pass .child 129+Pass .child 130+Pass .child 131+Pass .child 132+Pass .child 133+Pass .child 134+Pass .child 135+Pass .child 136+Pass .child 137+Pass .child 138+Pass .child 139+Pass .child 140+Pass .child 141+Pass .child 142+Pass .child 143+Pass .child 144+Pass .child 145+Pass .child 146+Pass .child 147+Pass .child 148+Pass .child 149+Pass .child 150+Pass .child 151+Pass .child 152+Pass .child 153+Pass .child 154+Pass .child 155+Pass .child 156+Pass .child 157+Pass .child 158+Pass .child 159+Pass .child 160\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001.txtindex 4f7e457de8a..5400572b508 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001.txt@@ -2,29 +2,28 @@ Harness status: OKFound 24 tests-18 Pass-6 Fail+24 PassPass 1: Shrink-to-fit inline-block with a child of orthogonal blockPass 2: Shrink-to-fit inline-block with a child of orthogonal inlinePass 3: Shrink-to-fit inline-block with a child of orthogonal block with borders-Fail 4: Shrink-to-fit inline-block with a child of orthogonal inline with borders+Pass 4: Shrink-to-fit inline-block with a child of orthogonal inline with bordersPass 5: Shrink-to-fit inline-block with a child of orthogonal block in inline-blockPass 6: Shrink-to-fit inline-block with a child of orthogonal inline in inline-blockPass 7: Shrink-to-fit inline-block with a child of orthogonal block with borders in inline-block-Fail 8: Shrink-to-fit inline-block with a child of orthogonal inline with borders in inline-block+Pass 8: Shrink-to-fit inline-block with a child of orthogonal inline with borders in inline-blockPass 9: Shrink-to-fit float with a child of orthogonal blockPass 10: Shrink-to-fit float with a child of orthogonal inlinePass 11: Shrink-to-fit float with a child of orthogonal block with borders-Fail 12: Shrink-to-fit float with a child of orthogonal inline with borders+Pass 12: Shrink-to-fit float with a child of orthogonal inline with bordersPass 13: Shrink-to-fit float with a child of orthogonal block in inline-blockPass 14: Shrink-to-fit float with a child of orthogonal inline in inline-blockPass 15: Shrink-to-fit float with a child of orthogonal block with borders in inline-block-Fail 16: Shrink-to-fit float with a child of orthogonal inline with borders in inline-block+Pass 16: Shrink-to-fit float with a child of orthogonal inline with borders in inline-blockPass 17: Shrink-to-fit table-cell with a child of orthogonal blockPass 18: Shrink-to-fit table-cell with a child of orthogonal inlinePass 19: Shrink-to-fit table-cell with a child of orthogonal block with borders-Fail 20: Shrink-to-fit table-cell with a child of orthogonal inline with borders+Pass 20: Shrink-to-fit table-cell with a child of orthogonal inline with bordersPass 21: Shrink-to-fit table-cell with a child of orthogonal block in inline-blockPass 22: Shrink-to-fit table-cell with a child of orthogonal inline in inline-blockPass 23: Shrink-to-fit table-cell with a child of orthogonal block with borders in inline-block-Fail 24: Shrink-to-fit table-cell with a child of orthogonal inline with borders in inline-block\ No newline at end of file+Pass 24: Shrink-to-fit table-cell with a child of orthogonal inline with borders in inline-block\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001d.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001d.txtindex 4278fb3221e..c3a1d6be60e 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001d.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001d.txt@@ -2,5 +2,5 @@ Harness status: OKFound 1 tests-1 Fail-Fail 4: Shrink-to-fit inline-block with a child of orthogonal inline with borders\ No newline at end of file+1 Pass+Pass 4: Shrink-to-fit inline-block with a child of orthogonal inline with borders\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001h.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001h.txtindex 6282b9ce989..b049ef4fd21 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001h.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001h.txt@@ -2,5 +2,5 @@ Harness status: OKFound 1 tests-1 Fail-Fail 8: Shrink-to-fit inline-block with a child of orthogonal inline with borders in inline-block\ No newline at end of file+1 Pass+Pass 8: Shrink-to-fit inline-block with a child of orthogonal inline with borders in inline-block\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001l.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001l.txtindex 4b122a46c5b..cd0ade5c91b 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001l.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001l.txt@@ -2,5 +2,5 @@ Harness status: OKFound 1 tests-1 Fail-Fail 12: Shrink-to-fit float with a child of orthogonal inline with borders\ No newline at end of file+1 Pass+Pass 12: Shrink-to-fit float with a child of orthogonal inline with borders\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001p.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001p.txtindex c0c01676137..43bf3f4ee85 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001p.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001p.txt@@ -2,5 +2,5 @@ Harness status: OKFound 1 tests-1 Fail-Fail 16: Shrink-to-fit float with a child of orthogonal inline with borders in inline-block\ No newline at end of file+1 Pass+Pass 16: Shrink-to-fit float with a child of orthogonal inline with borders in inline-block\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001t.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001t.txtindex f76fade0264..c1638d034d0 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001t.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001t.txt@@ -2,5 +2,5 @@ Harness status: OKFound 1 tests-1 Fail-Fail 20: Shrink-to-fit table-cell with a child of orthogonal inline with borders\ No newline at end of file+1 Pass+Pass 20: Shrink-to-fit table-cell with a child of orthogonal inline with borders\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001x.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001x.txtindex cc2b4b7669e..91961a175a1 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001x.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001x.txt@@ -2,5 +2,5 @@ Harness status: OKFound 1 tests-1 Fail-Fail 24: Shrink-to-fit table-cell with a child of orthogonal inline with borders in inline-block\ No newline at end of file+1 Pass+Pass 24: Shrink-to-fit table-cell with a child of orthogonal inline with borders in inline-block\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/elementsFromPoint-inline-vlr-ltr.txt b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/elementsFromPoint-inline-vlr-ltr.txtindex 31991832b8a..4338b948168 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/elementsFromPoint-inline-vlr-ltr.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/elementsFromPoint-inline-vlr-ltr.txt@@ -2,5 +2,5 @@ Harness status: OKFound 1 tests-1 Fail-Fail elementsFromPoint should return all elements under a point\ No newline at end of file+1 Pass+Pass elementsFromPoint should return all elements under a point\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/elementsFromPoint-inline-vlr-rtl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/elementsFromPoint-inline-vlr-rtl.txtindex 31991832b8a..4338b948168 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/elementsFromPoint-inline-vlr-rtl.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/elementsFromPoint-inline-vlr-rtl.txt@@ -2,5 +2,5 @@ Harness status: OKFound 1 tests-1 Fail-Fail elementsFromPoint should return all elements under a point\ No newline at end of file+1 Pass+Pass elementsFromPoint should return all elements under a point\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/offsetTopLeft-border-box.txt b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/offsetTopLeft-border-box.txtindex 10128b30820..18094de15fc 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/offsetTopLeft-border-box.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/offsetTopLeft-border-box.txt@@ -2,14 +2,13 @@ Harness status: OKFound 28 tests-25 Pass-3 Fail+28 PassPass container: 0-Fail container: 1+Pass container: 1Pass container: 2Pass container: 3Pass container: 4-Fail container: 5+Pass container: 5Pass container: 6Pass container: 7Pass container: 8@@ -29,6 +28,6 @@ Pass container: 21Pass container: 22Pass container: 23Pass container: 24-Fail container: 25+Pass container: 25Pass container: 26Pass container: 27\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/scrollIntoView-vertical-lr-writing-mode-and-rtl-direction.txt b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/scrollIntoView-vertical-lr-writing-mode-and-rtl-direction.txtindex a3ac1a04dc3..4498df8dd3e 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/scrollIntoView-vertical-lr-writing-mode-and-rtl-direction.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/scrollIntoView-vertical-lr-writing-mode-and-rtl-direction.txt@@ -2,12 +2,13 @@ Harness status: OKFound 9 tests-9 Fail+1 Pass+8 FailFail scrollIntoView({"block":"start","inline":"start"})Fail scrollIntoView({"block":"start","inline":"center"})Fail scrollIntoView({"block":"start","inline":"end"})Fail scrollIntoView({"block":"center","inline":"start"})-Fail scrollIntoView({"block":"center","inline":"center"})+Pass scrollIntoView({"block":"center","inline":"center"})Fail scrollIntoView({"block":"center","inline":"end"})Fail scrollIntoView({"block":"end","inline":"start"})Fail scrollIntoView({"block":"end","inline":"center"})diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/scrollIntoView-vertical-rl-writing-mode.txt b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/scrollIntoView-vertical-rl-writing-mode.txtindex a3ac1a04dc3..4498df8dd3e 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/scrollIntoView-vertical-rl-writing-mode.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/scrollIntoView-vertical-rl-writing-mode.txt@@ -2,12 +2,13 @@ Harness status: OKFound 9 tests-9 Fail+1 Pass+8 FailFail scrollIntoView({"block":"start","inline":"start"})Fail scrollIntoView({"block":"start","inline":"center"})Fail scrollIntoView({"block":"start","inline":"end"})Fail scrollIntoView({"block":"center","inline":"start"})-Fail scrollIntoView({"block":"center","inline":"center"})+Pass scrollIntoView({"block":"center","inline":"center"})Fail scrollIntoView({"block":"center","inline":"end"})Fail scrollIntoView({"block":"end","inline":"start"})Fail scrollIntoView({"block":"end","inline":"center"})diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/scrollLeftTop.txt b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/scrollLeftTop.txtindex 1a0543ca8ec..927cb662aa8 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/scrollLeftTop.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/scrollLeftTop.txt@@ -2,11 +2,10 @@ Harness status: OKFound 6 tests-3 Pass-3 Fail+6 PassPass writing-mode:horizontal-tb; direction:ltrPass writing-mode:horizontal-tb; direction:rtlPass writing-mode:vertical-lr; direction:ltr-Fail writing-mode:vertical-lr; direction:rtl-Fail writing-mode:vertical-rl; direction:ltr-Fail writing-mode:vertical-rl; direction:rtl\ No newline at end of file+Pass writing-mode:vertical-lr; direction:rtl+Pass writing-mode:vertical-rl; direction:ltr+Pass writing-mode:vertical-rl; direction:rtl\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/cssom/getComputedStyle-insets-absolute.txt b/Tests/LibWeb/Text/expected/wpt-import/css/cssom/getComputedStyle-insets-absolute.txtindex 65da5e0fe90..7f08e6087af 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/cssom/getComputedStyle-insets-absolute.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/cssom/getComputedStyle-insets-absolute.txt@@ -2,8 +2,8 @@ Harness status: OKFound 324 tests-300 Pass-24 Fail+306 Pass+18 FailPass horizontal-tb ltr inside horizontal-tb ltr - Pixels resolve as-isPass horizontal-tb ltr inside horizontal-tb ltr - Relative lengths are absolutized into pixelsPass horizontal-tb ltr inside horizontal-tb ltr - Percentages are absolutized into pixels@@ -48,7 +48,7 @@ Pass horizontal-tb ltr inside vertical-rl ltr - Pixels resolve as-is when overcoPass horizontal-tb ltr inside vertical-rl ltr - Percentages absolutize the computed value when overconstrainedPass horizontal-tb ltr inside vertical-rl ltr - If start side is 'auto' and end side is not, 'auto' resolves to used valuePass horizontal-tb ltr inside vertical-rl ltr - If end side is 'auto' and start side is not, 'auto' resolves to used value-Fail horizontal-tb ltr inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used value+Pass horizontal-tb ltr inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used valuePass horizontal-tb ltr inside vertical-rl rtl - Pixels resolve as-isPass horizontal-tb ltr inside vertical-rl rtl - Relative lengths are absolutized into pixelsPass horizontal-tb ltr inside vertical-rl rtl - Percentages are absolutized into pixels@@ -102,7 +102,7 @@ Pass horizontal-tb rtl inside vertical-rl ltr - Pixels resolve as-is when overcoPass horizontal-tb rtl inside vertical-rl ltr - Percentages absolutize the computed value when overconstrainedPass horizontal-tb rtl inside vertical-rl ltr - If start side is 'auto' and end side is not, 'auto' resolves to used valuePass horizontal-tb rtl inside vertical-rl ltr - If end side is 'auto' and start side is not, 'auto' resolves to used value-Fail horizontal-tb rtl inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used value+Pass horizontal-tb rtl inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used valuePass horizontal-tb rtl inside vertical-rl rtl - Pixels resolve as-isPass horizontal-tb rtl inside vertical-rl rtl - Relative lengths are absolutized into pixelsPass horizontal-tb rtl inside vertical-rl rtl - Percentages are absolutized into pixels@@ -156,7 +156,7 @@ Pass vertical-lr ltr inside vertical-rl ltr - Pixels resolve as-is when overconsPass vertical-lr ltr inside vertical-rl ltr - Percentages absolutize the computed value when overconstrainedPass vertical-lr ltr inside vertical-rl ltr - If start side is 'auto' and end side is not, 'auto' resolves to used valuePass vertical-lr ltr inside vertical-rl ltr - If end side is 'auto' and start side is not, 'auto' resolves to used value-Fail vertical-lr ltr inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used value+Pass vertical-lr ltr inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used valuePass vertical-lr ltr inside vertical-rl rtl - Pixels resolve as-isPass vertical-lr ltr inside vertical-rl rtl - Relative lengths are absolutized into pixelsPass vertical-lr ltr inside vertical-rl rtl - Percentages are absolutized into pixels@@ -210,7 +210,7 @@ Pass vertical-lr rtl inside vertical-rl ltr - Pixels resolve as-is when overconsPass vertical-lr rtl inside vertical-rl ltr - Percentages absolutize the computed value when overconstrainedPass vertical-lr rtl inside vertical-rl ltr - If start side is 'auto' and end side is not, 'auto' resolves to used valuePass vertical-lr rtl inside vertical-rl ltr - If end side is 'auto' and start side is not, 'auto' resolves to used value-Fail vertical-lr rtl inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used value+Pass vertical-lr rtl inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used valuePass vertical-lr rtl inside vertical-rl rtl - Pixels resolve as-isPass vertical-lr rtl inside vertical-rl rtl - Relative lengths are absolutized into pixelsPass vertical-lr rtl inside vertical-rl rtl - Percentages are absolutized into pixels@@ -264,7 +264,7 @@ Pass vertical-rl ltr inside vertical-rl ltr - Pixels resolve as-is when overconsPass vertical-rl ltr inside vertical-rl ltr - Percentages absolutize the computed value when overconstrainedPass vertical-rl ltr inside vertical-rl ltr - If start side is 'auto' and end side is not, 'auto' resolves to used valuePass vertical-rl ltr inside vertical-rl ltr - If end side is 'auto' and start side is not, 'auto' resolves to used value-Fail vertical-rl ltr inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used value+Pass vertical-rl ltr inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used valuePass vertical-rl ltr inside vertical-rl rtl - Pixels resolve as-isPass vertical-rl ltr inside vertical-rl rtl - Relative lengths are absolutized into pixelsPass vertical-rl ltr inside vertical-rl rtl - Percentages are absolutized into pixels@@ -318,7 +318,7 @@ Pass vertical-rl rtl inside vertical-rl ltr - Pixels resolve as-is when overconsPass vertical-rl rtl inside vertical-rl ltr - Percentages absolutize the computed value when overconstrainedPass vertical-rl rtl inside vertical-rl ltr - If start side is 'auto' and end side is not, 'auto' resolves to used valuePass vertical-rl rtl inside vertical-rl ltr - If end side is 'auto' and start side is not, 'auto' resolves to used value-Fail vertical-rl rtl inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used value+Pass vertical-rl rtl inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used valuePass vertical-rl rtl inside vertical-rl rtl - Pixels resolve as-isPass vertical-rl rtl inside vertical-rl rtl - Relative lengths are absolutized into pixelsPass vertical-rl rtl inside vertical-rl rtl - Percentages are absolutized into pixelsdiff --git a/Tests/LibWeb/Text/expected/wpt-import/css/cssom/getComputedStyle-insets-fixed.txt b/Tests/LibWeb/Text/expected/wpt-import/css/cssom/getComputedStyle-insets-fixed.txtindex 65da5e0fe90..7f08e6087af 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/cssom/getComputedStyle-insets-fixed.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/cssom/getComputedStyle-insets-fixed.txt@@ -2,8 +2,8 @@ Harness status: OKFound 324 tests-300 Pass-24 Fail+306 Pass+18 FailPass horizontal-tb ltr inside horizontal-tb ltr - Pixels resolve as-isPass horizontal-tb ltr inside horizontal-tb ltr - Relative lengths are absolutized into pixelsPass horizontal-tb ltr inside horizontal-tb ltr - Percentages are absolutized into pixels@@ -48,7 +48,7 @@ Pass horizontal-tb ltr inside vertical-rl ltr - Pixels resolve as-is when overcoPass horizontal-tb ltr inside vertical-rl ltr - Percentages absolutize the computed value when overconstrainedPass horizontal-tb ltr inside vertical-rl ltr - If start side is 'auto' and end side is not, 'auto' resolves to used valuePass horizontal-tb ltr inside vertical-rl ltr - If end side is 'auto' and start side is not, 'auto' resolves to used value-Fail horizontal-tb ltr inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used value+Pass horizontal-tb ltr inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used valuePass horizontal-tb ltr inside vertical-rl rtl - Pixels resolve as-isPass horizontal-tb ltr inside vertical-rl rtl - Relative lengths are absolutized into pixelsPass horizontal-tb ltr inside vertical-rl rtl - Percentages are absolutized into pixels@@ -102,7 +102,7 @@ Pass horizontal-tb rtl inside vertical-rl ltr - Pixels resolve as-is when overcoPass horizontal-tb rtl inside vertical-rl ltr - Percentages absolutize the computed value when overconstrainedPass horizontal-tb rtl inside vertical-rl ltr - If start side is 'auto' and end side is not, 'auto' resolves to used valuePass horizontal-tb rtl inside vertical-rl ltr - If end side is 'auto' and start side is not, 'auto' resolves to used value-Fail horizontal-tb rtl inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used value+Pass horizontal-tb rtl inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used valuePass horizontal-tb rtl inside vertical-rl rtl - Pixels resolve as-isPass horizontal-tb rtl inside vertical-rl rtl - Relative lengths are absolutized into pixelsPass horizontal-tb rtl inside vertical-rl rtl - Percentages are absolutized into pixels@@ -156,7 +156,7 @@ Pass vertical-lr ltr inside vertical-rl ltr - Pixels resolve as-is when overconsPass vertical-lr ltr inside vertical-rl ltr - Percentages absolutize the computed value when overconstrainedPass vertical-lr ltr inside vertical-rl ltr - If start side is 'auto' and end side is not, 'auto' resolves to used valuePass vertical-lr ltr inside vertical-rl ltr - If end side is 'auto' and start side is not, 'auto' resolves to used value-Fail vertical-lr ltr inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used value+Pass vertical-lr ltr inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used valuePass vertical-lr ltr inside vertical-rl rtl - Pixels resolve as-isPass vertical-lr ltr inside vertical-rl rtl - Relative lengths are absolutized into pixelsPass vertical-lr ltr inside vertical-rl rtl - Percentages are absolutized into pixels@@ -210,7 +210,7 @@ Pass vertical-lr rtl inside vertical-rl ltr - Pixels resolve as-is when overconsPass vertical-lr rtl inside vertical-rl ltr - Percentages absolutize the computed value when overconstrainedPass vertical-lr rtl inside vertical-rl ltr - If start side is 'auto' and end side is not, 'auto' resolves to used valuePass vertical-lr rtl inside vertical-rl ltr - If end side is 'auto' and start side is not, 'auto' resolves to used value-Fail vertical-lr rtl inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used value+Pass vertical-lr rtl inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used valuePass vertical-lr rtl inside vertical-rl rtl - Pixels resolve as-isPass vertical-lr rtl inside vertical-rl rtl - Relative lengths are absolutized into pixelsPass vertical-lr rtl inside vertical-rl rtl - Percentages are absolutized into pixels@@ -264,7 +264,7 @@ Pass vertical-rl ltr inside vertical-rl ltr - Pixels resolve as-is when overconsPass vertical-rl ltr inside vertical-rl ltr - Percentages absolutize the computed value when overconstrainedPass vertical-rl ltr inside vertical-rl ltr - If start side is 'auto' and end side is not, 'auto' resolves to used valuePass vertical-rl ltr inside vertical-rl ltr - If end side is 'auto' and start side is not, 'auto' resolves to used value-Fail vertical-rl ltr inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used value+Pass vertical-rl ltr inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used valuePass vertical-rl ltr inside vertical-rl rtl - Pixels resolve as-isPass vertical-rl ltr inside vertical-rl rtl - Relative lengths are absolutized into pixelsPass vertical-rl ltr inside vertical-rl rtl - Percentages are absolutized into pixels@@ -318,7 +318,7 @@ Pass vertical-rl rtl inside vertical-rl ltr - Pixels resolve as-is when overconsPass vertical-rl rtl inside vertical-rl ltr - Percentages absolutize the computed value when overconstrainedPass vertical-rl rtl inside vertical-rl ltr - If start side is 'auto' and end side is not, 'auto' resolves to used valuePass vertical-rl rtl inside vertical-rl ltr - If end side is 'auto' and start side is not, 'auto' resolves to used value-Fail vertical-rl rtl inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used value+Pass vertical-rl rtl inside vertical-rl ltr - If opposite sides are 'auto', they resolve to used valuePass vertical-rl rtl inside vertical-rl rtl - Pixels resolve as-isPass vertical-rl rtl inside vertical-rl rtl - Relative lengths are absolutized into pixelsPass vertical-rl rtl inside vertical-rl rtl - Percentages are absolutized into pixelsdiff --git a/Tests/LibWeb/Text/expected/wpt-import/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-percentage-block-size.txt b/Tests/LibWeb/Text/expected/wpt-import/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-percentage-block-size.txtindex 3ec2a5c2b09..b3811dd281d 100644--- a/Tests/LibWeb/Text/expected/wpt-import/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-percentage-block-size.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-percentage-block-size.txt@@ -2,15 +2,14 @@ Harness status: OKFound 10 tests-6 Pass-4 Fail+10 PassPass rendered legend (writing-mode: horizontal-tb)Pass second legend (writing-mode: horizontal-tb)Pass div (writing-mode: horizontal-tb)Pass rendered legend (writing-mode: vertical-lr)-Fail second legend (writing-mode: vertical-lr)-Fail div (writing-mode: vertical-lr)+Pass second legend (writing-mode: vertical-lr)+Pass div (writing-mode: vertical-lr)Pass rendered legend (writing-mode: vertical-rl)-Fail second legend (writing-mode: vertical-rl)-Fail div (writing-mode: vertical-rl)+Pass second legend (writing-mode: vertical-rl)+Pass div (writing-mode: vertical-rl)Pass Fieldset with a percentage height should not increase the height on every reflow.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/scroll-animations/css/animation-timeline-scroll-functional-notation.tentative.txt b/Tests/LibWeb/Text/expected/wpt-import/scroll-animations/css/animation-timeline-scroll-functional-notation.tentative.txtindex e6b2220ba43..5611dd0d5a4 100644--- a/Tests/LibWeb/Text/expected/wpt-import/scroll-animations/css/animation-timeline-scroll-functional-notation.tentative.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/scroll-animations/css/animation-timeline-scroll-functional-notation.tentative.txt@@ -2,12 +2,11 @@ Harness status: OKFound 7 tests-5 Pass-2 Fail+7 PassPass animation-timeline: scroll(nearest)Pass animation-timeline: scroll(root)Pass animation-timeline: scroll(self)Pass animation-timeline: scroll(self), on non-scrollerPass animation-timeline: scroll(inline)-Fail animation-timeline: scroll(x)-Fail animation-timeline: scroll(y)\ No newline at end of file+Pass animation-timeline: scroll(x)+Pass animation-timeline: scroll(y)\ No newline at end of file