Changes between Version 4 and Version 5 of CSSContainment


Ignore:
Timestamp:
Apr 19, 2021 1:58:06 AM (3 years ago)
Author:
rwlbuis@webkit.org
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CSSContainment

    v4 v5  
    4040for `RenderObject::markContainingBlocksForLayout` to avoid marking the contained element ancestors.
    4141
     42= Paint Containment =
     43
     44Following the paint containment box algorithm [5]:
     45
     46- The paint containment box establishes an absolute positioning containing block and a fixed positioning containing block. This needs changes in `RenderElement::canContainFixedPositionObjects` and `RenderElement::canContainAbsolutelyPositionedObjects`.
     47
     48- The paint containment box establishes an independent formatting context. To implement this, `RenderBox::createsNewFormattingContext` will have to be adapted.
     49
     50- The paint containment box creates a stacking context. This requires a change in `Adjuster::adjust()` in the `if (style.hasAutoUsedZIndex())` condition.
     51
    4252[1] https://www.w3.org/TR/css-contain-1/ [[br]]
    4353[2] https://www.w3.org/TR/css-contain-1/#containment-size [[br]]
    4454[3] https://www.w3.org/TR/css-contain-1/#containment-layout [[br]]
    4555[4] https://www.w3.org/TR/css-contain-1/#layout-containment-box [[br]]
     56[5] https://www.w3.org/TR/css-contain-1/#paint-containment-box [[br]]