[Webkit-unassigned] [Bug 191627] [css-grid] Incorrect track sizing when using relative sized items in 'auto' column tracks
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 24 14:02:18 PST 2021
https://bugs.webkit.org/show_bug.cgi?id=191627
--- Comment #6 from Javier Fernandez <jfernandez at igalia.com> ---
Comment on attachment 421440
--> https://bugs.webkit.org/attachment.cgi?id=421440
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=421440&action=review
We don't need the new test grid-item-auto-track-and-relative-sized.html since that case is already defined in grid-self-baseline-not-applied-if-sizing-cyclic-dependency-001.html, which is now passing thanks to this change.
Additionally, we shouldn't add an entry to the w3c-import.log because this test has not been imported from the WTP repo, given that it's a new test that doesn't exists in the mentioned repository.
If you want to add a new test, we can create a new one indeed; if it's a reference tests perhaps it can provide something that the testharness may miss. It's a bad idea to create a pixel test like this, though. If you want to proceed, you'd need to create a reference html tests that can be used to describe the expected result.
> Source/WebCore/rendering/RenderBox.cpp:2046
> + return overridingContainingBlockContentLogicalWidth().valueOr(0_lu);
I'm not sure whether this function should have the responsibility of deciding what to do in case of a nullopt value. The RenderBox class is understanding a nullopt value from these functions as an indefinite height. As a matter of fact, this function is called by RenderBox::computePercentageLogicalHeight to compute the availableLogicalHeight, which is defined as Optional variable. I admit that returning an Optional value would complicate other callers of this method, so we should think carefully what's the best approach here.
On the other hand, I think we have the same problem with containingBlockLogicalHeightForContent() function. I think it make sense to apply this change to both functions.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210224/e983e19e/attachment.htm>
More information about the webkit-unassigned
mailing list