docbook-apps

HTML5 style attributes override CSS

  • 1.  HTML5 style attributes override CSS

    Posted 01-25-2013 12:28
    I'm getting other spurious 'style' attributes with hardcoded styles
    using 1.77.1 HTML5/EPUB 3. (My previous question about width and height
    on img has been fixed.) These attributes should probably be removed,
    because I can't override them with CSS styles. (The HTML5 specs don't
    state that my specific examples are deprecated/obsolete.) The elements
    are being generated with classes, which is sufficient for CSS, but the
    additional 'style' attribute seems to effectively kill that
    functionality. I'm aware that a lot of this is probably generated by
    templates in html5-element-mods.xsl. Can these style templates please be
    revised?

    Width (and height) on external SVG:

    <divclass="mediaobject">