clobba / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

support CSS STYLE blocks inside of SVG #189

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Brad made it clear, that this isn't supported yet but I'd like to keep it here 
as a reminder: 

CSS styling is too powerful to miss and one of the niceties in SVG albeit it 
also brings some kind of 
confusion with it, e.g. with regard to units.

Original issue reported on code.google.com by mneu...@gmail.com on 28 Jul 2009 at 6:44

GoogleCodeExporter commented 9 years ago

Original comment by bradneub...@gmail.com on 20 Oct 2009 at 12:26

GoogleCodeExporter commented 9 years ago
Hi guys, is there any workaround for this problem? I realy need it and right 
now I
get a tiny black square instead of the correct picture :).

Original comment by siho.cor...@gmail.com on 3 Nov 2009 at 2:31

GoogleCodeExporter commented 9 years ago
I have write a part of the code for CSS inside.
Afterward, it will be necessary to make tests and what the code is validated by 
Brad.
Perharps,  Brad, has he another solution?

Original comment by lr.b21...@gmail.com on 3 Nov 2009 at 3:02

GoogleCodeExporter commented 9 years ago
The only workaround currently is to have style="" values on individual SVG 
elements.

Original comment by bradneub...@gmail.com on 3 Nov 2009 at 4:03

GoogleCodeExporter commented 9 years ago
Thanks guys for you responses and of course for all your work :)! 
I will be waiting for the next release, because I get svg with styles from some 
web
services I use. So I can not change that.

Original comment by siho.cor...@gmail.com on 6 Nov 2009 at 3:07

GoogleCodeExporter commented 9 years ago
Issue 412 has been merged into this issue.

Original comment by grick23@gmail.com on 29 Nov 2009 at 7:58

GoogleCodeExporter commented 9 years ago
Hi,

what do you think the short description of class for css ?

Thanks for our answers,

Original comment by lr.b21...@gmail.com on 2 Dec 2009 at 7:12

Attachments:

GoogleCodeExporter commented 9 years ago
Hi, can you covert the ODT file to a PDF.

Original comment by bradneub...@gmail.com on 2 Dec 2009 at 9:11

GoogleCodeExporter commented 9 years ago
That should be _convert_ the file to PDF :) I don't have OpenOffice.

Original comment by bradneub...@gmail.com on 2 Dec 2009 at 9:11

GoogleCodeExporter commented 9 years ago
excuse me

Original comment by lr.b21...@gmail.com on 2 Dec 2009 at 9:27

Attachments:

GoogleCodeExporter commented 9 years ago
OK...but hot shall I denote a style, which is activated when I hover over an 
object?
When using a separate STYLE area, I would use path:hover...but when using the
style="" attribute inside a tag...?

Original comment by j...@pnl-tec.de on 2 Mar 2010 at 10:50

GoogleCodeExporter commented 9 years ago
The :hover pseudo-class isn't supported. As a workaround you can use JavaScript 
to 
add mouseover and mouseout event listeners on the given element; when mouseover 
is activated change the style using the myElement.style.fill for example, and 
then 
change it back when mouseout is activated.

Original comment by bradneub...@gmail.com on 15 Mar 2010 at 6:31

GoogleCodeExporter commented 9 years ago
This is what I then did to circumvent the issue. However, I can't use SVGweb in 
a
production environment as it proved substantially to slow. :-(

Original comment by j...@pnl-tec.de on 16 Mar 2010 at 7:40

GoogleCodeExporter commented 9 years ago
In reply to comment 12:

This is a limitation of the ASV family of plug-ins for Internet Explorer as 
well. I
recall doing something like that (JavaScript trickery) in order to make this 
work
cross-implementation. ;-)

Original comment by helder.magalhaes on 2 Apr 2010 at 11:47

GoogleCodeExporter commented 9 years ago
Issue 441 has been merged into this issue.

Original comment by bradneub...@gmail.com on 9 Apr 2010 at 2:41

GoogleCodeExporter commented 9 years ago
I'm also trying to consume SVG that contains an internal
(<defs><style>...</style></defs>) stylesheet and optionally an external 
stylesheet
using <?xml-stylesheet href="../parameter.css" type='text/css'?>, and which uses
classes heavily (the Cascading part of CSS), none of which seem to be currently
supported.

I imagine that building the full cascade is a non-trivial exercise.

Original comment by tmala...@gmail.com on 27 May 2010 at 1:54

GoogleCodeExporter commented 9 years ago
We have partial experimental support for this now.

Original comment by bradneub...@gmail.com on 16 Nov 2010 at 10:27

GoogleCodeExporter commented 9 years ago
How do you enable the partial support?

Original comment by gregory.auger on 6 Mar 2011 at 7:52

GoogleCodeExporter commented 9 years ago
CSS support does not exist in any form for SVG Web. A couple folks have 
discussed working on it but they never contributed any of their work to this 
project as far as I know.

Original comment by grick23@gmail.com on 7 Mar 2011 at 11:39

GoogleCodeExporter commented 9 years ago
Issue 607 has been merged into this issue.

Original comment by grick23@gmail.com on 7 Mar 2011 at 11:41

GoogleCodeExporter commented 9 years ago
Grammar for css http://www.w3.org/TR/CSS21/grammar.html

I also wanted to use a linked stylesheet, but see it's not supported.

Original comment by joao.ei...@gmail.com on 31 May 2011 at 7:24