Did I find the right examples for you? yes no

All Samples(8)  |  Call(6)  |  Derive(0)  |  Import(2)

src/w/e/WeasyPrint-0.21/weasyprint/layout/blocks.py   WeasyPrint(Download)
 
from .absolute import absolute_layout, AbsolutePlaceholder
from .float import float_layout, get_clearance, avoid_collisions
from .inlines import (iter_line_boxes, replaced_box_width, replaced_box_height,
                      min_max_auto_replaced)
 
    collapsed_margin = collapse_margin(adjoining_margins + [box.margin_top])
    box.clearance = get_clearance(context, box, collapsed_margin)
    if box.clearance is not None:
        top_border_edge = box.position_y + collapsed_margin + box.clearance
                            dy=collapsed_margin_difference)
                    clearance = get_clearance(
                        context, child, new_collapsed_margin)
                    if clearance is not None:
                        for previous_new_child in new_children:
        # top and bottom margin of this box
        if (box.height in ('auto', 0) and
            get_clearance(context, box, collapsed_margin) is None and
            all(v == 0 for v in [
                box.min_height, box.border_top_width, box.padding_top,

src/w/e/WeasyPrint-HEAD/weasyprint/layout/blocks.py   WeasyPrint(Download)
 
from .absolute import absolute_layout, AbsolutePlaceholder
from .float import float_layout, get_clearance, avoid_collisions
from .inlines import (iter_line_boxes, replaced_box_width, replaced_box_height,
                      min_max_auto_replaced)
 
    collapsed_margin = collapse_margin(adjoining_margins + [box.margin_top])
    box.clearance = get_clearance(context, box, collapsed_margin)
    if box.clearance is not None:
        top_border_edge = box.position_y + collapsed_margin + box.clearance
                            dy=collapsed_margin_difference)
                    clearance = get_clearance(
                        context, child, new_collapsed_margin)
                    if clearance is not None:
                        for previous_new_child in new_children:
        # top and bottom margin of this box
        if (box.height in ('auto', 0) and
            get_clearance(context, box, collapsed_margin) is None and
            all(v == 0 for v in [
                box.min_height, box.border_top_width, box.padding_top,