The Perl Toolchain Summit 2025 Needs You: You can help 🙏 Learn more

NAME

HTML::DoCoMoCSS - css inliner

SYNOPSIS

# src
my $inliner = HTML::DoCoMoCSS->new(base_dir => '/path/to/documentroot/');
$inliner->apply(<<'...');
<html>
<head>
<link rel="stylesheet" href="/css/foo.css" />
</head>
<body>
<div class="title">bar</div>
</body>
</html>
...
# foo.css
.title {
color: red;
}
# result
<html>
<head>
<link rel="stylesheet" href="/css/foo.css" />
</head>
<body>
<div class="title" style="color: red;">bar</div>
</body>
</html>

DESCRIPTION

HTML::DoCoMoCSS is css in-liner.

DoCoMo(Japanese cell-phone carrier)'s UA cannot use <link rel="stylesheet" /> style css, only can use in-line CSS.

That calls iCSS.

AUTHOR

Tokuhiro Matsuno <tokuhirom+cpan@gmail.com>

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

CSS::Tiny, CSS::Tiny::Style, XML::LibXML, http://www.nttdocomo.co.jp/service/imode/make/content/xhtml/outline/s1.html#1_1_1(Japanese)