Bug 40789 - WebKit fails common vertical-centering technique, CSS WG agrees WebKit is wrong here
Summary: WebKit fails common vertical-centering technique, CSS WG agrees WebKit is wro...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-17 10:44 PDT by Beth Dakin
Modified: 2022-06-27 14:24 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Beth Dakin 2010-06-17 10:44:11 PDT
Title says it all.

Test case: http://test.csswg.org/source/contributors/microsoft/incoming/top-with-negative-top-001.xht

Original question: http://lists.w3.org/Archives/Public/www-style/2009Jun/0056.html

Issue as tracked by WG: http://wiki.csswg.org/spec/css2.1#issue-134

It was decided that the correct behavior would be for the Orange band to be *totally* centered based on the middle of the div, not based on the top as it is in firefox.
Comment 1 Simon Fraser (smfr) 2010-06-17 10:53:07 PDT
Maybe related to bug 14762, according to mitz.
Comment 2 Ahmad Saleem 2022-06-27 13:55:06 PDT
I took the test case from the linked W3 archive and changed it to following JSFiddle:

Link - https://jsfiddle.net/uew2op4f/show

All browsers including Safari 15.5 on macOS 12.4 are rendering "this is some text" in same way and there is no difference in position etc.

I think this was fixed along the way and this can be marked as "RESOLVED CONFIGURATION CHANGED". Thanks!