You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Regina Henschel <rb...@t-online.de> on 2014/08/16 21:01:15 UTC
Re: Development progress on SVG-graphics
Hi all,
there have been some discussions in German in private emails before the
implementations. That was a wrong behavior and should not happen again,
please excuse this.
I'll translate and summarize here some of those discussions:
CSS knows a large variety of selectors in a rule, read
http://www.w3.org/TR/CSS21/selector.html. We discussed to which extend
they should be supported. Because currently Inkscape supports CSS only
rudimentary, and there are no special requests in Bugzilla, and other
areas of CSS (e.g. filter and animation) are more important, the
decision has been, to support only those selectors, which can be
implemented straightforward within the existing design. Find details
about current implementation in the comments in
main/svgio/source/svgreader/svgstylenode.cxx.
There exists currently no code to load external data which are
referenced in a svg-image. Therefore support for "@import" rule has been
postponed.
In contrast to browsers, the environment, in which svg-images are used
in Apache OpenOffice, has no user-defined style sheets. In addition
'@import' rule is not supported. So the author's rule is always taken
and authors can directly determine the order of styles. Therefore the
'!important' part of a description is ignored for now.
A CSS-style is stored in a SvgStyleAttributes-instance. Each svg-node
gets a linked list of pointers to styles, ordered according the priority
specified by "cascading". The list is build once using method
fillCssStyleVector. (I hope, I've got it right.)
Kind regards
Regina
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org
Re: Development progress on SVG-graphics
Posted by Armin Le Grand <Ar...@me.com>.
Hi Regina,
On 16.08.2014 21:01, Regina Henschel wrote:
> Hi all,
>
> there have been some discussions in German in private emails before
> the implementations. That was a wrong behavior and should not happen
> again, please excuse this.
>
> I'll translate and summarize here some of those discussions:
>
> CSS knows a large variety of selectors in a rule, read
> http://www.w3.org/TR/CSS21/selector.html. We discussed to which extend
> they should be supported. Because currently Inkscape supports CSS only
> rudimentary, and there are no special requests in Bugzilla, and other
> areas of CSS (e.g. filter and animation) are more important, the
> decision has been, to support only those selectors, which can be
> implemented straightforward within the existing design. Find details
> about current implementation in the comments in
> main/svgio/source/svgreader/svgstylenode.cxx.
>
> There exists currently no code to load external data which are
> referenced in a svg-image. Therefore support for "@import" rule has
> been postponed.
>
> In contrast to browsers, the environment, in which svg-images are used
> in Apache OpenOffice, has no user-defined style sheets. In addition
> '@import' rule is not supported. So the author's rule is always taken
> and authors can directly determine the order of styles. Therefore the
> '!important' part of a description is ignored for now.
>
> A CSS-style is stored in a SvgStyleAttributes-instance. Each svg-node
> gets a linked list of pointers to styles, ordered according the
> priority specified by "cascading". The list is build once using method
> fillCssStyleVector. (I hope, I've got it right.)
Yes, thanks for adding this here. Maybe I am sometimes too concentrated
on discussing issues directly in the issuezilla task. OTOH it belongs
there and the task defines the problem to discuss about precisely. OTOH
the bugzilla mailing list is just too big to always follow completely,
so maybe sending hints to issues where a discussion is ongoing to the
dev list is a good approach...
Sincerely,
Armin
>
> Kind regards
> Regina
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
> For additional commands, e-mail: dev-help@openoffice.apache.org
>
--
ALG
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org