From b1cd222191643b3bff3a1c4b54c1e8cbfed696b2 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 29 Dec 2020 10:48:31 -0800 Subject: [PATCH] spv-file-format: Document CSS in more detail. --- doc/dev/spv-file-format.texi | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/doc/dev/spv-file-format.texi b/doc/dev/spv-file-format.texi index ca0cb7d94c..9f78e042a6 100644 --- a/doc/dev/spv-file-format.texi +++ b/doc/dev/spv-file-format.texi @@ -517,9 +517,30 @@ inclusive. The CSS in the corpus is simple. To understand it, a parser only needs to be able to skip white space, @code{}, and -parse style only for @code{p} elements. Only @code{font-weight}, -@code{font-style}, @code{font-decoration}, @code{font-family}, and -@code{font-size} matter. +parse style only for @code{p} elements. Only the following properties +matter: + +@table @code +@item color +In the form @code{@var{rr}@var{gg}@var{bb}}, e.g. @code{000000}, with +no leading @samp{#}. + +@item font-weight +Either @code{bold} or @code{normal}. + +@item font-style +Either @code{italic} or @code{normal}. + +@item text-decoration +Either @code{underline} or @code{normal}. + +@item font-family +A font name, commonly @code{Monospaced} or @code{SansSerif}. + +@item font-size +Values claim to be in points, e.g.@: @code{14pt}, but the values are +actually in ``device-independent pixels'' (px), at 96/inch. +@end table This element has the following attributes. -- 2.30.2