Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26899

    That depends on where you define <style> section in your document. Also it depends on media attribute value.

    Can you publish a minimalistic example, which illustrates the issue?

    #29471

    @PD4ML wrote:

    Can you publish a minimalistic example, which illustrates the issue?

    Yes, i did it.

    This is source page:

    <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Title</title><meta content="Apache Tapestry Framework (version 5.3.7)" name="generator"/><meta content="text/html; charset=utf-8" http-equiv="content-type"/><link type="text/css" rel="stylesheet" href="/assets/1.0-SNAPSHOT/core/default.css"/><link type="text/css" rel="stylesheet" href="/assets/1.0-SNAPSHOT/jquery/themes/ui-lightness/jquery-ui-1.8.19.custom.css"/><style>
    label,
    input,
    button,
    select,
    textarea {
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
    }
    label {
    display: block;
    margin-bottom: 5px;
    }
    .label,
    .badge {
    display: inline-block;
    padding: 2px 4px;
    font-size: 11.844px;
    font-weight: bold;
    line-height: 14px;
    color: #ffffff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    white-space: normal;
    vertical-align: baseline;
    background-color: #999999;
    }
    .label:empty,
    .badge:empty {
    display: none;
    }
    .label {
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    }
    .label-success,
    .badge-success {
    background-color: #468847;
    }
    .label-success[href],
    .badge-success[href] {
    background-color: #356635;
    }
    .btn .label,
    .btn .badge {
    position: relative;
    top: -1px;
    }
    .btn-mini .label,
    .btn-mini .badge {
    top: 0;
    }
    </style></head><body><span class="label label-success">Some text</span></body></html>

    “Some text” isn’t printed into final pdf/rtf

    BUT if I replace <body> a bit:
    <body>Some text<span class="label label-success">Some text</span></body>

    I can see BOTH “Some text” strings into pdf/rtf

    #29472

    Same problem with tables:

    <body>
    <table>
    <tr>
    <td><span class="label label-success">Some text1</span>
    </td>
    <td>
    ups
    <span class="label label-success">Some text2</span>
    </td>
    </tr>
    </table>
    </body>

    I can see only “Some text2” in PDF/RTF.

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

The forum ‘General questions / FAQ’ is closed to new topics and replies.