Giter Club home page Giter Club logo

Comments (16)

MarvinXu avatar MarvinXu commented on June 7, 2024 1

does disabling postcss-calc work? I am trying to find a fix

from postcss-calc.

natiz avatar natiz commented on June 7, 2024 1

+1

from postcss-calc.

Semigradsky avatar Semigradsky commented on June 7, 2024

Related to MoOx/reduce-css-calc#34

from postcss-calc.

Aaronphy avatar Aaronphy commented on June 7, 2024

How to deal with ?

from postcss-calc.

jonathantneal avatar jonathantneal commented on June 7, 2024

Is there a spec for constant yet?

from postcss-calc.

Semigradsky avatar Semigradsky commented on June 7, 2024

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.

zoosky avatar zoosky commented on June 7, 2024

See this https://medium.com/@draganeror/iphone-x-layout-features-with-css-environment-variables-d57423433dec for reference.

from postcss-calc.

zoosky avatar zoosky commented on June 7, 2024

See MoOx/reduce-css-calc#34

from postcss-calc.

guylando avatar guylando commented on June 7, 2024

FYI: I wrote a simple workaround in a comment in MoOx/reduce-css-calc#34

from postcss-calc.

pujiaxun avatar pujiaxun commented on June 7, 2024

Please update the dependence of reduce-css-calc~
This has been fixed recently
MoOx/reduce-css-calc#48

from postcss-calc.

andyjansson avatar andyjansson commented on June 7, 2024

Should be fixed in latest release.

from postcss-calc.

demosglok avatar demosglok commented on June 7, 2024

.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.

andyjansson avatar andyjansson commented on June 7, 2024

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.

demosglok avatar demosglok commented on June 7, 2024

works fine in chrome. and in mobile browsers. i'll retest

from postcss-calc.

guylando avatar guylando commented on June 7, 2024

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.

demosglok avatar demosglok commented on June 7, 2024

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)

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.