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

ElementQuery #1

Open
kettanaito opened this issue May 11, 2018 · 5 comments
Open

ElementQuery #1

kettanaito opened this issue May 11, 2018 · 5 comments
Labels
help wanted Extra attention is needed needs:discussion Further information is requested
Milestone

Comments

@kettanaito
Copy link
Owner

kettanaito commented May 11, 2018

What

Need to consider Element Queries non-standard feature.

Why

That is a brand new look at the components and their responsive behavior. I believe that in the conjuncture with the traditional media queries this could allow to create immersive responsive experiences.

How

  1. CSS Element Queries
  2. Alternative

Specification

See the Element Query API proposal.

@kettanaito kettanaito added help wanted Extra attention is needed needs:discussion Further information is requested labels May 28, 2018
@kettanaito kettanaito changed the title Consider element query ElementQuery May 29, 2018
@kettanaito
Copy link
Owner Author

Worth looking into: Solving CSS container queries

@kettanaito
Copy link
Owner Author

There is also a ResiveObserver supported in Chrome, and supposedly having a polyfill.

@kettanaito kettanaito removed the help wanted Extra attention is needed label Jan 28, 2019
@kettanaito kettanaito reopened this Feb 13, 2019
@kettanaito
Copy link
Owner Author

To update this pending issue: I still cherish the idea of element (container) queries, and I find them a missing piece in the modern responsive layout development.

The primary question I have is the API for this feature, as a part of Atomic layout.

@kettanaito
Copy link
Owner Author

kettanaito commented Oct 17, 2019

API proposal

Here's a few thoughts on the Element Query API: https://gist.github.com/kettanaito/f315769267c31df2afc904dee291c5bc

I'd appreciate any feedback on the proposal. I think the last suggestion (to treat Element Query as a custom Responsive prop bound to a component) is the most versatile API yet.

@kettanaito kettanaito added the help wanted Extra attention is needed label Oct 18, 2019
@kettanaito kettanaito pinned this issue Oct 25, 2019
@kettanaito kettanaito added this to the 1.0 milestone Oct 26, 2019
@kettanaito
Copy link
Owner Author

Interesting observer-based pattern from Envato:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed needs:discussion Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant