We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

bug? missing feature? on sailfish os browser [answered]

asked 2018-04-24 14:57:17 +0300

gabs5807 gravatar image

Hello, the https://dominionrandomizer.com did not work on jolla browser. The page should show random cards for the deck game dominion, but the only the back side is shown (after a short flip to the front side). This problem is on the Jolla Phone, the Tablet (version 2.1.4.14) and also on the fairphone port of sailfish os (version 2.1.3.7).

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by gabs5807
close date 2018-05-01 14:16:47.340242

Comments

3

Don't know much about this stuff, but I tested out of curiosity, and found that only the back side is shown on Jolla browser and also on Firefox Android browser, but on Webcat, (Sailfish app), and on Naked browser, (Android), it's working notmally...

Levone1 ( 2018-04-24 16:50:14 +0300 )edit
1

You should use this thread: https://together.jolla.com/question/7367/wiki-unsupportedproblematic-websites-in-sailfish-browser/ to report browser problems.

magullo ( 2018-04-26 11:50:44 +0300 )edit

2 Answers

Sort by » oldest newest most voted
5

answered 2018-04-25 23:28:17 +0300

DaveRo gravatar image

updated 2018-04-27 09:14:05 +0300

TL;DR
https://github.com/blakevanlan/KingdomCreator/issues/5

This may be due to this incompatibility:
https://bugzilla.mozilla.org/show_bug.cgi?id=1256980
The transforms happen, but the z-index brings the back-face to the top.

If I add this userstyle:

div {z-index:auto!important}

then it shows the front-faces. (I'm using the Stylus addon in Firefox here, but it could be done with userContent.css in the SFOS browser.)

I don't know if the site now works correctly - I don't know how it's meant to behave. When is it suposed to show the backs of the cards?

Added after further investigation:

I'm not now convinced this bug applies. According to the bug description z-index does apply to 'positioned' elements, and an element is said to be positioned if its 'position' property has a value other than 'static'.

The computed style of one of these card backs as initially displayed is

HTML > BODY > DIV.content > DIV.main > DIV#cards > DIV.card-wrap selected > DIV.flipper show-front > DIV.card-back
position: absolute
backface-visibility: hidden
margin-*: 0px
transform: none
transform-style: flat
transition-duration: 0s
transition-property: all
z-index: 2
That doesn't change after the transforms caused by 'replace'. So the element is positioned and the z-index applies - which puts it on top.

If this is correct it may still be a gecko bug but not that one. Or there's a bug in the site code. Or the bug may be in webkit and its derivatives - and Edge too!

There is at least one other z-index on the site so a better userstyle is

div.card-back {z-index:auto!important}
I amended my earlier userstyle below. Has anybody who knows how this game works tried it?

Added in answer to comment:
The Stylus addon allows you to specify which site a userstyle applies to, but if you can't use an addon you can specify it like this:

@-moz-document url-prefix(https://dominionrandomizer.com/)
{
/* Test: suppress effect of z-index on cards */
div.card-back {z-index:auto!important}
}

Note: This style was only to diagnose the problem. I don't know what other effects might result from knocking out z-index: it presumably serves some purpose.

Create a directory chrome in your SFOS browser profile and add the style into a text file userContent.css. I would do this on a PC and then copy the file across, but on the Jolla you could do:

mkdir .mozilla/mozembed/chrome/
nano .mozilla/mozembed/chrome/userContent.css
You can use userContent.css in all gecko browsers, BTW. On Jolla/Alien put it in
/opt/alien/data/data/org.mozilla.firefox/files/mozilla/xxxxxxx.default/chrome/userContent.css
But Stylus works on Android and has the advantage that you can turn styles on and off easily.

edit flag offensive delete publish link more

Comments

Hello DaveRo, where can i find the userContent.css for the sailfish os browser? Many thanks.

gabs5807 ( 2018-04-26 00:47:40 +0300 )edit

Hello DaveRo, many thanks for your advanced help. The described work around works fine ;-).

I will get in contact with the page owner and tell him the problem. May be he can change the web side behavoir.

gabs5807 ( 2018-04-26 23:08:59 +0300 )edit
1

@gabs5807 I raised an issue and he fixed it. https://github.com/blakevanlan/KingdomCreator/issues/5

DaveRo ( 2018-04-27 09:08:22 +0300 )edit

@DaveRo Thank you. The page works fine now ;-).

gabs5807 ( 2018-05-01 14:19:28 +0300 )edit
4

answered 2018-04-25 16:52:07 +0300

molan gravatar image

Same problem using the latest version of Firefox Browser (desktop). Looks like the content of the website isn't compatible with web browsers based on the gecko-engine by Mozilla. It seems to work with the blink- (Chromium, Opera) and webkit-engine (see comment by @Levone1 about Webcat).

I suggest you open an issue here https://github.com/blakevanlan/KingdomCreator/issues to inform the website developer.

As a temporary solution you can use the Webcat browser (also available for the Jolla tablet): https://openrepos.net/content/llelectronics/webcat

edit flag offensive delete publish link more

Comments

1

Thank you for the information. I'll try the webcat browser ..

gabs5807 ( 2018-04-26 00:44:19 +0300 )edit

Question tools

Follow
1 follower

Stats

Asked: 2018-04-24 14:57:17 +0300

Seen: 654 times

Last updated: Apr 27 '18