Closed Bug 1349284 Opened 7 years ago Closed 7 years ago

An example in the CSS grid demo shows incorrect CSS

Categories

(www.mozilla.org :: Pages & Content, defect)

Production
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bugs, Assigned: craigcook)

Details

Attachments

(1 file)

The problem is with the 3rd "Place & Align" example (#demo-two.example-3) at https://www.mozilla.org/en-US/developer/css-grid/.

The code box under the demo contains the following CSS:

.item-1 {
    grid-area: a;
    align-self: end;
}

.item-2 {
    grid-area: b;
    align-self: start;
}

but this is substantially different from the CSS actually used in the demo:

#demo-two.example-3 .item-1{grid-area:a;align-self:start}#demo-two.example-3 .item-2{grid-area:b;align-self:end}

That is, the values of align-self have been reversed (start-to-end and end-to-start). This error is repeated for items 3 and 4, and overall makes the example a bit confusing.
Component: Product Details → Pages & Content
My apologies for the incorrect category - I should have double-checked that.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Thanks for the report, sorry we missed this. I'll get it fixed ASAP.
Assignee: nobody → craigcook.bugz
Commits pushed to master at https://github.com/mozilla/bedrock

https://github.com/mozilla/bedrock/commit/db0cbeaf6604f4adfd479742dd556d2ea0e37992
[fix bug 1349284] Show correct CSS for grid example

https://github.com/mozilla/bedrock/commit/4b867293e45530c3ea920c1bdc1c2bd0c4666cd4
Merge pull request #4733 from craigcook/bug-1349284-grid-demo-code

[fix bug 1349284] Show correct CSS for grid example
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: