-
Notifications
You must be signed in to change notification settings - Fork 496
Writing-mode: vertical; breaks flexbox layout in Firefox #98
Comments
Adding screenshots of testing the JSBin under IE 11 and Edge - each of 4 browsers is different - you're a winner! :) IE shows essentially the same output as Chrome, except the letters are turned 90° and so the vertical height of the text is shorter (using character spacing instead of line-height to determine total height), and so the box is shorter. Better than Chrome or FF? Edge shows the vertical text different again, where the text has wrapped so that there are two lines of text (and which is turned 90° as for IE) in the left-hand box, and the entire box is shorter than IE. No insights here, but each browser differs in rendering. (And when last I had to do something like this I could and had to resort to SVG!) |
Thanks for investigating and submitting a bug report. Could you post the link to the report please. |
Oooo, I hadn't done it, was wondering if you wanted to do it, but if I could point to your example... |
I've submitted Bug 1223180 "Flex + vertical writing-mode: flex items / text disappear" regarding the above bug. While researching I accidentally came across Bug 1189131 - flex align-items center displaces text when writing-mode is vertical-rl . I didn't find that in searching twice before! It is somewhat simpler using fewer flex constructs and yet also hits the 'same' problem - disappearing content (with wildly wrong offsetLeft values only under FireFox). Check both bugs for what Mozilla figures out. I can't think of any workaround that wouldn't involve JS and poking 'style.left'. |
I deferred to submitting one myself and now it's done, thanks again. |
I'm having the same issue on Firefox. Apparently firefox is not generating the correct width of my vertical-rl dom. |
I've got patches that should fix this issue, over in https://bugzilla.mozilla.org/show_bug.cgi?id=1267462 - hopefully this will be fixed in Firefox Nightly 60 within a few days. |
Minimalist example: https://jsbin.com/tiqeleveno/edit?html,output
in Chrome 46.0.2490.80 works as expected.
in IE 11.0.xxxx works, just the text-orientation is ignored
in Firefox 42 the content after the vertical heading completely disappears and the browser gets a very long horizontal scrollbar.
I don't know if that is a Flexbox issue or rather a Firefox bug (more likely)
Screenshots (chrome-works; firefox-bug)
The text was updated successfully, but these errors were encountered: