Closed Bug 1385469 Opened 7 years ago Closed 7 years ago

Stylo: Linear-gradient render different with and without stylo

Categories

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

defect

Tracking

()

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

People

(Reporter: striptm, Assigned: xidorn)

References

(Blocks 1 open bug)

Details

(Keywords: nightly-community)

Attachments

(3 files)

I suppose it is something induced and you want to stop supporting the old draft of css gradients. But I have seen web pages that are affected.

Using the current css engine with old css cross browser, the gradient goes in one direction and with Stylo is in the opposite direction.
Summary: Linear-gradient render different with and without stylo → Stylo: Linear-gradient render different with and without stylo
Here is another issue with -webkit-linear-gradient() directions.  It looks like a bare "bottom" or "top" is ignored, although "bottom right" or "top right" works.  Shing, since you worked on bug 1372821, do you want to take a look at this one?
Blocks: stylo
Flags: needinfo?(shing.lyu)
Priority: -- → P2
And thanks for the bug report, Fernando.
Priority: P2 → --
This happens because -webkit-linear-gradient is defined to be an alias of linear-gradient, and this is using one of the many older deprecated syntaxes for it.
Priority: -- → P3
(In reply to Manish Goregaokar [:manishearth] from comment #3)
> This happens because -webkit-linear-gradient is defined to be an alias of
> linear-gradient, and this is using one of the many older deprecated syntaxes
> for it.

That's... not because of that...

It is because gradient implementation is so complicated that you can never predict what would happen when you do an innocent-looking change.
Assignee: nobody → xidorn+moz
Flags: needinfo?(shing.lyu)
Comment on attachment 8893678 [details]
Always set mBgPos for LineDirection::Vertical.

https://reviewboard.mozilla.org/r/164784/#review170182

Looks good to me. Thanks for fixing!
Attachment #8893678 - Flags: review?(canaltinova) → review+
Oh, I thought it was because the syntax left out the `to`, which IIRC is invalid for linear gradient (and thus for -webkit-gradient *according to the spec* but we're not following that)
The fix itself is Servo-side only. I'm going to land that part now. The Gecko-side change is just adding new tests, so it is probably fine to land later.
Comment on attachment 8893679 [details]
Bug 1385469 - Add wpt for line direction in -webkit-prefixed linear gradient function.

https://reviewboard.mozilla.org/r/164786/#review170416
Attachment #8893679 - Flags: review?(dholbert) → review+
We're sorry, Autoland could not rebase your commits for you automatically. Please manually rebase your commits and try again.

hg error in cmd: hg rebase -s 065d6a5b2660 -d 4289bf021340: rebasing 411725:065d6a5b2660 "Always set mBgPos for LineDirection::Vertical. r=canaltinova"
note: rebase of 411725:065d6a5b2660 created no changes to commit
rebasing 411726:a1ba442dc72b "Bug 1385469 - Add wpt for line direction in -webkit-prefixed linear gradient function. r=dholbert" (tip)
merging testing/web-platform/meta/MANIFEST.json
warning: conflicts while merging testing/web-platform/meta/MANIFEST.json! (edit, then use 'hg resolve --mark')
unresolved conflicts (see hg resolve, then hg rebase --continue)
Pushed by xquan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f914a210d73f
Add wpt for line direction in -webkit-prefixed linear gradient function. r=dholbert
https://hg.mozilla.org/mozilla-central/rev/f914a210d73f
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
(In reply to Xidorn Quan [:xidorn] UTC+10 from comment #11)
> Servo PR: servo/servo#17971

Verified fixed in Nightly 57 x64 20170804193726 @ Debian Testing.
Status: RESOLVED → VERIFIED
Has STR: --- → yes
Version: unspecified → Trunk
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: