Hello,
first of all merry Christmas! ;)

[sorry if this message gets delivered twice. I sent it yesterday, but I don't 
see it in the list...]

And now about my problem.
I was using turbopower_ipro components from August, and only now I have updated 
Lazarus to current SVN state.
Now when I load some html with css in it, some css styles are not applied (are 
not visible).
I looked through updates in code and I found out, that when I comment out line 
nr. 561 in ipcss.inc file, the html file gets displayed correctly.
The code snippet is:
----------8<-----------------------
function TCSSProps.GetCommandArgs(ACommand: String): TStringList;
var
  i: Integer;
  WantArg: Boolean;
  Arg: String;
  Start: Integer;
  Quote: char;
begin
  Result := TStringList.Create;
  Start := Pos(':', ACommand)+1;
  ACommand := ACommand + ' ';   //  <-- what is this line for? :)  line nr. 561

<..>
---------->8-----------------------
Can someone (if anyone knows) tell what is that line for? Is it important?

The example html I use is (the text style bold is not wisible when html is 
rendered by component):
----------8<-----------------------

<html><head><meta http-equiv="Content-Language" content="lt">
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<style type="text/css">
.txt { font-family: "@Arial Unicode MS"; font-size: "10pt"; color: #000000 }
.tst { position: relative; margin-top: 0; margin-bottom: 0; margin-left: 40px; }
A {
 TEXT-DECORATION: none;
 border-bottom-style: dashed;
 border-bottom-width: 1px;
 color: #555577;
}

BODY {
 text-align: justify;
}

.Word {
 color: #000000;
 font-weight: bold;
}

.Description {
 color: #000000;
}

</style>
</head><body><font class="txt">
<font class="Word">hello - </font>
<font class="Description">labas</font>
</font></body></html>

---------->8-----------------------


Regards,
Zilvinas Ledas

_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to