ladybird/Tests/LibWeb/Layout/input/block-and-inline
Jelle Raaijmakers ab3e9799d5 LibWeb: Allow negative margins to influence inline offset after float
In 89ba00304c, the box' X position was
capped at 0 to prevent negative X positions to act as if there were
intruding floats on the left side. Instead, we need to check whether the
left side float intrusion we are going to calculate matters at all -
because if there's no matching float box, the intrusion is always going
to be 0 and we don't need to take the box' X position into account.

Fixes the floating publication images on https://lexfridman.com/.
2025-07-28 12:11:56 +02:00
..
abspos-br.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
abspos-grid-with-definite-width.html
abspos-only-with-inset-left.html
abspos-with-auto-margins-in-inline-axis.html
abspos-with-bottom-right-insets-relative-to-box-with-paddings.html
abspos-with-insets-and-auto-margins.html LibWeb: Subtract left inset from size_available_for_margins for abspos 2024-07-19 13:29:20 +01:00
abspos-with-percentage-height-resolved-against-padding-box-of-containing-block.html
abspos-with-percentage-padding.html LibWeb: Fix "box-sizing: border-box" resolution for abspos items 2024-09-17 07:56:18 +02:00
abspos-without-insets-relative-top-box-with-padding-top.html
abspos-without-insets.html
aspect-ratio-but-width-and-height-are-auto.html LibWeb: Size box as normal if it has aspect ratio but auto sizes 2025-03-27 23:13:57 +00:00
atomic-inline-with-aspect-ratio-2.html LibWeb: Don't make flex layout responsible for flex container cross size 2024-03-27 16:43:04 +01:00
atomic-inline-with-percentage-vertical-align.html
atomic-inline-with-white-space-nowrap.html
automatic-size-of-block-container-with-inline-children-and-nonempty-floating-child.html
bfc-consider-all-currently-stacked-floats.html
bfc-float-left-break-vertically-2.html
bfc-float-left-break-vertically.html
bfc-root-auto-height-expands-for-descendants-with-margin-top.html LibWeb: Account for collapsed top margins in BFC root height calculation 2025-02-22 18:41:42 +01:00
block-inside-inline.html LibWeb: Ensure anonymous wrappers inherit inline-block display 2025-05-23 11:16:06 +02:00
block-level-floating-box-with-clearance.html
block-with-fit-content-width-constraints.html
block-with-fit-content-width.html
block-with-hidden-overflow-after-float-and-margin-left.html LibWeb: Overlap float space and left margins for all shared ancestors 2025-05-09 14:13:02 +02:00
block-with-hidden-overflow-after-float.html
block-with-hidden-overflow-after-sibling-float.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
block-with-max-content-width.html
block-with-min-content-width.html
block-with-negative-margin-and-no-intruding-floats.html
box-with-clearance-and-margin-top.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
box-with-percentage-height-wrapped-in-anonymous.html LibWeb: Use parent's available space for anonymous blocks in BFC 2025-03-15 13:31:07 +01:00
button-baseline-align.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
button-image-only.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
button-should-have-vertically-aligned-content.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
button-width.html
button-with-abspos-pseudo-element.html
button-with-after-pseudo.html
button-with-before-pseudo.html
button-with-block-content-baseline-align.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
button-with-min-height.html LibWeb: Make button flex wrapper inherit min-height property 2024-01-28 14:48:33 +01:00
button-with-multiple-words-text-node-label.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
button-with-text-node-label-and-font-size.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
button-with-text-node-label.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
clear-both-from-inline-formatting-context.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
clear-both-without-introducing-clearance.html
clearfix.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
columns-33-percent-width.html
flex-container-should-avoid-overlapping-floats.html
float-1.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
float-2.html
float-3.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
float-4.html
float-clear-by-line-break-at-end-of-block.html LibWeb: Resolve block height correctly after line break with clear: .. 2025-04-01 16:02:53 +02:00
float-clear-by-line-break-followed-by-block.html LibWeb: Resolve block height correctly after line break with clear: .. 2025-04-01 16:02:53 +02:00
float-clear-by-line-break-followed-by-inline.html LibWeb: Apply remaining vertical float clearance to next block level box 2025-03-27 17:21:56 +00:00
float-clear-right-should-not-affect-inline-left.html LibWeb: Remove application of vertical float clearance to BFC Y offset 2025-04-23 13:24:58 +02:00
float-clear-simultaneously.html LibWeb: Do not clear float sides for floating boxes with clear: .. 2025-03-27 00:56:56 +00:00
float-fits-exactly.html LibWeb: Correct the calculation for right float intrusion 2025-05-27 17:31:47 +02:00
float-following-trailing-whitespace.html LibWeb: Exclude trailing whitespace from line width when placing floats 2025-03-26 19:35:38 +00:00
float-initial-available-space-vs-height.html LibWeb: Fix and improve float positioning behavior 2025-03-27 10:56:13 +00:00
float-inside-margin-auto-container.html LibWeb: Only apply box offset if the box is not already the ancestor 2025-04-04 15:35:26 +02:00
float-intrusions-relative-coordinates.html LibWeb: Use relative coordinates for available_space_for_line() 2025-04-01 15:26:12 +02:00
float-left-and-right-with-justified-text-in-between.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
float-left-and-right-with-text-in-between.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
float-logical.html LibWeb: Handle inline-start and inline-end as float values 2024-07-10 17:41:18 +02:00
float-max-content-containing-block-flex-display.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
float-max-content-containing-block.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
float-nested-under-eachother.html LibWeb: Correct the calculation for right float intrusion 2025-05-27 17:31:47 +02:00
float-should-avoid-inline-block.html
float-stress-1.html
float-stress-2.html
float-stress-3.html
float-under-if-would-fit.html LibWeb: Ensure floats are correctly placed under the preceding float 2025-05-23 10:58:15 +02:00
float-vertical-clearance-for-text-after-break.html LibWeb: Only set line builder's block offset if clearance increases it 2025-03-31 08:11:10 +01:00
float-vertical-clearance-ignores-opposite-side.html LibWeb: Fix and improve float positioning behavior 2025-03-27 10:56:13 +00:00
float-vertical-offset-by-preceding-float.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
float-with-inline-contents-hoisted.html LibWeb: Don't mess up the order of nodes when wrapping inline contents 2025-04-24 19:12:50 +02:00
float-with-negative-margin-containing-block.html LibWeb: Allow negative margins to influence inline offset after float 2025-07-28 12:11:56 +02:00
float-with-negative-margins.html LibWeb: Ignore negative margins for margin box rect 2025-04-11 02:34:28 +01:00
floating-box-with-box-sizing-border-box.html Tests/LibWeb: Add layout test for float box with box-sizing=border-box 2024-09-18 15:49:40 +02:00
floats-and-negative-margins.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
floats-with-negative-percentage-margins.html
forced-break-stops-non-whitespace-sequence.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
grid-container-should-avoid-overlapping-floats.html
html-element-height-quirks-mode-off.html
html-element-height-quirks-mode-on.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
ifc-float-left-and-sibling-with-margin-left.html
img-as-block-with-box-sizing-border-box.html LibWeb: Honor box-sizing for block-level replaced element widths 2025-07-14 11:16:13 +02:00
inline-block-baseline-1.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
inline-block-baseline-2.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
inline-block-contained-by-abspos-element.html
inline-block-leading-and-trailing-metrics.html LibWeb: Prevent time-traveling leading inline metrics 2025-06-20 19:59:32 +02:00
inline-block-percentage-max-width.html
inline-block-vertical-align-middle.html LibWeb: Implement vertical-align: middle correctly for atomic inlines 2024-08-26 15:49:07 +02:00
inline-block-with-max-width-fit-content.html
inline-block-with-negative-margin-left.html
inline-block-with-negative-margin-right.html
inline-block-with-percentage-height-and-auto-height-of-containing-block.html
inline-box-positioned-with-top-left.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
inline-box-with-vertical-margins-vertical-align-top.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
inline-box-with-vertical-margins.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
inline-float-clear.html LibWeb: Change inline float clearance to not reset margin collapsing 2024-09-21 01:55:43 +02:00
inline-node-not-inserted-into-generated-box.html
intrinsic-sizing-with-min-width-specified.html
join-out-of-flow-box-with-previous-sibling-if-wrapped-in-anonymous-box.html
leading-margin-on-inline-content-that-starts-with-collapsible-whitespace.html LibWeb: Don't lose track of inline margins when collapsing whitespace 2024-01-20 23:29:51 +01:00
list-markers-intruded-by-float.html
margin-collapse-1.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
margin-collapse-2.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
margin-collapse-3.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
margin-collapse-4.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
margin-collapse-5.html
margin-collapse-6.html
margin-must-not-collapse-across-nested-bfc.html
margin-padding-block-inline-start.html
margin-padding-block-inline.html
max-width-for-box-with-inline-children.html
max-width-must-not-expand-element.html
max-width-on-block-level-box-that-creates-fc.html LibWeb: Respect min/max-content available size in auto width calculation 2025-03-28 02:13:41 +00:00
max-width-on-child-block-with-width-auto-contributes-to-intrinsic-size-of-parent.html
max-width-percentage-100-border-box.html
max-width-percentage-100.html
max-width-percentage-containing-block.html
max-width-wrapped-in-max-content.html
min-width-for-box-with-inline-children.html
narrow-bfc-width-to-avoid-overlap-with-floats.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
negative-margin-with-padding.html LibWeb: Always set the Y offset of the current block in BFC 2025-05-16 20:33:27 +02:00
out-of-flows-not-inserted-into-generated-box.html LibWeb: Don't insert out-of-flow elements into block pseudo elements 2024-07-06 10:02:29 +02:00
percentage-height-abspos-box-with-percentage-height-child.html LibWeb: Mark height as definite before doing inner layout of abspos 2025-03-21 14:46:31 -05:00
percentage-height-box-nested-into-percentage-height-box.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
percentage-height-in-quirks-mode.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
percentage-min-height-with-containing-block-padding.html
percentage-min-height.html
percentage-min-width-with-max-content-containing-block-width.html
percentage-padding-on-inline-block-with-indefinite-containing-block-size.html
relpos-block.html
relpos-float.html
relpos-inline-element-js-offsets.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
relpos-inline-elements.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
single-br-inline-layout.html Tests: Add doctypes to remaining test cases 2025-06-21 14:09:47 +02:00
small-percentage-margin.html
treat-percentage-width-as-auto-in-non-replaced-min-content-sizing.html LibWeb: Don't treat non-replaced sizes as 0 for min-content contrib 2025-07-23 19:52:59 +02:00
width-auto-margins-set-zero-if-containing-size-smaller.html