-
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.
canvas-as-container-005.html & canvas-as-container-006.html fail
https://bugs.webkit.org/show_bug.cgi?id=253936 rdar://106739131 Reviewed by Alan Baradlay. When resolving computed style in a non-rendered subtree we fail to take container queries into account. * LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/canvas-as-container-005-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/canvas-as-container-006-expected.txt: * Source/WebCore/dom/Document.cpp: (WebCore::Document::styleForElementIgnoringPendingStylesheets): Take care to have updated document style if it is not clean and we are resolving the root element. * Source/WebCore/dom/Element.cpp: (WebCore::Element::resolveComputedStyle): - Ensure the style scope is flushed so stylesheet data is current. - Don't bail out when encountering display:none subtree, the ancestors may still affect its style. - Fall back to a full style update if we encounter a query container with invalid style in the ancestor chain. Canonical link: https://commits.webkit.org/267786@main
- Loading branch information
Showing
4 changed files
with
21 additions
and
7 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...web-platform-tests/css/css-contain/container-queries/canvas-as-container-005-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Test passes if there is a filled green square. | ||
|
||
|
||
FAIL Initially display:none, not focusable assert_not_equals: got disallowed value Element node <div id="target" tabindex="1"></div> | ||
PASS Initially display:none, not focusable | ||
PASS Focusable after container size change | ||
|
2 changes: 1 addition & 1 deletion
2
...web-platform-tests/css/css-contain/container-queries/canvas-as-container-006-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Test passes if there is a filled green square. | ||
|
||
|
||
FAIL Initially display:none, not focusable assert_not_equals: got disallowed value Element node <div id="target" tabindex="1"></div> | ||
PASS Initially display:none, not focusable | ||
PASS Focusable after container size change | ||
|
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