Closed Bug 1278061 Opened 9 years ago Closed 9 years ago

flex-direction not working properly in button

Categories

(Core :: Layout, defect)

48 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 984869

People

(Reporter: enzo.dellegrazie, Unassigned)

Details

Attachments

(1 file)

Attached file testCase.html
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0 Build ID: 20160604004005 Steps to reproduce: - Set the style of <button> with "display:flex; flex-direction:row;". - Add more <div> in button Actual results: the <div> added into the <button> are placed in top to down direction Expected results: the <div> added into the <button> are placed in left to right direction
OS: Unspecified → Windows 10
Hardware: Unspecified → x86_64
A more detailed analysis suggests that the <button> not yet manages the "display:flex" style attribute or other properties of the CSS Flexible Box Layout (see https://www.w3.org/TR/css-flexbox-1/). It's right what I have observed? It is planned the implementation in the future?
Component: Untriaged → General
Priority: -- → P3
getComputedStyle returns the correct flex/row answers for display/flexDirection, so if anything this would be a layout issue. Dan, can you help?
Component: General → Layout
Flags: needinfo?(dholbert)
Product: Firefox → Core
Summary: flex-direction not work properly in button → flex-direction not working properly in button
OS: Windows 10 → All
Priority: P3 → --
Hardware: x86_64 → All
(In reply to Enzo from comment #1) > A more detailed analysis suggests that the <button> not yet manages the > "display:flex" style attribute or other properties of the CSS Flexible Box > Layout (see https://www.w3.org/TR/css-flexbox-1/). Correct, essentially. This is already tracked in Bug 984869. > It is planned the implementation in the future? (Yes.)
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Flags: needinfo?(dholbert)
Resolution: --- → DUPLICATE
In the meantime: if you like, you should be able to work around this by adding a <div> wrapper inside of the <button> (around its children), and set your flexbox styles on that <div>.
thank you for your suggests. bye
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: