Closed
Bug 1278061
Opened 9 years ago
Closed 9 years ago
flex-direction not working properly in button
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 984869
People
(Reporter: enzo.dellegrazie, Unassigned)
Details
Attachments
(1 file)
511 bytes,
text/html
|
Details |
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
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?
Comment 2•9 years ago
|
||
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
Updated•9 years ago
|
OS: Windows 10 → All
Priority: P3 → --
Hardware: x86_64 → All
Comment 3•9 years ago
|
||
(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
Comment 4•9 years ago
|
||
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>.
You need to log in
before you can comment on or make changes to this bug.
Description
•