Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: eaa26fbd160ee4fac5713f73783a6f582323e0ae
      
https://github.com/WebKit/WebKit/commit/eaa26fbd160ee4fac5713f73783a6f582323e0ae
  Author: Cathie Chen <cathiec...@igalia.com>
  Date:   2022-12-06 (Tue, 06 Dec 2022)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/contain-intrinsic-size/contain-intrinsic-size-033-expected.txt
    M Source/WebCore/rendering/RenderElement.h

  Log Message:
  -----------
  [content-visibility] c-v:hidden only turns on contain: size, not contain: 
inline-size
https://bugs.webkit.org/show_bug.cgi?id=248280

Reviewed by Rob Buis.

Content-visibility:hidden makes that element skips its contents. Per [1], when 
an element skips its contents,
it turns on contain:size, not contain:inline-size.

[1] https://w3c.github.io/csswg-drafts/css-contain-2/#skips-its-contents

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/contain-intrinsic-size/contain-intrinsic-size-033-expected.txt:
* Source/WebCore/rendering/RenderElement.h:
(WebCore::RenderElement::shouldApplyInlineSizeContainment const):

Canonical link: https://commits.webkit.org/257431@main


_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to