mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
auto merge of #4425 : SimonSapin/servo/mixed-writing-modes, r=mbrubeck
The rendering is still wrong beause of #2795, but at least we get a rendering. (This test change is just for readability, it should be equivalent to before.) r? @mbrubeck
This commit is contained in:
commit
3cc87165a1
3 changed files with 21 additions and 11 deletions
|
@ -1783,9 +1783,9 @@ impl Flow for BlockFlow {
|
|||
if !flow::base(kid).flags.contains(IS_ABSOLUTELY_POSITIONED) {
|
||||
let kid_base = flow::mut_base(kid);
|
||||
kid_base.stacking_relative_position =
|
||||
origin_for_children +
|
||||
(kid_base.position.start + relative_offset).to_physical(writing_mode,
|
||||
container_size);
|
||||
origin_for_children
|
||||
+ kid_base.position.start.to_physical(kid_base.writing_mode, container_size)
|
||||
+ relative_offset.to_physical(writing_mode);
|
||||
}
|
||||
|
||||
flow::mut_base(kid).absolute_position_info = absolute_position_info_for_children;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue