crosswalk-project / crosswalk

A web runtime built on Chrome. This project is currently unmaintained.
https://crosswalk-project.org/blog/crosswalk-final-release.html
BSD 3-Clause "New" or "Revised" License
2.33k stars 652 forks source link

How to Enable-Experimental-WebPlatform-Features #4015

Closed Gaubee closed 7 years ago

Gaubee commented 7 years ago

I want to use backdrop-filter css property, but it only work on safari. in chromium, this feature will enable when use chromium flags: --enable-experimental-web-platform-features. I don't know how to use this in crosswalk, please help.

Gaubee commented 7 years ago

I use cordova. I change the variable of the cordova-plugin-crosswalk-webview plugin in config.xml:

<variable name="XWALK_COMMANDLINE" value="--disable-pull-to-refresh-effect --enable-experimental-web-platform-features" />

but when I run cordova build android , the config will be overwrite back to:

 <variable name="XWALK_COMMANDLINE" value="--disable-pull-to-refresh-effect" />

And then , I force rewrite this file %PROJECT%/platforms/android/cordova-plugin-crosswalk-webview/bnlc-xwalk.gradle

ext.xwalkCommandLine = getConfigPreference("xwalkCommandLine")+' --enable-experimental-web-platform-features'

finally it work for me.


Now I think This is an bug.

Gaubee commented 7 years ago

Oh, My wrong, I should do this:

cordova plugin add cordova-plugin-crosswalk-webview  --variable XWALK_COMMANDLINE="--disable-pull-to-refresh-effect --enable-experimental-web-platform-features"
erickvieira commented 5 years ago

Can you give more details about your project setup? It didn't work for me, anyway. Whats your cordova version, for example?

From my config.xml:

<plugin name="cordova-plugin-crosswalk-webview" spec="2.4.0">  
    <variable name="XWALK_COMMANDLINE" value="--disable-pull-to-refresh-effect --enable-experimental-web-platform-features" />  
    <variable name="XWALK_VERSION" value="23+" />  
    <variable name="XWALK_LITEVERSION" value="xwalk_core_library_canary:17+" />  
    <variable name="XWALK_MODE" value="embedded" />  
    <variable name="XWALK_MULTIPLEAPK" value="true" />  
</plugin>
d410 commented 5 years ago

Did you ever enable this flag on a cordova project?