WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
197769
"Disable cache" causes difference in resource loading behavior for CSS style vs CSS custom property
https://bugs.webkit.org/show_bug.cgi?id=197769
Summary
"Disable cache" causes difference in resource loading behavior for CSS style ...
Terry
Reported
2019-05-10 01:48:30 PDT
Created
attachment 369549
[details]
Bug showing that when ignoring cache, CSS custom property causes resource to be re-requested Steps to reproduce the bug: 1. Open devtools and disable cache (aka ignore cache) in Network tab 2. Set up the element so that it uses a CSS custom property to be its "background-image" property 3. Update the CSS custom property with the same value. Note that the image will be re-requested The browser should not re-request a loaded resource when a CSS custom property is updated but whose value did not change. This behavior is not observed if the value is set using CSS property directly. This bug cannot be reproduced if the background image is set using the "backgroundImage" property in the style object. It appears to be a bug in the implementation of CSS custom properties. Interestingly, this bug cannot be reproduced on iOS Safari (at least from my testing on BrowserStack). This bug can also be reproduced in Google Chrome, but not on Mozilla Firefox.
Attachments
Bug showing that when ignoring cache, CSS custom property causes resource to be re-requested
(475.12 KB, video/mp4)
2019-05-10 01:48 PDT
,
Terry
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-05-12 14:59:06 PDT
<
rdar://problem/50708338
>
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