-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[content-visibility] Return up-to-date values when script asks for me…
…trics https://bugs.webkit.org/show_bug.cgi?id=259730 Reviewed by Alan Baradlay. Return up-to-date values when script asks for metrics when using API (like getBoundingClientRect()) that needs to measure layout, rather than waiting for the step in "update the rendering" [1]. This matches the gecko implementation whereas chromium uses a "whitelist" solution, needing to adjust many call sites. [1] https://drafts.csswg.org/css-contain/#cv-notes (Step 3) * LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/contain-intrinsic-size/auto-012-expected.txt: * LayoutTests/platform/mac-wk1/TestExpectations: * Source/WebCore/dom/Document.cpp: (WebCore::Document::updateLayoutIgnorePendingStylesheets): (WebCore::Document::updateLayoutIfDimensionsOutOfDate): Canonical link: https://commits.webkit.org/267449@main
- Loading branch information
Showing
3 changed files
with
6 additions
and
8 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...ported/w3c/web-platform-tests/css/css-sizing/contain-intrinsic-size/auto-012-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters