layout: grid template getComputedStyle resolved value#34885
layout: grid template getComputedStyle resolved value#34885nicoburns merged 8 commits intoservo:mainfrom
Conversation
1c85eb1 to
45510ce
Compare
Signed-off-by: stevennovaryo <[email protected]>
Signed-off-by: stevennovaryo <[email protected]>
Signed-off-by: stevennovaryo <[email protected]>
Signed-off-by: stevennovaryo <[email protected]>
Signed-off-by: stevennovaryo <[email protected]>
Signed-off-by: stevennovaryo <[email protected]>
Signed-off-by: stevennovaryo <[email protected]>
Signed-off-by: stevennovaryo <[email protected]>
99d608d to
eaef90b
Compare
|
@stevennovaryo I've published Taffy |
|
🔨 Triggering try run (#12687978091) for Linux WPT |
nicoburns
left a comment
There was a problem hiding this comment.
This looks excellent. I'd recommend bumping the Taffy version (and updating assertions again) before we merge this, but we can also do this as a follow-up if you prefer.
Looking at the remaining failures in the affected files, they almost looks like they might actually be cases where Taffy is computing the wrong size are tests which include line names (which we don't yet support) which is very good sign. A potential exception being the [Property grid-template-columns value 'none'] subtest which we probably ought to pass?
|
Test results for linux-wpt-layout-2020 from try job (#12687978091): Flaky unexpected result (14)
Stable unexpected results that are known to be intermittent (11)
|
|
✨ Try run (#12687978091) succeeded. |
|
Seeing as this is passing tests and ready to go I'm going to go ahead and merge it before it gets out of date. Taffy version bump can be done in a follow-up :) |
| /// Additional information of from layout that could be used by Javascripts and devtools. | ||
| #[serde(skip_serializing)] | ||
| pub detailed_layout_info: Option<DetailedLayoutInfo>, |
There was a problem hiding this comment.
Naming nit: SpecificLayoutInfo might be a better description. I like the way you've designed this as we can start putting information for other layout modes here as well.
|
Thanks for publishing Taffy It could be bundled with renaming the objects and other minor quality changes too. |
Description
Fix
getComputedValue()forgrid-template-*which should return used value for a resolved-track-list. This will also allow several grid WPT test which usedgetComputedValue()to be tested accordingly.In the future, one can include the grid line names and subgrid in the resolved
track-listonce it is implemented.Changes
BoxFragmentto store the information from layout algorithm. Which will be used to pass the computation details from Grid algorithm (Taffy).grid-template-rowandgrid-template-columnusing the information.Feedback are appreciated for the approach of passing the information from layout algorithm.
WPT Result
There are some tests that is previously failed because
getComputedStyle()returned computed value. On the other hand some test became failed for the very same reason.Some
css/css-grid/grid-definition/grid-template-columns-rows-resolved-values-001.tentative.html.initests seems to fail because the tests wasn't accomodating for implicit grids. Currently, it resemble the results of others browsers better.Some tests expectation will also be updated once the newest Taffy iteration that fixes my bug is included. Which can be easily done after grid
calcchanges.Try
./mach build -ddoes not report any errors./mach test-tidydoes not report any errors