Closed
Bug 1495004
Opened 8 years ago
Closed 8 years ago
Bad rendering of http://johanssonskrog.se/Meny.html
Categories
(Core :: Layout, defect, P4)
Tracking
()
RESOLVED
INVALID
People
(Reporter: henrik, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0
Build ID: 20180913170256
Steps to reproduce:
Go to http://johanssonskrog.se/Meny.html
Actual results:
Ugly rendering, text colliding and things in the wrong place. Chrome renders correctly. This is on Linux
Expected results:
Should look like chrome rendering
Comment 1•8 years ago
|
||
Please attach a screenshot using the "attach a file" link in this report.
The page itself looks OK for me with Firefox64 on windows
Flags: needinfo?(henrik)
Comment 3•8 years ago
|
||
The rendering is ok with Firefox 62+64 on windows but I can reproduce the bad rendering on Linux.
I guess this has something to do with different fronts used on linux.
Component: Untriaged → Layout
Product: Firefox → Core
Comment 4•8 years ago
|
||
I see the same problems in layout in Chrome, Safari and Firefox on Mac OS X 10.13.6. The site uses Lato loaded from Google fonts, and I see Lato loaded correctly. Even if you change to one of the fallback fonts, like Helvetica, the rendering issue is still going to be there. The content overlaps because divs have been placed absolutely and the values used don't match the height of the content. Seems like it would be better to achieve the layout in some other way.
:henrik can you explain how the absolute positioning values were derived?
Tested in the following:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Safari/605.1.15
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:64.0) Gecko/20100101 Firefox/64.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
Flags: needinfo?(henrik)
Priority: -- → P4
Sorry, I cannot explain how the positioning values were derived. It's not my web page. I'm just so used to everything rendering correctly so I thought it was best to report it, especially since it looked OK on Chrome.
Flags: needinfo?(henrik)
Comment 6•8 years ago
|
||
The rendering on windows looks ok
Comment 7•8 years ago
|
||
(In reply to henrik from comment #5)
> Sorry, I cannot explain how the positioning values were derived. It's not my
> web page. I'm just so used to everything rendering correctly so I thought it
> was best to report it, especially since it looked OK on Chrome.
No worries, thank you for reporting regardless.
A closer look reveals that the paragraphs use |white-space: pre-wrap| to insert space between the menu item and the price, and the columns are set to a fixed width, so on Mac and Linux the prices are pushed down a line, perhaps due to font rendering differences.
Comment 8•8 years ago
|
||
The layout depends on font metrics. The "columns" are styled with a fixed width:
<div class="self mobile-leaf text textnormal" style="width:304px;min-height:904px;">
and the text has font-size:14px. (setting it to 13px makes it render as expected)
I don't think there's an actual bug in Firefox here, just a badly designed
web page. (Hard-coded widths like that are bad, since they don't work well
when the user overrides the font in Preferences.)
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•