FriendsOfEpub/Blitz

Kindle: nav landmarks not hidden

Closed this issue · 2 comments

The rule

nav[epub|type~="landmarks"],
nav[epub|type~="page-list"] {
  display: none;
}

is not enough to hide the landmarks (i think it's with page-list the same but i have no) at kindle (see screenshot)

image

I have to add the following rule

nav#landmarks {
  display: none;
}

OK thanks I just checked and it seems that Kindle is not taking the namespace into account, which is why it fails.

Alternatively, if you’re using the HTML5 hidden attribute, then

[hidden] {
  display: none;
}

works too. I’ll add that to the reset since there’s no way I can tell whether user will use an id or not.

Closing this as it was addressed a long time ago but please bear in mind it might not work in the “Look Inside” feature.