0

I have made some webpage with css shapes where text align to transparent imgage and in browser everything is ok, but when I render it with PhantomJS it's all messed up. Does PhantomJS support css shapes?

Wacław Łabuda
  • 575
  • 1
  • 4
  • 5

1 Answers1

1

Phantom doesn't support CSS shapes. The current version (2.0.1) is based on a WebKit version that was released in November 2013. Whereas canisuse.com reports that the earliest Safari version (7.1) that had CSS shapes support was released in September 2014.

Community
  • 1
  • 1
Artjom B.
  • 61,146
  • 24
  • 125
  • 222
  • Safari is more or less the only major browser that is based on WebKit, so I use that for comparison. – Artjom B. Jan 04 '16 at 13:24
  • is there a chance to support it in future? – Wacław Łabuda Jan 04 '16 at 13:51
  • Sure, future versions of PhantomJS can support CSS shapes if the development team decides to change the underlying WebKit engine, but this is usually a very very challenging task, because there are always some breaking changes in newer WebKit versions that require custom patching to make the PhantomJS wrapper around WebKit work. I don't know whether such a major change is on the agenda within the version 2.x. – Artjom B. Jan 04 '16 at 14:07
  • By the way, which PhantomJS version do you use? [Modernizr](http://modernizr.github.io/Modernizr/test/) detects CSS shape support for PhantomJS 2.0.0. So, I guess it's not fully implemented. – Artjom B. Jan 04 '16 at 14:14
  • I have phantomJS 1.9.8 version – Wacław Łabuda Jan 07 '16 at 09:29
  • Then I suggest that you try to use PhantomJS 2.x – Artjom B. Jan 07 '16 at 09:53