Closed Bug 1294623 Opened 8 years ago Closed 8 years ago

Firefox does not rendering webkit gradient correctly

Categories

(Core :: CSS Parsing and Computation, defect)

48 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1210575

People

(Reporter: isurunix, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0 Build ID: 20160728204513 Steps to reproduce: Bug was original found while visiting the Nylas N1 auth page. Since it is not practical to visit it I have created a sample with code from the Nylas page. 1. Download the attached firefox-webkit-bug.zip 2. Extract it. 3. Open the index.html in Firefox. You should see a white blank page 4. Right click on the page and select Inspect Element 5. Click the <body> tag in the html source 6. You will see the css with a warning message 7. To compare open the same index.html in Opera Developer or Chrome 8. You should see a subtle gradient 9. See firefox.png and opera.png in the zip for comparison. Platform : Ubuntu 14.04 x86_64 3.13.0-93-generic Actual results: Firefox only gave a white background without the gradients Expected results: Give proper gradient colors
Component: Untriaged → General
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
-webkit is a proprietary prefix, and Firefox is built on Gecko (not webkit). Ideally the website should be providing standards-based CSS instead of the webkit-specific version. Firefox now has an implementation for these gradients, but it's behind a flag by default. To test it, you can flip the "layout.css.prefixes.webkit" flag in about:config. With it set to true, this test page: http://jsbin.com/keluhuxiwe/edit?html,css,output (which uses more or less the same CSS as your attachment) seems to work for me. Dan, are we planning to enable the webkit stuff on desktop at some point? Reporter, do you have contacts with Nylas that we can ask to update their website so it works in more browsers?
Blocks: 1210575
Component: General → CSS Parsing and Computation
Flags: needinfo?(isurunix)
Flags: needinfo?(dholbert)
Keywords: testcase
OS: Linux → All
Product: Firefox → Core
Hardware: x86_64 → All
(In reply to :Gijs Kruitbosch (PTO recovery mode) from comment #1) > -webkit is a proprietary prefix, and Firefox is built on Gecko (not webkit). > Ideally the website should be providing standards-based CSS instead of the > webkit-specific version. > > Firefox now has an implementation for these gradients, but it's behind a > flag by default. To test it, you can flip the "layout.css.prefixes.webkit" > flag in about:config. With it set to true, this test page: > http://jsbin.com/keluhuxiwe/edit?html,css,output (which uses more or less > the same CSS as your attachment) seems to work for me. > > Dan, are we planning to enable the webkit stuff on desktop at some point? > Reporter, do you have contacts with Nylas that we can ask to update their > website so it works in more browsers? Oh, I didn't knew about that flag and actually I though Firefox is has this feature enabled by default. After setting the flag I can see it is being rendered correctly. Kruitbosh, unfortunately I have no contact with Nylas other than their twitter handle and some email conversions regarding some issues. Anyway I'll reach out to them regarding this issue.
Flags: needinfo?(isurunix)
(In reply to :Gijs Kruitbosch (PTO recovery mode) from comment #1) > Dan, are we planning to enable the webkit stuff on desktop at some point? Yes - this is enabled by default in Firefox 49 (currently on beta), via bug 1259345. (I'll resolve this as a duplicate of bug 1210575, which is where we added [preffed-off] support for this -webkit-radial-gradient syntax originally.) Thanks for filing bugs when you notice stuff seems broken, in any case!
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(dholbert)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: