Changeset 292416 in webkit


Ignore:
Timestamp:
Apr 5, 2022 1:11:37 PM (4 months ago)
Author:
Alan Bujtas
Message:

[CSS-Contain] Flex layout should take "contain: inline-size" into account when computing the flex item's logical width
https://bugs.webkit.org/show_bug.cgi?id=238805

Reviewed by Antti Koivisto.

Source/WebCore:

  • rendering/RenderFlexibleBox.cpp:

(WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths const):

LayoutTests:

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r292409 r292416  
     12022-04-05  Alan Bujtas  <zalan@apple.com>
     2
     3        [CSS-Contain] Flex layout should take "contain: inline-size" into account when computing the flex item's logical width
     4        https://bugs.webkit.org/show_bug.cgi?id=238805
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * TestExpectations:
     9
    1102022-04-05  Matteo Flores  <matteo_flores@apple.com>
    211
  • trunk/LayoutTests/TestExpectations

    r292394 r292416  
    46374637# CSS containment tests that fail
    46384638imported/w3c/web-platform-tests/css/css-contain/contain-inline-size-bfc-floats-001.html [ ImageOnlyFailure ]
    4639 imported/w3c/web-platform-tests/css/css-contain/contain-inline-size-flex.html [ ImageOnlyFailure ]
    46404639imported/w3c/web-platform-tests/css/css-contain/contain-inline-size-grid.html [ ImageOnlyFailure ]
    46414640# webkit-ruby-text
  • trunk/Source/WebCore/ChangeLog

    r292413 r292416  
     12022-04-05  Alan Bujtas  <zalan@apple.com>
     2
     3        [CSS-Contain] Flex layout should take "contain: inline-size" into account when computing the flex item's logical width
     4        https://bugs.webkit.org/show_bug.cgi?id=238805
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * rendering/RenderFlexibleBox.cpp:
     9        (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths const):
     10
    1112022-04-05  Chris Dumez  <cdumez@apple.com>
    212
  • trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp

    r291992 r292416  
    103103    };
    104104
    105     if (shouldApplySizeContainment(*this)) {
     105    auto shouldIgnoreFlexItemContentForLogicalWidth = shouldApplySizeContainment(*this) || shouldApplyInlineSizeContainment(*this);
     106    if (shouldIgnoreFlexItemContentForLogicalWidth) {
    106107        addScrollbarWidth();
    107108        return;
Note: See TracChangeset for help on using the changeset viewer.