Closed Bug 882975 Opened 11 years ago Closed 11 years ago

Fix duplicate "max-height" declaration in flexbox-sizing-vert-1.xhtml

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: dholbert, Assigned: dholbert)

Details

Attachments

(1 file)

biesi pointed out that flexbox-sizing-vert-1.xhtml has two max-heights specified:
37       div.c {
38         flex: 1 40px;
39         max-height: 10px;
40         max-height: 60px;
41         background: orange;
42       }
http://mxr.mozilla.org/mozilla-central/source/layout/reftests/w3c-css/submitted/flexbox/flexbox-sizing-vert-1.xhtml#37

Filing this bug to clean that up. (Either converting the smaller one to min-height, or just dropping one. I forget what I originally intended. Need to take a closer look.)
This affects flexbox-sizing-horiz-1.xhtml , too (with s/height/width/):
35       div.c {
36         flex: 1 40px;
37         max-width: 10px;
38         max-width: 60px;
39         background: orange;
40       }
http://mxr.mozilla.org/mozilla-central/source/layout/reftests/w3c-css/submitted/flexbox/flexbox-sizing-horiz-1.xhtml#37
Attached patch patchSplinter Review
Here's a patch to fix this (with s/max/min/ on the lower value) & tweak the reference cases accordingly.

Reftest still passes locally. Try run to be sure it passes elsewhere, too:
 https://tbpl.mozilla.org/?tree=Try&rev=1cf939ac7d47
https://hg.mozilla.org/mozilla-central/rev/52c16e7e867c
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
dbaron, would you mind re-syncing the w3c-css reftest directory, to get this fixed in the w3c copy of these tests?
Flags: needinfo?(dbaron)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: