Giter Club home page Giter Club logo

Comments (5)

mjschlot avatar mjschlot commented on June 15, 2024 1

The issue appears to be related to selectors like:
abbr[title]
This situation exists in packages like normalize.css (https://github.com/necolas/normalize.css/blob/master/normalize.css).

Possible fix would be to test if node.value is undefined in transform.js
if (node.type === 'attribute' && node.value !== undefined) {

I'm not familiar enough with postcss to know if this is the best fix though.

from postcss-calc.

KangdaOOLin avatar KangdaOOLin commented on June 15, 2024 1

Thank you for answer. The first option is correct fix the issue for me. But we often inevitably encounter code like below:

button[disabled] {}

@mjschlot you should submit a pr and wait merged by author. 👍

from postcss-calc.

KangdaOOLin avatar KangdaOOLin commented on June 15, 2024

I has same issue. Does anyone know how to solve this problem ?

from postcss-calc.

mjschlot avatar mjschlot commented on June 15, 2024

@wenkanglin I know of two options:

  • Avoid the use of attribute selectors that do not have a value (e.g. abbr[title])
  • Or, the code needs to be updated like I suggested in my last post. I would submit a pull request but I really don't know if my fix the best way to address this or not.

from postcss-calc.

Semigradsky avatar Semigradsky commented on June 15, 2024

Fixed in v6.0.1

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.