Closed
Bug 622285
Opened 14 years ago
Closed 14 years ago
CSS warnings: "Error in parsing value for 'size'/'position'. Declaration dropped." Solution: remove Rect_css method and instead allow iQ's css method to accept Rect arguments
Categories
(Firefox Graveyard :: Panorama, defect, P2)
Firefox Graveyard
Panorama
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mitcho, Assigned: mitcho)
References
Details
(Whiteboard: [qa-][good first bug][cleanup])
Attachments
(1 file, 2 obsolete files)
7.23 KB,
patch
|
Details | Diff | Splinter Review |
When Panorama is open, a lot of CSS warnings show up: > Warning: Error in parsing value for 'size'. Declaration dropped. > Source File: chrome://browser/content/tabview.html > Line: 0 > Warning: Error in parsing value for 'position'. Declaration dropped. > Source File: chrome://browser/content/tabview.html > Line: 0 We need to clean these up. They're messy and unprofessional, and may actually indicate that there are CSS declarations or dynamic styles which are not being applied as intended.
Assignee | ||
Comment 1•14 years ago
|
||
So this has to do with the few instances where we give iQ's css() a Rect object. This is because right now we can't pass a rect into css(), but have to pass rect.css() into css(). This can be confusing and, as the warnings indicate, we have forgotten it in some places. Solution: make it so iQ's css() *does* accept Rect objects directly. If the argument is a Rect, css() can turn it into the appropriate properties object. This makes more sense than our current approach, as we ultimately want to move to using Geometry.jsm (bug 585672). The Rect class offered by Geometry.jsm has no .css(). As iQ is already aware of the Rect class, the proposed solution makes more sense and will alleviate a developer papercut.
Assignee | ||
Updated•14 years ago
|
Summary: CSS warnings: Error in parsing value for 'size'/'position'. Declaration dropped. → CSS warnings: "Error in parsing value for 'size'/'position'. Declaration dropped." Solution: remove Rect_css method and instead allow iQ's css method to accept Rect arguments
Assignee | ||
Comment 2•14 years ago
|
||
Attachment #500541 -
Flags: review?(ian)
Comment 3•14 years ago
|
||
Comment on attachment 500541 [details] [diff] [review] Patch v1 Looks good, but to be complete you need to do the same for iQ's .animate. R+ with that.
Attachment #500541 -
Flags: review?(ian) → review+
Assignee | ||
Comment 4•14 years ago
|
||
Thanks Ian. Added the same treatment to animate. Can we land this without a mochitest?
Attachment #500541 -
Attachment is obsolete: true
Attachment #501166 -
Flags: approval2.0?
Assignee | ||
Comment 5•14 years ago
|
||
Pushed patch v1.1 to try today. Passed.
Comment 6•14 years ago
|
||
Yeah, I don't think it needs a test.
Comment 7•14 years ago
|
||
Comment on attachment 501166 [details] [diff] [review] Patch v1.1 a=beltzner
Attachment #501166 -
Flags: approval2.0? → approval2.0+
Assignee | ||
Comment 8•14 years ago
|
||
Attachment #501166 -
Attachment is obsolete: true
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 9•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/bbec1daa766b
Updated•8 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•