Closed Bug 1488885 Opened 6 years ago Closed 6 years ago

DevTools flexbox inspector incorrectly reports width values, for row-oriented vertical-writing-mode flexbox

Categories

(DevTools :: Inspector, defect, P3)

defect

Tracking

(firefox65 fixed)

RESOLVED FIXED
Firefox 65
Tracking Status
firefox65 --- fixed

People

(Reporter: dholbert, Assigned: mtigley)

References

Details

Attachments

(1 file)

STR: 0. Set pref devtools.flexboxinspector.enabled to true 1. Visit this data URL: data:text/html,<div style="display:flex;writing-mode:vertical-rl"><span>abc 2. Right-click "abc" and choose "inspect" 3. Click the "flex" badge in the DOM view. 4. In the "Layout" inspector pane (to the right), click "1. span" to expand the flex-item info for the <span>. ACTUAL RESULTS: The pane reports "Content width", "Min-width", "Max-width", and "Final width", but the main axis is the vertical axis. EXPECTED RESULTS: The pane should report "height" values.
Blocks: 1470379
In particular: IF the flex container's computed "writing-mode" == "horizontal-tb": * flex-direction:row/row-reverse means horizontal (widths), vs. column/column-reverse means vertical (heights) ELSE: * It's the opposite. i.e.: * flex-direction:row/row-reverse means vertical (heights), vs. column/column-reverse means horizontal (widths)
Blocks: dt-flexbox, 1478396
No longer blocks: 1470379
Depends on: 1478397
Priority: -- → P3
This will change a bit with bug 1495717 as we don't display these properties as is anymore. But the bug still exists. Let's wait for that bug to land, and then investigate again. At that time, it will make more sense to use this test case instead: data:text/html,<div style="display:flex;writing-mode:vertical-rl"><span style="min-width:300px;min-height:200px">abc
No longer blocks: dt-flexbox
Depends on: 1495717
No longer depends on: 1478397
Let's wait for bug 1497589 to land since that'll give us the physical direction of the main and cross axis. I think we should expose them on the FlexboxActor's form object because they will be useful in many cases.
Depends on: 1497589
Assignee: nobody → mtigley
Status: NEW → ASSIGNED
Pushed by mtigley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f2d6d537d09e Devtools flexbox inspector incorrectly reports width values for row-oriented vertical-writing-mode flexbox. r=gl
Micah, for info the assert that failed here just landed so that's why your try pushes didn't show it. In your test you have a call to `ok()` which is incorrect: ok(minDimension.textContent, expectedDimension, "The flex item sizing has the correct dimension value."); You want to use `is()` here, otherwise you are only checking that `minDimension.textContent` is not false.
My apologies. I missed the incorrect call to "ok()" before pushing. Thank you for letting me know. I will get it fixed up!
Flags: needinfo?(mtigley)
Pushed by mtigley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/afbdda6211c9 Devtools flexbox inspector incorrectly reports width values for row-oriented vertical-writing-mode flexbox. r=gl
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 65
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: