Ticket #935 (closed defect: invalid)
Element.Properties.opacity.get retrieves opacity from element's storage and not necessarily current opacity
| Reported by: | Devign | Owned by: | |
|---|---|---|---|
| Type: | defect | Priority: | minor |
| Milestone: | Mootools version 1.2 | Component: | Core |
| Keywords: | Opacity | Cc: |
Description
Element.Properties.opacity.get retrieves opacity from storage, and unlike getComputedStyle it cannot retrieve current opacity unless set by Element.Properties.opacity.set.
Could it always read from style like getComputedStyle does?
Code example:
if (Browser.Engine.trident) return this.filters.alpha ? this.filters.alpha.opacity : 1
else return +this.getComputedStyle("opacity") || 1;
Thanks
Change History
Note: See
TracTickets for help on using
tickets.