Closed Bug 1088789 Opened 10 years ago Closed 10 years ago

Undefined negative-space CSS variable

Categories

(Firefox :: Theme, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 36
Tracking Status
firefox35 --- fixed
firefox36 --- fixed

People

(Reporter: mossop, Assigned: bgrins)

References

Details

Attachments

(1 file)

Seeing lots of these errors while running tests on fx-team right now:

Property contained reference to invalid variable.  Error in parsing value for 'transform'.  Falling back to 'initial'." {file: "chrome://browser/skin/browser.css" line: 7287 column: 226408 source: " translateY(calc(0px - var(--negative-space)))"}

negative-space doesn't seem to be defined anywhere.
Dang, that should have been --space-above-tabbar.  I'll submit a fix
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
This was a mistake between reviews.  Because of a limitation with variables where I couldn't do: -var(--foo) to get a negated version of the variable I originally just added an extra variable like this:

--space-above-tabbar: 9px;
--negative-space: -9px;

Then we figured out that you could do this instead and not have to duplicate the variable name:

calc(0px - var(--foo))

So I switched to the expression but forgot to change the name in this attachment: https://bugzilla.mozilla.org/attachment.cgi?bugid=1088789&action=enter :(
Attachment #8511196 - Flags: review?(jaws)
Comment on attachment 8511196 [details] [diff] [review]
variable-fix.patch

Review of attachment 8511196 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM, thanks for the back-story.
Attachment #8511196 - Flags: review?(jaws) → review+
https://hg.mozilla.org/mozilla-central/rev/1c7ed7ed67ab
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 36
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: