Bug 191265 - Adding @keyframes to a style tag via innerHTML doesn't seem to work
Summary: Adding @keyframes to a style tag via innerHTML doesn't seem to work
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 11
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: https://codepen.io/jasonwilliams1/pen...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-11-05 09:04 PST by Jason Williams
Modified: 2022-09-12 04:19 PDT (History)
6 users (show)

See Also:


Attachments
Chrome Dev Tools showing Keyframes are parsed (237.65 KB, image/png)
2018-11-05 09:04 PST, Jason Williams
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Williams 2018-11-05 09:04:46 PST
Created attachment 353867 [details]
Chrome Dev Tools showing Keyframes are parsed

* Steps to Replicate: *
* Navigate to https://codepen.io/jasonwilliams1/pen/NEqWbG using Safari
* Notice the marquee doesn't move

* Description *
Adding @Keyframes to a <style> tag via `.innerHTML()' doesn't seem to work on Safari browsers. Tested on Version 11.1.2 (13605.3.8)

This does however, work on:
Chrome Chrome 70.0.3538
FireFox Developer Edition 64.0b5 (64-bit)
Microsoft Edge 41.16299.15.0
Although .innerHTML() isn't an ideal way of adding styles to an <style> element, this does work in some browsers and not others.

The attachment shows that chrome understands the stylerules once applied
Comment 1 Jason Williams 2018-11-05 09:05:05 PST
Linked with https://github.com/webcompat/web-bugs/issues/20910
Comment 3 Radar WebKit Bug Importer 2018-11-07 02:09:20 PST
<rdar://problem/45869859>
Comment 4 Ahmad Saleem 2022-09-12 04:19:05 PDT
I am not able to reproduce this bug in Safari 15.6.1 and Safari Technology Preview 153, "Scrolling Text" is behaving like marquee and moving and look similar to Chrome Canary 107 and Firefox Nightly 106.

I am going to mark this as "RESOLVED CONFIGURATION CHANGED". Please reopen, if it is still reproducible by anyone and preferably with updated test case. Thanks!