My favorite 8.5.3 feature has a small flaw

On October 4, 2011, in Uncategorized, by Mark Hughes

Great news this seems to have been fixed in the Gold code!!  My errors were with 8.5.3 cd5

 

First This is one of my favorite features in 8.5.3, but there is on caveat i have found just this past weekend.

When “Use Runtime Optimized CSS an JS Resources”  is checked on the XPage tab on application properties,

and you have a css file that refferences an image like

background-image:url(‘./test.png’)

 

It will NOT display the image.

For some reason the browser thinks the image is a css file, and not an image.  It even puts it in a css named folder.  To get around this include those styles on the page instead of in a css file.  I will submit this to IBM to see if we can get it fixed.

 

5 Responses to My favorite 8.5.3 feature has a small flaw

  1. Haven’t seen url(‘./test.png’) for a long time.
    Did you try url(‘test.png’) ? And yes the folder is correct. the path to an image is relative to the CSS location, not the XSP loaction. So the css folder makes sense.

  2. Mark Hughes says:

    Yes tried that as well, it finds the image fine, it transfers it with a mime type of css instead of image/png

  3. Paul Hannan says:

    It worked for me Mark.

    sadf

    asd

    f

    …and the style class…
    .back {
    background-image:url(sample.png);
    border-color:rgb(255,255,0);
    border-style:dotted;
    border-width:thin
    }

    Maybe it’s the path?

    p.

  4. Philippe Riand says:

    Yes, we discovered and fixed this issue at the very last minute, just before we shipped :-)

Leave a Reply

Your email address will not be published. Required fields are marked *