You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the linear-gradient() and radial-gradient() functional notations are used inline, they are rewritten as invalid values when:
used inline as value of the background-image CSS property
used inline as value of the background and background-image CSS properties when both used on the same element and have the same value
This doesn't seem to affect embedded CSS in <style> tags.
Email Client
Gmail for Android (tested on 2024.01.14.599541078.Release and 2023.11.26.586591930.Release)
Operating System
Android 14
Expected Result
If the email client is meant to support the linear-gradient() notation as a value of the background-image or the background property, then the email client is expected to keep the inline CSS as is:
If the email client is not meant to support this, then the email client is expected to strip the relevant CSS property and its value only:
<divstyle="color:red;"></div>
Actual Result
When only background-image is used
linear-gradient() and radial-gradient() get wrapped in url()
the first 3 characters in linear and radial get stripped
When only background is used
linear-gradient() and radial-gradient() seem to be kept as is
When both background-image and background are present,
background-image is stripped
linear-gradient() and radial-gradient() in background get the same treatment it gets if it was used in background-image (wrapped in url() and first 3 characters get stripped)
When the
linear-gradient()
andradial-gradient()
functional notations are used inline, they are rewritten as invalid values when:background-image
CSS propertybackground
andbackground-image
CSS properties when both used on the same element and have the same valueThis doesn't seem to affect embedded CSS in
<style>
tags.Email Client
Gmail for Android (tested on 2024.01.14.599541078.Release and 2023.11.26.586591930.Release)
Operating System
Android 14
Expected Result
If the email client is meant to support the
linear-gradient()
notation as a value of thebackground-image
or thebackground
property, then the email client is expected to keep the inline CSS as is:If the email client is not meant to support this, then the email client is expected to strip the relevant CSS property and its value only:
Actual Result
background-image
is usedlinear-gradient()
andradial-gradient()
get wrapped inurl()
linear
andradial
get strippedbackground
is usedlinear-gradient()
andradial-gradient()
seem to be kept as isbackground-image
andbackground
are present,background-image
is strippedlinear-gradient()
andradial-gradient()
inbackground
get the same treatment it gets if it was used inbackground-image
(wrapped inurl()
and first 3 characters get stripped)Here is the test code rendered by Gmail Android:
Steps to reproduce
N/A
Code sample
The CanIEmail? test is what is rendered above: https://github.com/hteumeuleu/caniemail/blob/master/tests/css-gradients.html
Additional context
This was first reported by @aOpenbrier on hteumeuleu/caniemail#395
The text was updated successfully, but these errors were encountered: