Closed Bug 2095051 Opened 17 days ago Closed 11 days ago

Update outdated CSS guidelines

Categories

(Developer Infrastructure :: Source Documentation, task)

task

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dao, Assigned: dao)

References

(Blocks 1 open bug)

Details

Attachments

(2 external files, 3 obsolete files)

Several sections of docs/code-quality/coding-style/css_guidelines.md no longer match the tree:

  • Both media query sections use -moz-mac-yosemite-theme, which Gecko no longer supports.
  • "Writing cross-platform CSS" lists Windows 7/8, Aero basic and Windows classic.
  • "Layout" is about XUL flexbox, which is gone.
  • "Content CSS vs. Theme CSS" describes a split between functional and visual styles that the tree no longer follows. Most stylesheets under content/ are theme stylesheets kept next to their component, sometimes so that a team can own them, since #desktop-theme-reviewers-rotation is only blocking under themes/.
  • "Adding new variables" suggests preprocessor variables, which no CSS in browser/ or toolkit/ uses; "Use the variable according to its naming" uses a variable that no longer exists; "File structure" mentions SeaMonkey.
  • "Formatting" describes what Prettier already does, and one rule contradicts Prettier. Other rules are enforced by stylelint (length-zero-no-unit) or the license linter without saying so, while the advice on logical properties and !important is only linted in newtab and asrouter.

Update or remove these sections, and point to the linters and the formatter where they enforce a rule.

Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Summary: Update the CSS guidelines to remove outdated advice → Update outdated CSS guidelines
Attachment #9686294 - Attachment description: Bug 2095051 - Update the CSS guidelines to remove outdated advice. r?#desktop-theme-reviewers DONTBUILD → Bug 2095051 - Update outdated CSS guidelines. r?#desktop-theme-reviewers DONTBUILD
Keywords: leave-open
Summary: Update outdated CSS guidelines → Update outdated CSS guidelines, and have the theme skills check the rules

Alternative to D344685: an experiment to see in production whether Review Helper opens the subject skills that desktop-theme routes to. Review Helper reads files by repository path and has no notion of a skill name.

Attachment #9686295 - Attachment is obsolete: true

Comment on attachment 9688272 [details]
Bug 2095051 - Load only the desktop-theme routing skill when reviewing theme and design-token files, and give the paths of the skills it routes to. r?#ai4dev-reviewers DONTBUILD

Revision D345147 was moved to bug 2090683. Setting attachment 9688272 [details] to obsolete.

Attachment #9688272 - Attachment is obsolete: true
Attachment #9687368 - Attachment description: Bug 2095051 - Load the CSS guidelines and the system color pairs reference when reviewing theme and design-token files. r?#ai4dev-reviewers DONTBUILD → WIP: Bug 2095051 - Load the CSS guidelines and the system color pairs reference when reviewing theme and design-token files. r?#ai4dev-reviewers DONTBUILD
Keywords: leave-open
Summary: Update outdated CSS guidelines, and have the theme skills check the rules → Update outdated CSS guidelines
Status: ASSIGNED → RESOLVED
Closed: 11 days ago
Resolution: --- → FIXED

Comment on attachment 9687368 [details]
WIP: Bug 2095051 - Load the CSS guidelines and the system color pairs reference when reviewing theme and design-token files. r?#ai4dev-reviewers DONTBUILD

Revision D344685 was moved to bug 2090683. Setting attachment 9687368 [details] to obsolete.

Attachment #9687368 - Attachment is obsolete: true
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/90c868bda8a1 https://hg.mozilla.org/integration/autoland/rev/e8cdd6e9b2ec Only ask for logical properties on the inline axis in the CSS guidelines. r=emilio DONTBUILD

A patch has been attached on this bug, which was already closed. Filing a separate bug will ensure better tracking. If this was not by mistake and further action is needed, please alert the appropriate party. (Or: if the patch doesn't change behavior -- e.g. landing a test case, or fixing a typo -- then feel free to disregard this message)

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: