Closed Bug 1395189 Opened 8 years ago Closed 8 years ago

stylo: -webkit-linear-gradient defaults to "bottom" as start side (but should default to "top")

Categories

(Core :: CSS Parsing and Computation, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox-esr52 --- unaffected
firefox55 --- unaffected
firefox56 --- unaffected
firefox57 --- fixed

People

(Reporter: dholbert, Assigned: canova)

References

Details

(Keywords: regression, testcase)

Attachments

(2 files, 1 obsolete file)

Attached file testcase 1
STR: 1. Load attached testcase. EXPECTED RESULTS: The side by side divs should look the same. ACTUAL RESULTS: The first div (the one that doesn't specify a start-side for its gradient) has its gradient backwards -- it has blue at the top instead of red.
Chrome and Firefox Nightly without stylo gives EXPECTED RESULTS. Firefox Nightly with stylo gives ACTUAL RESULTS.
Summary: -webkit-linear-gradient defaults to "bottom" as start side (but should default to "top") → stylo: -webkit-linear-gradient defaults to "bottom" as start side (but should default to "top")
Nazim, can you have a look?
Assignee: nobody → canaltinova
Flags: needinfo?(canaltinova)
Priority: -- → P2
This patch works on my local build. Will do a try run to see.
Flags: needinfo?(canaltinova)
Comment on attachment 8902836 [details] Bug 1395189 - stylo: Properly set direction of prefixed linear gradients https://reviewboard.mozilla.org/r/174522/#review179654
Attachment #8902836 - Flags: review?(manishearth) → review+
Comment on attachment 8902865 [details] Bug 1395189 - Add reftest for default directions of prefixed linear gradients https://reviewboard.mozilla.org/r/174558/#review179664
Attachment #8902865 - Flags: review?(manishearth) → review+
Could you move the reftest to the layout/reftests/webkit-gradient directory (rather than in the modern "css-gradients" directory)? Thanks for the quick action on the fix, BTW!
Flags: needinfo?(canaltinova)
Moved thanks! I'll open a PR and land this after the previous try run finishes.
Flags: needinfo?(canaltinova)
We also needed to update points_downwards method to handle this.
Attachment #8902836 - Attachment is obsolete: true
Looks like the PR landed, NI Nazim to land the testcase.
Flags: needinfo?(canaltinova)
Pushed by canaltinova@gmail.com: https://hg.mozilla.org/integration/autoland/rev/d98a26d6f1c7 Add reftest for default directions of prefixed linear gradients r=manishearth
Oops, landed the testcase.
Flags: needinfo?(canaltinova)
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: