Runalyze "Save" button has the wrong background.
Categories
(Web Compatibility :: Site Reports, defect, P3)
Tracking
(firefox76 unaffected, firefox77 unaffected, firefox78 fixed)
Tracking | Status | |
---|---|---|
firefox76 | --- | unaffected |
firefox77 | --- | unaffected |
firefox78 | --- | fixed |
People
(Reporter: ekr, Unassigned)
References
(Regression)
Details
(Keywords: webcompat:site-wait)
Attachments
(3 files)
Reporter | ||
Comment 1•4 years ago
|
||
STR:
- Log into https://runalyze.com/
- Create a workout
- Edit the workout.
- The save button at the bottom of the lightboxed overlay will be invisible (it's actually a white "Save" on a very light beige background).
Expected results:
The Save button will have background #012E38
Actual results:
The Save button has background #fofoc0
Reporter | ||
Comment 2•4 years ago
|
||
Reporter | ||
Comment 3•4 years ago
|
||
Reporter | ||
Comment 4•4 years ago
|
||
The second image is Chrome Release.
Reporter | ||
Comment 5•4 years ago
|
||
I haven't spent too much time on this, but the proximal issue appears to be that in Firefox we are getting the color for:
input:read-only, input:disabled, input:read-only {
background-color: #f0f0e0;
}
Whereas in Chrome we ge:
input[type=submit] {
border: 0;
background-color: #012e38;
color: #e6eaeb!important;
padding: 8px 12px!important;
cursor: pointer;
font-size: 11px;
min-width: 100px;
box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);
}
There is also a
.button:hover, input[type="submit"]:hover {
background-color: #1a5664;
color: #cde1e6 !important;
}
This does work properly in both Firefox in Chrome, so perhaps it's somehow interfering with the bare input[type="submit"] being processed? I wasn't able to induce our dev tools to show me the non-hover version because as soon as I select the button I get the hover version so I'm slightly guessing here.
Comment 6•4 years ago
•
|
||
Interesting, this is likely due to Bug 312971 landing recently (as it does not reproduce in Dev Edition).
For the rule in https://c2.runalyze.com/assets/css/runalyze-forms.less
(actually @ https://c2.runalyze.com/assets/css/runalyze-style.css?v=4.121.2)
input:disabled,
input:read-only,
input:-moz-read-only {
background-color: #f0f0e0;
}
Presumably that rule didn't apply pre-312971 because it failed to parse the selector due to us not supporting unprefixed :read-only
, and it doesn't apply in Chrome because they don't support :-moz-read-only
. But now we support both, so the rule is valid.
Comment 7•4 years ago
|
||
Probably outreach is the right thing here, I'll see if I can find someone who works on the site.
The recommended fix is deleting that selector.
Updated•4 years ago
|
Reporter | ||
Comment 8•4 years ago
|
||
Thanks to gl, here is the CSS on Firefox with hover disabled
element {
}
input:read-only, input:disabled, input:read-only {
background-color: #f0f0e0;
}
.button, input[type="submit"] {
border: 0;
background-color: #012e38;
color: #e6eaeb !important;
padding: 8px 12px !important;
cursor: pointer;
font-size: 11px;
min-width: 100px;
box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12);
}
So it looks like in Chrome .button, input[type="submit"] { is taking priority over input:read-only, input:disabled, input:read-only { and in Firefox vice vesa.
Reporter | ||
Comment 9•4 years ago
|
||
Comment 10•4 years ago
|
||
Reduced test case.
https://codepen.io/webcompat/pen/dyYEBOo?editors=1100
Safari has the same rendering than firefox.
it can be summarized to
<input type="submit" value="Save">
<style>
input {
background-color: rgb(1, 46, 56);
color: rgb(230, 234, 235) !important;
}
input:read-only {
background-color: rgb(240, 240, 224);
}
</style>
while :read-only
is processed by Firefox and Safari, Chrome seems to ignore it.
seems related to https://bugs.chromium.org/p/chromium/issues/detail?id=939143
and https://bugzilla.mozilla.org/show_bug.cgi?id=620766
Comment 11•4 years ago
|
||
(sent a message to the founder/web developer on LinkedIn)
Updated•4 years ago
|
Comment 12•4 years ago
|
||
Got a reply, they're going to remove the rule.
Comment 13•4 years ago
|
||
Comment 14•4 years ago
|
||
This is fixed now.
Updated•4 years ago
|
Description
•