[Webkit-unassigned] [Bug 145805] Unwanted vertical single-pixel gap appears between floated elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 9 13:42:09 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=145805

--- Comment #2 from Richard Hallas <Richard at Hallas.net> ---
zalan: Thank you very much for those extremely helpful comments.

The reason why the container was set to inline-table was to do with what happens if the page isn't wide enough to accommodate all the text (i.e. if the breadcrumbs text becomes very long and the page happens to be very narrow). With inline-table set, the browser splits up and rewraps the content, and it remains visible; without it, the content pops off the bottom of the page.

Anyway, after a little experimentation I've fixed the problem by removing the float: right; from the 'pageidtext' element. I can't remember at this stage why both elements were floated (perhaps that was a mistake), but I don't think they needed to be. By ceasing to float the text component and retaining the inline-table setting of the parent element, it continues to work as before in very narrow confines, but the pixel-gap problem goes away.

So, my site is fixed; great! Thanks again.

I still think it was worth reporting the problem, though, because the pixel-gap behaviour is new to recent versions of WebKit (it didn't exist when I created the site).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150609/79e5fd8a/attachment.html>


More information about the webkit-unassigned mailing list