Hi Paul,
When you have a computed style, you can't tell anything about the specificity of the individual properties.
The way to handle this is to provide the `node_presentational_hint` callback [1]. When it is called, you look at the node's attributes and set any appropriate styles as `css_hint`s [2].
Hope this helps,
Michael
On Thu, 16 Apr 2020 at 11:40, Paul <paul.gruzdev@gmail.com> wrote:
Hi all!
How can a user of libcss distinguish between these two situations: a)
property was defined using a default value in CSS and b) property was
undefined in CSS for the node. Those are different because in a latter
case the value of that property should be taken from a node attribute
(in my case of svg styling). As far as I can tell, for a root node, the
property is always initialised using the default value, so when
composing a style I can't distinguish between a and b.
Thanks,
Paul
No comments:
Post a Comment