[Webkit-unassigned] [Bug 171015] New: Safari rejects changes between similar unprefixed & prefixed gradient syntax

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 19 15:21:20 PDT 2017


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

            Bug ID: 171015
           Summary: Safari rejects changes between similar unprefixed &
                    prefixed gradient syntax
           Product: WebKit
           Version: Safari 10
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dholbert at mozilla.com

STR:
Load https://people-mozilla.org/~dholbert/bugreports/webkit-linear-gradient/test1.html

EXPECTED RESULTS:
 Top two divs should look the same (and have orange at the top).
 Bottom two divs should look the same (and have blue at the top).

ACTUAL RESULTS:
The right two divs reject the dynamic style tweak - they have the gradient going in the wrong direction.

NOTES:
* The testcase is testing dynamic changes between "linear-gradient" and "-webkit-linear-gradient" expressions.  (Note that these syntaxes should point the gradient in *opposite directions* -- the prefixed version is implicitly "from" a given point, whereas the unprefixed version is "to" the given point.)

* The top 2 divs are both given unprefixed linear-gradient(to bottom, orange, blue), though the top-right div ("p2u") is first briefly given a prefixed style.  This seems to prevent it from accepting the change to the unprefixed style.

* Similar (but reverse) for the bottom 2 divs - they should both end up with prefixed -webkit-linear-gradient in their style attributes, with blue at the top in the rendering.


I'm guessing that the CSS Parser is mistakenly thinking that the new style is the same as the old style, and rejecting the style change.

Firefox Nightly 55 & Edge 14 both give "expected result".  Chrome 59 dev and Safari 10 give the buggy results.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170419/57666865/attachment.html>


More information about the webkit-unassigned mailing list