I'm reading through the epub3 spec and trying to get a handle on what media queries can be used for in combination with fixed layout documents.
I'd like to be able to create fixed layout pages with <meta name="viewport"
specified for specific devices and select which device-specific pages are actually included in the reading order and ToC based on the device's screen dimensions.
The best route towards this seems to be to use the 'hidden' attribute on the <li>
element in the nav xhtml, but this can't be altered by css as far as I can see.
I've also tried css visibility
and display
attributes, but these are clearly designed to change current rendering, not add or remove actual rendering-independant content - whereas the epub3 spec (as well as the html spec) suggests that hidden
is intended for exactly the kind of thing I want to do.
Otherwise, any ideas on showing a different fixed layout page based on device screen dimensions would be gratefully received!
What you're looking for is the concept of "rendition mapping", rather than media query. It's the ability to select entirely different renditions (layouts, including reading order) based on device characteristics (among other criteria) within the same publication.
It's not in the current EPUB 3.0 specification, but it's chartered to be a future addition. See the rendition mapping charter, specifically the section on Rendition Selection and Mapping.