WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
25681
Use of DL on page with float left, following HTML element also gets lined up to final DD element
https://bugs.webkit.org/show_bug.cgi?id=25681
Summary
Use of DL on page with float left, following HTML element also gets lined up ...
Matt Gray
Reported
2009-05-10 19:20:55 PDT
The main content of
http://www.mbf.com.au
is shifted off to the right of screen. They are using a DL with the DDs set to float left, to make the horizontal menu. The DIV that follows the closed DL then gets aligned to the left of one of the DDs. I have a reduced test case... will attach. It seems that if you set the font-size of the body to something between 56-71%, it will trigger the following div to move to the right... values outside this range seem fine. Also, if you put a border around either the DD or the following DIV, it will render correctly. The MBF page has this problem on Safari 3 and 4, but is rendered correctly on Firefox and IE. Maybe similar to
Bug 18273
? That seemed to be something to do with using DD...
Attachments
test case
(819 bytes, text/html)
2009-05-10 19:22 PDT
,
Matt Gray
no flags
Details
screenshot of problem
(82.31 KB, image/png)
2009-05-10 19:24 PDT
,
Matt Gray
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Matt Gray
Comment 1
2009-05-10 19:22:08 PDT
Created
attachment 30168
[details]
test case
Matt Gray
Comment 2
2009-05-10 19:24:44 PDT
Created
attachment 30169
[details]
screenshot of problem
Mark Rowe (bdash)
Comment 3
2009-05-10 20:01:19 PDT
Which version of WebKit did you test with? <
http://www.mbf.com.au/
> renders correctly for me with a build of WebKit from this afternoon.
Matt Gray
Comment 4
2009-05-10 20:31:42 PDT
The error is with (5528.16,
r43039
) and earlier. The error has been around for a long long time so I didn't think to check today's build, but maybe it has been fixed recently.
Matt Gray
Comment 5
2009-05-10 20:37:22 PDT
Just tested the latest nightly build - Version 4 Public Beta (5528.16,
r43444
). Still not laid out correctly - the main content of the page is way off to the right of where it should be.
Ahmad Saleem
Comment 6
2023-01-12 05:20:50 PST
I am not sure on the expected output but using attached test case: Safari Technology Preview 160 & Safari 16.2 show "This is a test... I should be.." line on left side as left-aligned. It matches with Firefox Nightly 110 while Chrome Canary 111 show it is as "center" aligned. Just wanted to share updated results and will tag others to confirm. Thanks!
Karl Dubost
Comment 7
2023-01-12 23:25:09 PST
So obviously the initial design of
https://mfb.com.au/
has changed. The behavior of Safari is aligned with the one of Safari. But the test case is probably not obvious. Having a better test case would probably help to better understand. But just removing the margin on dl#mbfNav { margin: 0 10px 0 10px; min-height: 27px; height: 2.4em; } fixes the issue on Chrome. hmmm… but… there is always a but… playing with zoom values, it changes the behavior. It jumps in between states of next line and beside. So probably related to the boxes. The real fix is clear:both. At least it is resilient to zoom in Firefox.
Radar WebKit Bug Importer
Comment 8
2024-02-08 15:46:14 PST
<
rdar://problem/122588520
>
Ahmad Saleem
Comment 9
2024-06-22 03:24:01 PDT
Just to flag Safari 18 Beta now matches with Chrome Canary 128 and show it in centre rather than left aligned (like previously matching with Firefox Nightly 129).
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug