-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Description
In Chrome's device mode, iron-media-query returns:
- true regardless of width when calling the queryMatches property (this.$.mq.queryMatches)
- undefined when binding to the query-matches matches property (this.query)
Expected outcome
Should return true/false depending on viewport width.
Actual outcome
Returns true when calling element property.
Returns undefined when data binding.
Steps to reproduce
- Put a
iron-media-queryelement in the page.
<iron-media-query id="mq" query="(max-width: 321px)" query-matches="{{query}}"></iron-media-query>
- Give element id.
- Create function that logs the query-matches data binding. (e.g. this.query)
- Create function that logs elements property directly. (e.g. this.$.mq.queryMatches)
- Turn on dev tools > toggle device toolbar
- Refresh page.
Browsers Affected
- Chrome
- Firefox
- Safari 9
- Safari 8
- Safari 7
- Edge
- IE 11
- IE 10
josercarmo
Metadata
Metadata
Assignees
Labels
No labels