Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26337

    Selecting an element based on multiple elements doesn’t appera to work. For example div.a.b {font-weight: bold} isn’t possible with pd4ml.

    Is there a workound for this problem?

    Reto

    <?xml version='1.0' encoding='utf-8' ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
    <head>
    <meta content='text/html;charset=UTF-8' http-equiv='Content-Type' />
    <style>
    body .x div.a.b {
    color: green; }
    </style>
    </head>
    <body>
    <div class='x y'>
    <div class='a b c d'>
    asdfsadf
    </div>
    </div>
    </body>
    </html>

    #27868

    For the particular HTML sample a workaround would be to change the style to

    body .x div.a {
    color: green;
    }

    PD4ML does not support selectors combine multiple classes, like “div.a.b“.

    We’ll add support for it to the forthcoming release.

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.