Comments (16)
does disabling postcss-calc work? I am trying to find a fix
from postcss-calc.
+1
from postcss-calc.
Related to MoOx/reduce-css-calc#34
from postcss-calc.
How to deal with ?
from postcss-calc.
Is there a spec for constant
yet?
from postcss-calc.
constant
will not be in the specification ever - it renamed to env
.
But env
not in spec yet too
w3c/csswg-drafts#1693
I think that needs one more supported browser.
from postcss-calc.
See this https://medium.com/@draganeror/iphone-x-layout-features-with-css-environment-variables-d57423433dec for reference.
from postcss-calc.
from postcss-calc.
FYI: I wrote a simple workaround in a comment in MoOx/reduce-css-calc#34
from postcss-calc.
Please update the dependence of reduce-css-calc~
This has been fixed recently
MoOx/reduce-css-calc#48
from postcss-calc.
Should be fixed in latest release.
from postcss-calc.
.video { width: 100%; height: calc(width*56.25); }
this produces same error. could we probably update post-css-calc to handle "width/height" also?
from postcss-calc.
could we probably update post-css-calc to handle "width/height" also?
@demosglok Why would we? I don't see this in any of the specifications, and it doesn't work in any of the browsers I've tested.
from postcss-calc.
works fine in chrome. and in mobile browsers. i'll retest
from postcss-calc.
where is the reference for this syntax: height: calc(width*56.25)
according to this, its not supported:
https://stackoverflow.com/questions/11243075/css-scale-height-to-match-width-possibly-with-a-formfactor#comment36903688_11243226
also note that you must have spaces around operators inside calc
from postcss-calc.
ok, i retested everywhere. seems not working, though one laptop with latest chrome worked well for mobile mode (devtools->check mobile icon)
so not relevant for now, seems
from postcss-calc.
Related Issues (20)
- Compile wrong with CSS custom properties
- wrong/insufficient reduction HOT 2
- Support min, max, clamp HOT 2
- Simple var multiplication breaks HOT 5
- Space between multiplication and division operators is clamped with custom properties HOT 3
- Move postcss to peerDependencies HOT 2
- error compiling valid calc expression
- FATAL Nuxt build error HOT 1
- Floating number with unknown unit can't be parsed HOT 3
- Fails with SCSS variables HOT 2
- "ParserError: Syntax Error" with negative multiplication and vars HOT 4
- Please do not calculate the percentage in calc()
- ChainAlert: npm version 8.1.0 has new or changed maintainer HOT 2
- [Bug]: repository not shown on npmjs.com
- [Bug]: `calc` disappears if extra pair of parentheses around the argument
- [Bug]: Remove duplicate repository field in package.json
- [Feature Request]: Support for `min()` and `max()` HOT 1
- [Bug]: Lexical error on line ... : Unrecognized text.
- [Feature Request]:
- [Bug]: Parse error when using container query units (e.g. cqw) HOT 2
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 postcss-calc.