Comments (2)
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.
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)
- Support different clip-paths on different elements HOT 2
- Percentages in clip-path HOT 8
- Not supporting safari 5.1 version HOT 3
- 2 polygon in the same page HOT 5
- The size of mask-of HOT 4
- Any future support for Internet Explorer or Edge browsers? HOT 5
- 401 - Unauthorized: Access is denied due to invalid credentials. HOT 3
- Bower HOT 4
- clip-path-polygon transitions HOT 9
- typeof syntax error HOT 3
- Generated svg add empty space after all content HOT 10
- svg display: none breaking clip in FF OSX HOT 3
- Upgrade chrome 55 breaks script HOT 1
- Webpack issue - "Critical dependency: require function is used in a way in which dependencies cannot be statically extracted" HOT 7
- Internet Explorer (IE) 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 clip-path-polygon.