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)
Core
CSS Parsing and Computation
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.
Reporter | ||
Updated•7 years ago
|
Summary: Linear-gradient render different with and without stylo → Stylo: Linear-gradient render different with and without stylo
Comment 1•7 years ago
|
||
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?
Comment 2•7 years ago
|
||
And thanks for the bug report, Fernando.
Assignee | ||
Updated•7 years ago
|
Blocks: stylo-site-issues
Updated•7 years ago
|
Keywords: nightly-community
Updated•7 years ago
|
Priority: P2 → --
Comment 3•7 years ago
|
||
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
Assignee | ||
Comment 4•7 years ago
|
||
(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 hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 7•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=bc3f1af1ef966f1545417c757d392d321858bf26
Comment 8•7 years ago
|
||
mozreview-review |
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+
Comment 9•7 years ago
|
||
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)
Assignee | ||
Comment 10•7 years ago
|
||
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.
Assignee | ||
Comment 11•7 years ago
|
||
Servo PR: servo/servo#17971
Comment 12•7 years ago
|
||
mozreview-review |
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+
Comment 13•7 years ago
|
||
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)
Comment 14•7 years ago
|
||
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
Comment 15•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f914a210d73f
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Comment 16•7 years ago
|
||
(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
Updated•7 years ago
|
status-firefox55:
--- → wontfix
status-firefox56:
--- → wontfix
status-firefox-esr52:
--- → unaffected
You need to log in
before you can comment on or make changes to this bug.
Description
•