Closed Bug 1650293 Opened 4 years ago Closed 4 years ago

Background-color in dir:first-of-type is not working on Firefox 78 and 79

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED INVALID
Tracking Status
firefox78 --- wontfix
firefox79 --- wontfix
firefox80 --- wontfix

People

(Reporter: prada960808, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(3 files)

Attached file poc_min.html

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36

Steps to reproduce:

  1. download Firefox binary from https://ftp.mozilla.org/pub/firefox/releases/ (76.0b8, 77.0b9, 78.0b7, 78.0esr, 79.0b2)
  2. open poc.html on Firefox 76.0b8, 77.0b9, 78.0b7, 78.0esr, 79.0b2

Actual results:

Background-color in dir:first-of-type is not working on Firefox 78 and 79.
The rendering results of Firefox 76.0b8, 77.0b9 and 78.0b7, 78.0esr, 79.0b2 are different.

Expected results:

Background-color in dir:first-of-type should be black.

Attached image 77.0b9.png
Attached image 78.0esr.png

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0

Hi,

I have managed to reproduce this issue on Release version 78.0.1, Beta 79.0b5 and latest Nightly 80.0a1 (2020-07-08) using Windows 10.

Further, I will move this over to a component so developers can take a look over it. If this is not the correct component please feel free to change it to an appropriate one.

This is a regression, here is the pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=3f463aabe0de79354acec0c38f348633bbcdeff0&tochange=9bedd57840edbba0a91f41e8347a6a724473d13a

Thanks for your report.

Status: UNCONFIRMED → NEW
Component: Untriaged → CSS Parsing and Computation
Ever confirmed: true
Flags: needinfo?(emilio)
Keywords: regression
Product: Firefox → Core
Regressed by: 312971
Version: 78 Branch → Trunk
Has Regression Range: --- → yes

This is invalid. After bug 312971 input:read-only matches and thus the input takes space and shifts the <dir>. Our rendering of the test-case matches other browsers, afaict. The background rule still applies and works just fine.

Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(emilio)
Resolution: --- → INVALID

(In reply to Emilio Cobos Álvarez (:emilio) (PTO until Jul 10) from comment #4)

This is invalid. After bug 312971 input:read-only matches and thus the input takes space and shifts the <dir>. Our rendering of the test-case matches other browsers, afaict. The background rule still applies and works just fine.

Unlike Firefox 77, it is not possible to see the background color (black) in Firefox 78, 79, 80.
Which one is correct?

Status: RESOLVED → REOPENED
Resolution: INVALID → ---

Firefox 78+ is correct. Previous versions of firefox didn't recognize input:read-only { min-height: 89vh;. If you remove that rule from the test-case FF78+ behaves the same as previous versions of Firefox.

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

Attachment

General

Creator:
Created:
Updated:
Size: