WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
106388
Page does not reflow correctly if there is latency in a link'd stylesheet
https://bugs.webkit.org/show_bug.cgi?id=106388
Summary
Page does not reflow correctly if there is latency in a link'd stylesheet
Thomas R
Reported
2013-01-08 14:59:14 PST
Created
attachment 181775
[details]
Test case. Change the wait= to 0 in index.html to disable the delay If an external stylesheet that contains layout-modifying properties (such as padding) has some latency in its response, it does not trigger a reflow when it finally loads. Given this DOM structure: div (width:300px; border: 1px solid green) div (class of inner, background: yellow) div (background-color: red; height: 20px) along with a referenced CSS file that contains: .inner { padding: 20px; } You would expect to see (and indeed do, if the stylesheet is read with no delay) the following:
http://i.imgur.com/L9rIU.png
However, if a delay is synthesized (say, 3 seconds) between when the server receives a request, and when the HTTP Status header is returned, the page will usually not reflow correctly, as seen here:
http://i.imgur.com/TASeK.png
If the delay is inserted between when the server sends the Status header, and when it writes the CSS file content, the incorrect behaviour is not observed. Behaviour observed in Safari, Chrome and WebKit Nightly (537+). Could not replicate in Mobile Safari or Deck.
Attachments
Test case. Change the wait= to 0 in index.html to disable the delay
(3.00 KB, application/x-tar)
2013-01-08 14:59 PST
,
Thomas R
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
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