Bug 114690
Summary: | display:table size in viewport units isn't updated after a window resize | ||
---|---|---|---|
Product: | WebKit | Reporter: | Chris Adams <chris> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED CONFIGURATION CHANGED | ||
Severity: | Normal | CC: | bfulgham |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://chris.improbable.org/experiments/browser/image-viewer/ |
Chris Adams
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.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Chris Adams
This was fixed in Blink:
http://src.chromium.org/viewvc/blink?view=revision&revision=164448