Closed Bug 1641382 Opened 4 years ago Closed 4 years ago

Runalyze "Save" button has the wrong background.

Categories

(Web Compatibility :: Site Reports, defect, P3)

Tracking

(firefox76 unaffected, firefox77 unaffected, firefox78 fixed)

RESOLVED FIXED
Tracking Status
firefox76 --- unaffected
firefox77 --- unaffected
firefox78 --- fixed

People

(Reporter: ekr, Unassigned)

References

(Regression)

Details

(Keywords: webcompat:site-wait)

Attachments

(3 files)

No description provided.

STR:

  1. Log into https://runalyze.com/
  2. Create a workout
  3. Edit the workout.
  4. 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

Attached image Firefox Nightly

The second image is Chrome Release.

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.

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.

Severity: -- → S3
Priority: -- → P3

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.

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.

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

(sent a message to the founder/web developer on LinkedIn)

Got a reply, they're going to remove the rule.

This is fixed now.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: