ladybird/Userland/Libraries/LibWeb/Layout
Aliaksandr Kalenik 30b51b06b9 LibWeb: Fix y position calculation for blocks with clearance
This change fixes problem that y position of blocks with
clearance might not include border_top and padding_top
by changing `place_block_level_element_in_normal_flow_vertically`
to accept y position without `border_box_top` and adding it
on the last step when clearance is already taken in account.

Bug reproducer:
```html
<style>
.a {
    border: 10px salmon solid;
    width: 50px;
    height: 50px;
    float: left;
}
.b {
    clear: both;
    border: 20px slateblue solid;
    width: 50px;
    height: 50px;
}
</style>
<div class="a"></div><div class="b"></div><div class="c"></div>
```
2023-01-10 10:24:05 +01:00
..
AvailableSpace.cpp LibWeb: Convert FormattingContext to new pixel units 2023-01-05 17:42:31 +01:00
AvailableSpace.h LibWeb: Convert FormattingContext to new pixel units 2023-01-05 17:42:31 +01:00
BlockContainer.cpp LibWeb: Convert Layout Boxes to new pixel units 2023-01-05 17:42:31 +01:00
BlockContainer.h LibWeb: Convert Layout Boxes to new pixel units 2023-01-05 17:42:31 +01:00
BlockFormattingContext.cpp LibWeb: Fix y position calculation for blocks with clearance 2023-01-10 10:24:05 +01:00
BlockFormattingContext.h LibWeb: Remove redundant BFC::is_block_formatting_context() method 2023-01-07 11:49:04 +00:00
Box.cpp LibWeb+WebContent: Convert BrowsingContext to new pixel units 2023-01-05 17:42:31 +01:00
Box.h LibWeb: Convert Layout Boxes to new pixel units 2023-01-05 17:42:31 +01:00
BoxModelMetrics.cpp
BoxModelMetrics.h LibWeb+Browser+WebContent: Convert BoxModelMetrics to new pixel units 2023-01-05 17:42:31 +01:00
BreakNode.cpp
BreakNode.h
ButtonBox.cpp
ButtonBox.h
CanvasBox.cpp
CanvasBox.h
CheckBox.cpp
CheckBox.h
FlexFormattingContext.cpp LibWeb: Take used width into account in flex item intrinsic cross sizing 2023-01-07 19:41:21 +01:00
FlexFormattingContext.h LibWeb: Store flex item used sizes as Optional<CSSPixels> 2023-01-07 19:41:21 +01:00
FormAssociatedLabelableNode.h
FormattingContext.cpp LibWeb: Fix abspos flex container with height:auto getting zero height 2023-01-06 21:12:55 +01:00
FormattingContext.h LibWeb: Fix abspos flex container with height:auto getting zero height 2023-01-06 21:12:55 +01:00
FrameBox.cpp LibWeb+WebContent: Convert BrowsingContext to new pixel units 2023-01-05 17:42:31 +01:00
FrameBox.h
GridFormattingContext.cpp LibWeb: Convert LayoutState to new pixel units 2023-01-05 17:42:31 +01:00
GridFormattingContext.h LibWeb: Convert GridFormattingContext to new pixel units 2023-01-05 17:42:31 +01:00
ImageBox.cpp LibWeb: Convert Layout Boxes to new pixel units 2023-01-05 17:42:31 +01:00
ImageBox.h LibWeb: Convert Layout Boxes to new pixel units 2023-01-05 17:42:31 +01:00
InitialContainingBlock.cpp LibWeb: Convert Paintable coordinates to new pixel units 2022-12-14 16:47:57 +00:00
InitialContainingBlock.h
InlineFormattingContext.cpp LibWeb: Respect box-sizing: content-box inside inline-blocks 2023-01-09 10:54:20 +01:00
InlineFormattingContext.h LibWeb: Convert InlineFormattingContext to new pixel units 2023-01-05 17:42:31 +01:00
InlineLevelIterator.cpp LibWeb: Convert InlineLevelIterator/LineBox/LineBuilder to new px units 2023-01-05 17:42:31 +01:00
InlineLevelIterator.h LibWeb: Convert InlineLevelIterator/LineBox/LineBuilder to new px units 2023-01-05 17:42:31 +01:00
InlineNode.cpp
InlineNode.h
Label.cpp LibWeb: Convert Paintable coordinates to new pixel units 2022-12-14 16:47:57 +00:00
Label.h LibWeb+WebContent+headless-browser: Use CSSPixels for PageClient events 2022-12-10 12:03:19 +00:00
LabelableNode.cpp
LabelableNode.h
LayoutPosition.cpp
LayoutPosition.h
LayoutState.cpp LibWeb: Convert LayoutState to new pixel units 2023-01-05 17:42:31 +01:00
LayoutState.h LibWeb: Convert LayoutState to new pixel units 2023-01-05 17:42:31 +01:00
LineBox.cpp LibWeb: Convert InlineLevelIterator/LineBox/LineBuilder to new px units 2023-01-05 17:42:31 +01:00
LineBox.h LibWeb: Convert InlineLevelIterator/LineBox/LineBuilder to new px units 2023-01-05 17:42:31 +01:00
LineBoxFragment.cpp LibWeb: Convert Paintable coordinates to new pixel units 2022-12-14 16:47:57 +00:00
LineBoxFragment.h LibWeb: Convert Paintable coordinates to new pixel units 2022-12-14 16:47:57 +00:00
LineBuilder.cpp LibWeb: Convert Layout::Node to new pixel units 2023-01-05 17:42:31 +01:00
LineBuilder.h LibWeb: Convert InlineLevelIterator/LineBox/LineBuilder to new px units 2023-01-05 17:42:31 +01:00
ListItemBox.cpp
ListItemBox.h
ListItemMarkerBox.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ListItemMarkerBox.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Node.cpp LibWeb: Move clear property from table-root to table-wrapper 2023-01-09 15:47:59 +01:00
Node.h LibWeb: Wrap table roots in anonymous block boxes 2023-01-09 11:47:31 +01:00
Progress.cpp
Progress.h
RadioButton.cpp
RadioButton.h
ReplacedBox.cpp
ReplacedBox.h LibWeb: Convert Layout Boxes to new pixel units 2023-01-05 17:42:31 +01:00
SVGBox.cpp
SVGBox.h
SVGFormattingContext.cpp LibWeb: Convert LayoutState to new pixel units 2023-01-05 17:42:31 +01:00
SVGFormattingContext.h LibWeb: Convert FormattingContext to new pixel units 2023-01-05 17:42:31 +01:00
SVGGeometryBox.cpp LibWeb: Convert Layout Boxes to new pixel units 2023-01-05 17:42:31 +01:00
SVGGeometryBox.h LibWeb: Convert Layout Boxes to new pixel units 2023-01-05 17:42:31 +01:00
SVGGraphicsBox.cpp
SVGGraphicsBox.h
SVGSVGBox.cpp LibWeb: Convert Layout Boxes to new pixel units 2023-01-05 17:42:31 +01:00
SVGSVGBox.h
TableBox.cpp LibWeb: Remove inheritance of TableBox from BlockContainer 2023-01-09 11:47:31 +01:00
TableBox.h LibWeb: Remove inheritance of TableBox from BlockContainer 2023-01-09 11:47:31 +01:00
TableCellBox.cpp LibWeb: Take rowspan into account while table formatting 2022-12-05 17:47:48 +01:00
TableCellBox.h LibWeb: Remove unused TableCellBox::next_cell() 2023-01-09 11:47:31 +01:00
TableFormattingContext.cpp LibWeb: Use table_box() to get root box in TFC 2023-01-09 15:06:27 +01:00
TableFormattingContext.h LibWeb: Use table_box() to get root box in TFC 2023-01-09 15:06:27 +01:00
TableRowBox.cpp
TableRowBox.h
TableRowGroupBox.cpp LibWeb: Remove inheritance of TableRowGroupBox from BlockContainer 2023-01-09 11:47:31 +01:00
TableRowGroupBox.h LibWeb: Remove inheritance of TableRowGroupBox from BlockContainer 2023-01-09 11:47:31 +01:00
TextNode.cpp LibUnicode+LibJS+LibWeb: Propagate OOM from Unicode case transformations 2023-01-09 22:48:15 +00:00
TextNode.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
TreeBuilder.cpp LibWeb: Move clear property from table-root to table-wrapper 2023-01-09 15:47:59 +01:00
TreeBuilder.h LibWeb: Use HashMap::try_ensure_capacity in StyleComputer 2022-12-10 14:29:46 +01:00