Comments (3)
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.
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.
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)
- Does cq-prolyfill inlined my style? HOT 1
- Minified cq-prolyfill.js file with gulp-concat doesn't work HOT 1
- Add stylesheet URL whitelist option
- Idea: ability to pre-parse CSS at build time
- Try to remove or reduce the FOUC problem HOT 10
- Add support for attribute selector based queries HOT 1
- Donβt run the script multiple times in the same frame HOT 1
- Use ResizeObserver HOT 8
- Use CSS Houdini (CSS Typed OM Level 1) to get the computed style HOT 1
- Check for max- and min-width and -height values
- In Safari with disabled cache container queries doesn't apply on first script load HOT 4
- Production as default, development/demo configurable HOT 1
- Improve getContainer, remove duplicated calls to getComputedStyle
- Raise minimum supported browser versions HOT 3
- Handling CSS Import Rule
- getContainer() delivers wrong element if element has size defined in percent HOT 8
- mixins.scss missing from package
- [IE11] Wrong Result if used with CSS Grid Layout HOT 2
- Don't work in Chrome 112 HOT 2
- Not working in Chrome anymore HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cq-prolyfill.