Giter Club home page Giter Club logo

Comments (3)

ausi avatar ausi commented on June 2, 2024

What do you mean by supported? Can you give an example?

width: min-content and width: max-content doesn’t get recognized currently. But it should be easy to add rules for it to the isIntrinsicSize() function.

If column-width works correctly or not, depends on the use-case I think. If an element with a column-width gets used as the container for a query the results are probably incorrect.

from cq-prolyfill.

nategreen avatar nategreen commented on June 2, 2024

Yeah, what I was wondering specifically was whether I could do something like .btn-toolbar:container(width < max-content) { /* styles that collapse buttons into a dropdown menu */ }. Now that I think that through more, though, doing something like that would change the value of max-content so it wouldn't work the way I'd want it to anyway (if it didn't just blow up altogether. 😏).

I'm trying to get my head around how we could use element/container queries for a project I'm working on. Haven't had time to actually try cq-prolyfill out yet, just wanted to understand what the possibilities are. :) Thanks!

from cq-prolyfill.

ausi avatar ausi commented on June 2, 2024

Now that I think that through more, though, doing something like that would change the value of max-content so it wouldn't work the way I'd want it to anyway (if it didn't just blow up altogether. 😏).

Yeah, that could end in an endless loop, which is one of the issues this proposal/prolyfill tries to prevent.

Haven't had time to actually try cq-prolyfill out yet, just wanted to understand what the possibilities are.

I think the most common use cases should be covered by the demo.

from cq-prolyfill.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.