[webkit-changes] [WebKit/WebKit] 2e92a1: [content-visibility] it should trigger a layout if...

cathiechen noreply at github.com
Wed Dec 7 09:12:51 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2e92a10ead3da46e410121584d79ca40afaf5004
      https://github.com/WebKit/WebKit/commit/2e92a10ead3da46e410121584d79ca40afaf5004
  Author: Cathie Chen <cathiechen at igalia.com>
  Date:   2022-12-07 (Wed, 07 Dec 2022)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-038-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/contain-intrinsic-size/auto-006-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/contain-intrinsic-size/auto-008-expected.txt
    M Source/WebCore/rendering/style/RenderStyle.cpp

  Log Message:
  -----------
  [content-visibility] it should trigger a layout if the value of content-visibility is changed from hidden to others
https://bugs.webkit.org/show_bug.cgi?id=248790

Reviewed by Rob Buis.

Per[1], content-visibility: hidden turns on contain:size. Contain:size would change the layout size of the element.
So when an element's content-visibility value changes from hidden to other, it should trigger a layout, vice versa.

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

* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-038-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/contain-intrinsic-size/auto-006-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/contain-intrinsic-size/auto-008-expected.txt:
* Source/WebCore/rendering/style/RenderStyle.cpp:
(WebCore::rareNonInheritedDataChangeRequiresLayout):

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




More information about the webkit-changes mailing list