summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/mkiv/lxml-css.mkiv
blob: 79de85c088c71cb389977076d6afbf113b488202 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
%D \module
%D   [       file=lxml-css,
%D        version=2010.01.28,
%D          title=\CONTEXT\ Modules,
%D       subtitle=Css Helpers,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\registerctxluafile{lxml-css}{1.001}

\def\ctxmodulecss#1{\ctxlua{moduledata.css.#1}}

% No stable interface yet.

%     \edef\CellPadding{\xmlatt{#1}{cellpadding}}
%     \ifx\CellPadding\empty
%       \edef\CellPadding{.25ex}
%     \else
%       \edef\CellPadding{\cssgetsinglepadding{\xmlatt{#1}{cellpadding}}}
%     \fi

% \starttexdefinition cssgetsinglepadding #1
%    \ctxlua {
%      context((moduledata.css.padding(
%          "#1",
%          \number\dimexpr0.1ex,
%          \number\dimexpr0.01\hsize,
%          \number\dimexpr1ex,
%          \number\dimexpr1em
%      ))) % returns 4 values therefore ()
%    }sp
% \stoptexdefinition

\endinput