Closed Bug 2060862 Opened 1 month ago Closed 29 days ago

Prevent `:has()` usage on the main window

Categories

(Firefox :: Theme, defect)

defect

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox155 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file)

Maybe with an escape hatch for very well reasoned things. The size of the DOM of the main window is very varied depending on the number of open tabs etc, and :has() scales with that in a way it's not easy to optimize, see bug 2054065 for example.

There's virtually always a better way to do things.

See Also: → 2054065

See bug 2054065 for an example of what we're trying to prevent.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/50a7e859636a https://hg.mozilla.org/integration/autoland/rev/6a147be2c1d7 Add a stylelint rule for :has(). r=dao,desktop-theme-reviewers,devtools-reviewers,fxview-reviewers,tabbrowser-reviewers,webcompat-reviewers,urlbar-reviewers,omarg,twisniewski,nchevobbe,jsudiaman,Gijs
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f1488191e1b5 https://hg.mozilla.org/integration/autoland/rev/66831b35241a Revert "Bug 2060862 - Add a stylelint rule for :has(). r=dao,desktop-theme-reviewers,devtools-reviewers,fxview-reviewers,tabbrowser-reviewers,webcompat-reviewers,urlbar-reviewers,omarg,twisniewski,nchevobbe,jsudiaman,Gijs" for causing lint failures @ aboutNetError.css
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6fde85fcae9c https://hg.mozilla.org/integration/autoland/rev/f06e1d57bf64 Add a stylelint rule for :has(). r=dao,desktop-theme-reviewers,devtools-reviewers,fxview-reviewers,tabbrowser-reviewers,webcompat-reviewers,urlbar-reviewers,omarg,twisniewski,nchevobbe,jsudiaman,Gijs
Flags: needinfo?(emilio)
Status: ASSIGNED → RESOLVED
Closed: 29 days ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
QA Whiteboard: [qa-triage-done-c156/b155]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: