Open Bug 1277934 Opened 9 years ago Updated 1 year ago

[css-grid] write more reftests for align/justify-self/content:[last-]baseline

Categories

(Core :: Layout: Grid, enhancement, P4)

enhancement

Tracking

()

Tracking Status
firefox49 --- affected

People

(Reporter: MatsPalmgren_bugz, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, helpwanted, Whiteboard: [lang=css])

Attachments

(3 files, 1 obsolete file)

We need more reftests that checks all possible value combinations of these properties. Only some combinations should result in baseline alignment, see the text on Grid Items here: https://drafts.csswg.org/css-align-3/#baseline-align-content
Yes, that document looks good to me. You can find our existing CSS Grid reftests under layout/reftests/css-grid/ , so that's where the new tests should go. If you want to run just the new reftests that you create (to save time) you can create a file in that folder that just lists your tests (see reftest.list for syntax) and run it with: ./mach reftest layout/reftests/css-grid/mytests.list
You might need to add the following line in a .mozconfig file in the top source dir before starting the build: ac_add_options --enable-debug
Severity: minor → enhancement
Keywords: good-first-bug
Whiteboard: [good first bug][lang=css] → [lang=css]

Hey evreybody! Since this bug is updated 6 months back , i wanted to make sure if its still available . I'm newbie at this ,right now i'm reading this
https://developer.mozilla.org/en-US/docs/Mozilla/Creating_reftest-based_unit_tests Will start writing the patch as soon as I... well....try

plzz guide me if u can :)

Assignee: nobody → subhamy142
Status: NEW → ASSIGNED
Attached file Example baseline test

In this test I also added a bit of padding on one of the baseline aligned items so that the intrinsic size of the container depends on the result of the baseline alignment. It would be nice if we could include that too so that we exercise that part of the layout code as well.

Don't forget to also test baseline values for align-content/justify-content, combined with themselves and with *-self baseline values. If you take all the properties/values that can affect baseline alignment then there are literally thousands of combinations. Please tests as many as possible. (Note that each test file needs to render in 600px x 600px so they won't fit in just one file.)

It's worth testing align/justify-self/content:[last-]baseline on grid containers too of course, but perhaps that should be a follow-up bug. Also, we have some tests for that already: see layout/reftests/css-grid/grid-container-baselines-*

Attachment #9180161 - Attachment is obsolete: true

This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.

Assignee: subhamy142 → nobody
Status: ASSIGNED → NEW

I am an outreachy applicant and I want to contribute to this task kindly assign it to me. Thank you

Is this Issue still active?

Severity: normal → S3

Is this issue still active? I would love to contribute to it as my first bug. Kindly assign it to me!

Component: Layout → Layout: Grid

I would love to contribute to it as my first bug. Kindly assign it to me boss

Hi, I am an outreachy applicant. I am interested in working on this. Can I be assigned this?

Assignee: nobody → patgrizle
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4f19e5c90d1c [css-grid] write more reftests for align/justify-self/content:[last-]baseline. r=emilio

I've updated the failed test and hope it's good this time. Can someone please run the job to test it across all environments?

Flags: needinfo?(patgrizle)

This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit BugBot documentation.

Assignee: patgrizle → nobody
Status: ASSIGNED → NEW

From: https://issues.chromium.org/issues/364820101

justify-self baseline has an affect, by synthesizing the baseline using a horizontal-tb writing-mode.

Potentially: https://bugzilla.mozilla.org/show_bug.cgi?id=1913789 may fix this issue.
Likely grid-container-baselines-006 is incorrect in the above patches.

Ian

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: