[Webkit-unassigned] [Bug 159791] New: setting a property on CSSStyleDeclaration no longer sets the -webkit prefixed property automatically

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 14 15:43:06 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=159791

            Bug ID: 159791
           Summary: setting a property on CSSStyleDeclaration no longer
                    sets the -webkit prefixed property automatically
    Classification: Unclassified
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: erwin.mombay at gmail.com

When you have webkit prefixed css animations, you could previously overwrite it through `element.style.animation = 'none'`
and `element.style.webkitAnimation` would be set automatically. In Safari Technology preview it only sets the un-prefixed style
which causes the example below to never be visible. I'm guessing this is because https://bugs.webkit.org/show_bug.cgi?id=104803
has not been implemented yet and work is in progress.

example:

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
    <style>
      body {
        -webkit-animation: -start 100s steps(1,end) 0s 1 normal both;
        animation: -start 100s steps(1,end) 0s 1 normal both;
      }

      @-webkit-keyframes -start { 
        from {visibility:hidden} to {visibility:visible}
      }
      @keyframes -start { 
        from {visibility:hidden} to {visibility:visible}
      }
    </style>
</head>
<body>
  hello world
  <script>
    document.body.style.opacity = 1;
    document.body.style.visibility = 'visible';
    document.body.style.animation = 'none';
  </script>
</body>
</html>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160714/51aeaecf/attachment-0001.html>


More information about the webkit-unassigned mailing list