Git Product home page Git Product logo

Comments (2)

andrusieczko avatar andrusieczko commented on July 20, 2024

Hi,

I'm sorry for not responding, I've been traveling.

That's a valid point, I'll try to look at your issue this week. I'll try to alter the library the that accepts mixed values.

Not sure if Firefox likes that though. I'll keep you updated.

Thanks for this issue,
Karol

from clip-path-polygon.

andrusieczko avatar andrusieczko commented on July 20, 2024

Hi,

So I checked the browser support and unfortunately,Firefox's Gecko engine still doesn't support this...
Here's the thread: https://bugzilla.mozilla.org/show_bug.cgi?id=1075457

So Chrome and any webkit based browsers support clip-path as a basic style (in CSS). Gecko engines need SVG clip-path definition.

In SVG clip-path, there are only two types of units you can use: userSpaceOnUse and objectBoundingBox (https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/clipPathUnits).
Long story short, userSpaceOnUse is used when you pass the absolute values and objectBoundingBox requires normalized values between 0 and 1, so it's handy when dealing with percents.

Unfortunately, SVG doesn't support mixing the units, so it is technically impossible to make it happen, albeit the code proposal has been recently sent.

Thus, I'm not sure if adding this option won't be confusing (as it'd work only in webkit browsers).

I'd like to hear your opinion on this.

Cheers,
Karol

from clip-path-polygon.

Related Issues (16)

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.