Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working in Chrome's device mode #40

Open
1 of 8 tasks
kvnapavl opened this issue Jan 19, 2017 · 0 comments
Open
1 of 8 tasks

Not working in Chrome's device mode #40

kvnapavl opened this issue Jan 19, 2017 · 0 comments

Comments

@kvnapavl
Copy link

Description

In Chrome's device mode, iron-media-query returns:

  1. true regardless of width when calling the queryMatches property (this.$.mq.queryMatches)
  2. 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

  1. Put a iron-media-query element in the page.

<iron-media-query id="mq" query="(max-width: 321px)" query-matches="{{query}}"></iron-media-query>

  1. Give element id.
  2. Create function that logs the query-matches data binding. (e.g. this.query)
  3. Create function that logs elements property directly. (e.g. this.$.mq.queryMatches)
  4. Turn on dev tools > toggle device toolbar
  5. Refresh page.

Browsers Affected

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant