Documentation of selectors starting with -- ?

5 views
Skip to first unread message

Andreas Jung

unread,
Nov 9, 2015, 8:41:41 AM11/9/15
to Vivliostyle Project
Hi there,

the CSS files of the samples directory contain often rules like

--line-height
--margin-block-start
etc.

Where do they come from and where are they documented?
At they do not belong to the EPUB adaptive layout specs...

Andreas

KAWAKUBO Toru

unread,
Nov 9, 2015, 11:19:39 PM11/9/15
to vivli...@googlegroups.com
Hi,
> At they do not belong to the EPUB adaptive layout specs…

These properties starting with -- are custom properties defined in the following spec:
http://www.w3.org/TR/css-variables-1/

However, the custom properties are currently *not supported* by Vivliostyle.
I included them in the samples with intention to illustrate how you could write styles conveniently *if they were supported* (in some future version of Vivliostyle), but I admit that it is confusing.
I will remove those from the samples. Thank you for pointing out.


--
Toru Kawakubo (川久保 亮)
Vivliostyle Inc.
http://vivliostyle.com

Florian Rivoal

unread,
Nov 10, 2015, 1:14:00 AM11/10/15
to vivli...@googlegroups.com
Hi,

This syntax is for custom properties, as specified here: https://drafts.csswg.org/css-variables/

However, this is not currently supported in Vivliostyle, so these rules are not taking effect.

 - Florian



--
You received this message because you are subscribed to the Google Groups "Vivliostyle Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vivliostyle...@googlegroups.com.
To post to this group, send email to vivli...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vivliostyle/bdf1f9f8-be1a-4848-acd7-e7ec0f760764%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages