forked from WebKit/WebKit-http
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CSS-grid] Ignore the aspect-ratio of a replaced element if stretch a…
…lignments are applied to both axes https://bugs.webkit.org/show_bug.cgi?id=227573 Reviewed by Javier Fernandez. Source/WebCore: As discussed in w3c/csswg-drafts#5713, for the replaced element as a grid item, when both axes have stretch alignments applied and there is no auto margin(s) presented, the aspect ratio should be ignored if there is any. Part of this patch is an import of Chromium CL at https://chromium-review.googlesource.com/c/chromium/src/+/2651651 * rendering/RenderBox.cpp: (WebCore::RenderBox::hasStretchedLogicalHeight const): (WebCore::RenderBox::shouldComputeLogicalWidthFromAspectRatio const): * rendering/RenderBox.h: LayoutTests: Two grid WPT tests are now passing. * TestExpectations: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@280022 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
e690651
commit 30488d9
Showing
5 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
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,3 +1,14 @@ | ||
2021-07-19 Ziran Sun <[email protected]> | ||
|
||
[CSS-grid] Ignore the aspect-ratio of a replaced element if stretch alignments are applied to both axes | ||
https://bugs.webkit.org/show_bug.cgi?id=227573 | ||
|
||
Reviewed by Javier Fernandez. | ||
|
||
Two grid WPT tests are now passing. | ||
|
||
* TestExpectations: | ||
|
||
2021-07-16 Simon Fraser <[email protected]> | ||
|
||
getBoundingClientRect() returns the incorrect rectangle on elements whose parent element is set -webkit-column-count | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,22 @@ | ||
2021-07-19 Ziran Sun <[email protected]> | ||
|
||
[CSS-grid] Ignore the aspect-ratio of a replaced element if stretch alignments are applied to both axes | ||
https://bugs.webkit.org/show_bug.cgi?id=227573 | ||
|
||
Reviewed by Javier Fernandez. | ||
|
||
As discussed in https://github.com/w3c/csswg-drafts/issues/5713, for the replaced element as a grid item, | ||
when both axes have stretch alignments applied and there is no auto margin(s) presented, the aspect ratio | ||
should be ignored if there is any. | ||
|
||
Part of this patch is an import of Chromium CL at | ||
https://chromium-review.googlesource.com/c/chromium/src/+/2651651 | ||
|
||
* rendering/RenderBox.cpp: | ||
(WebCore::RenderBox::hasStretchedLogicalHeight const): | ||
(WebCore::RenderBox::shouldComputeLogicalWidthFromAspectRatio const): | ||
* rendering/RenderBox.h: | ||
|
||
2021-07-18 Sam Weinig <[email protected]> | ||
|
||
Fix canvas overflow checking to use CheckedArithmatic rather than adhoc floating point mechanism | ||
|
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