Bug 114690 - display:table size in viewport units isn't updated after a window resize
Summary: display:table size in viewport units isn't updated after a window resize
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: http://chris.improbable.org/experimen...
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-16 10:17 PDT by Chris Adams
Modified: 2022-07-13 14:42 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Adams 2013-04-16 10:17:10 PDT
http://chris.improbable.org/experiments/browser/image-viewer/ is a simplified, pure-CSS version of an image viewer I'm experimenting with which uses display:table to attempt to vertically center an image on the page and uses viewport units to resize the image to fit within the window. This works well initially but if the user resizes the window both Safari and Chrome will fail to update the sizes (reloading the page works, of course); Firefox handles this situation perfectly.

Removing the display:table rules fixes resizing but removes the ability to vertically center an element which is smaller than the page height such as the map example.
Comment 1 Chris Adams 2014-08-04 11:16:51 PDT
This was fixed in Blink:

http://src.chromium.org/viewvc/blink?view=revision&revision=164448