Closed Bug 1066627 Opened 10 years ago Closed 10 years ago

[svg-magic] Implement CSS generator.

Categories

(Firefox :: General, enhancement)

x86
All
enhancement
Not set
normal
Points:
1

Tracking

()

RESOLVED FIXED
Iteration:
35.2

People

(Reporter: bwinton, Assigned: bwinton)

References

Details

Generate an include file for the CSS, as described below.

toolbarSprites.inc (generated):
  %define whateverButton list-style-image: url("chrome://browser/skin/toolbars.svg");-moz-image-region: rect(0, 14px, 10px, 0);
  %define whateverHover -moz-image-region: rect(0, 14px, 10px, 10px);
  %define whateverActive -moz-image-region: rect(0, 14px, 10px, 20px);

toolbar.css (non-generated/in-tree already):
  %include toolbarSprites.inc
  %filter substitution
  …
  .whateverButton {
    @whateverButton@
    margin: 0;
  }
  .whateverButton:hover {
    @whateverHover@
    margin: 0;
  }
  .whateverButton:active {
    @whateverActive@
    margin: 0;
  }

One point, because the generation is really pretty simple, and entirely specced out.
Flags: firefox-backlog+
Flags: qe-verify?
Flags: qe-verify? → qe-verify-
Assignee: nobody → bwinton
Status: NEW → ASSIGNED
Iteration: --- → 35.2
I have a preliminary version of this up, and will ping shorlander for review tomorrow.
Fixed, as per https://github.com/bwinton/svg-magic/commit/6819a351a7bdc0b27fced969c8568ecfe23be3f5
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.