Closed Bug 1367299 Opened 7 years ago Closed 7 years ago

stylo: Serialization is different for -webkit-radial-gradient

Categories

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

53 Branch
defect

Tracking

()

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

People

(Reporter: xidorn, Assigned: xidorn)

References

Details

Attachments

(1 file)

For: -webkit-radial-gradient(contain, red, blue)
gecko -> radial-gradient(closest-side, red, blue)
stylo -> -webkit-radial-gradient(center center, contain, red, blue)

I have no idea which is expected... I suspect stylo one.
It seems different browsers give different answer for this:
gecko: radial-gradient(closest-side, red, blue)
stylo: -webkit-radial-gradient(center center, contain, red, blue)
blink: -webkit-radial-gradient(center, ellipse contain, red, blue)
edge : -webkit-radial-gradient(contain, red, blue)

I guess all of them are effectively identical.

I tried to unconditionally set cssGradient->mIsLegacySyntax if there is webkit-prefix, but it seems the serialization code in nsCSSValue doesn't handle this case correctly, and generates "-webkit-radial-gradient(closest-side, red, blue)", which is probably invalid as a legacy syntax.
Priority: -- → P3
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Bug 1380259 fixes the serialization differences for computed values, but not for specified values. I am reopening this bug to track the work required to fix this for specified values.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
I'll take care of this.

Setting P1 because it is the last blocker for enabling more mochitests.
Assignee: nobody → xidorn+moz
Blocks: 1383992
Priority: P3 → P1
Comment on attachment 8893690 [details]
Bug 1367299 - Allow -webkit-radial-gradient to be serialized in different way with stylo.

https://reviewboard.mozilla.org/r/164812/#review170414
Attachment #8893690 - Flags: review?(dholbert) → review+
Pushed by xquan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4289bf021340
Allow -webkit-radial-gradient to be serialized in different way with stylo. r=dholbert
https://hg.mozilla.org/mozilla-central/rev/4289bf021340
Status: REOPENED → RESOLVED
Closed: 7 years ago7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: