Syntax: Child
Syntax: Child
Syntax
Child: >
nav>ul>li
<nav>
<ul>
<li></li>
</ul>
</nav>
Sibling: +
div+p+bq
<div></div>
<p></p>
<blockquote></blockquote>
Climb-up: ^
div+div>p>span+em^bq div+div>p>span+em^^bq
<div></div> <div></div>
<div> <div>
<p><span></span><em></em></p> <p><span></span><em></em></p>
<blockquote></blockquote> </div>
</div> <blockquote></blockquote>
Grouping: ()
div>(header>ul>li*2>a)+footer>p (div>dl>(dt+dd)*3)+footer>p
<div> <div>
<header> <dl>
<ul> <dt></dt>
<li><a <dd></dd>
href=""></a></li> <dt></dt>
<li><a <dd></dd>
href=""></a></li> <dt></dt>
</ul> <dd></dd>
</header> </dl>
<footer> </div>
<p></p> <footer>
</footer> <p></p>
</div> </footer>
Multiplication: *
ul>li*5
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
Item numbering: $
ul>li.item$*5 h$[title=item$]{Header $}*3 ul>li.item$$$*5
<ul> <h1 title="item1">Header 1</h1> <ul>
<li class="item1"></li> <h2 title="item2">Header 2</h2> <li class="item001"></li>
<li class="item2"></li> <h3 title="item3">Header 3</h3> <li class="item002"></li>
<li class="item3"></li> <li class="item003"></li>
<li class="item4"></li> <li class="item004"></li>
<li class="item5"></li> <li class="item005"></li>
</ul> </ul>
ul>li.item$@-*5 ul>li.item$@3*5
<ul> <ul>
<li class="item5"></li> <li class="item3"></li>
<li class="item4"></li> <li class="item4"></li>
<li class="item3"></li> <li class="item5"></li>
<li class="item2"></li> <li class="item6"></li>
<li class="item1"></li> <li class="item7"></li>
</ul> </ul>
file:///D:/STS64/spring-tool-suite-3.8.1.RELEASE-e4.6-win32-x86_64/sts-bundle/sts-3.... 2017/3/8
Cheat Sheet Page 2 of 18
form#search.wide p.class1.class2.class3
<form id="search" <p class="class1 class2
class="wide"></form> class3"></p>
Custom attributes
p[title="Hello world"] td[rowspan=2 colspan=3 title] [a='value1' b="value2"]
<p title="Hello world"></p> <td rowspan="2" colspan="3" <div a="value1"
title=""></td> b="value2"></div>
Text: {}
a{Click me} p>{Click }+a{here}+{ to continue}
<a href="">Click me</a> <p>Click <a href="">here</a> to
continue</p>
table>.row>.col
<table>
<tr class="row">
<td class="col"></td>
</tr>
</table>
HTML
All unknown abbreviations will be transformed to tag, e.g. foo <foo></foo>.
! a a:link
<a href=" "> </a> <a href="http:// "> </a>
Alias of html:5
<!DOCTYPE html> a:mail abbr
<html lang="en"> <a href="mailto: "> </a> <abbr title=" "> </abbr>
<head>
acronym, acr base
<meta charset="UTF-8" />
<acronym title=" "> </acronym> <base href=" " />
<title> Document </title>
</head> basefont br
<body> <basefont /> <br />
frame hr
</body>
<frame /> <hr />
</html>
bdo bdo:r
<bdo dir=" "> </bdo> <bdo dir="rtl"> </bdo>
file:///D:/STS64/spring-tool-suite-3.8.1.RELEASE-e4.6-win32-x86_64/sts-bundle/sts-3.... 2017/3/8
Cheat Sheet Page 3 of 18
input:email
Alias of inp[type=email]
<input type="email" name=" "
id=" " />
Alias of inp[type=week]
<input type="week" name=" " id="
" />
file:///D:/STS64/spring-tool-suite-3.8.1.RELEASE-e4.6-win32-x86_64/sts-bundle/sts-3.... 2017/3/8
Cheat Sheet Page 4 of 18
<input type="time" name=" " id=" <input type="tel" name=" " id=" <input type="number" name=" "
" /> " /> id=" " />
bq fig figc
Alias of object
<object data=" " type=" ">
</object>
file:///D:/STS64/spring-tool-suite-3.8.1.RELEASE-e4.6-win32-x86_64/sts-bundle/sts-3.... 2017/3/8
Cheat Sheet Page 5 of 18
mn tem datag
datal kg out
</body>
</html>
file:///D:/STS64/spring-tool-suite-3.8.1.RELEASE-e4.6-win32-x86_64/sts-bundle/sts-3.... 2017/3/8
Cheat Sheet Page 6 of 18
</head> <body>
<body>
</body>
</body> </html>
</html>
html:xt
Alias of !!!xt+doc4
[xmlns=http://www.w3.org/1999
/xhtml xml:lang=${lang}]
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD
/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xh
tml" xml:lang="en">
<head>
<meta http-equiv="Content-
Type"
content="text/html;charset=UTF-8
" />
<title> Document </title>
</head>
<body>
</body>
</html>
file:///D:/STS64/spring-tool-suite-3.8.1.RELEASE-e4.6-win32-x86_64/sts-bundle/sts-3.... 2017/3/8
Cheat Sheet Page 7 of 18
</option>
</select>
!!!xxs c cc:ie6
<!DOCTYPE html PUBLIC <!-- ${child} --> <!--[if lte IE 6]>
"-//W3C//DTD XHTML 1.1//EN" ${child}
"http://www.w3.org/TR/xhtml11/DT <![endif]-->
D/xhtml11.dtd">
cc:ie cc:noie
<!--[if IE]> <!--[if !IE]><!-->
${child} ${child}
<![endif]--> <!--<![endif]-->
CSS
CSS module uses fuzzy search to find unknown abbreviations, e.g. ov:h == ov-h == ovh == oh.
If abbreviation wasnt found, it is transformed into property name: foo-bar foo-bar: |;
You can prefix abbreviations with hyphen to produce vendor-prefixed properties: -foo
Visual Formatting
pos position: pos:s position:static; pos:a position:absolute
relative ; ;
d:b display:block;
file:///D:/STS64/spring-tool-suite-3.8.1.RELEASE-e4.6-win32-x86_64/sts-bundle/sts-3.... 2017/3/8
Cheat Sheet Page 8 of 18
ovx:h overflow-x:hidden
;
ovs:s overflow-
style:scrollbar;
pb padding-bottom: ; pl padding-left: ;
Box Sizing
bxz box-sizing: bxz:cb box- bxz:bb box-
border-box ; sizing:content- sizing:border-
box; box;
Font
file:///D:/STS64/spring-tool-suite-3.8.1.RELEASE-e4.6-win32-x86_64/sts-bundle/sts-3.... 2017/3/8
Cheat Sheet Page 9 of 18
fst:ue font-
stretch:ultra-
expanded;
Text
va vertical-align: va:sup vertical- va:t vertical-
top ; align:super; align:top;
file:///D:/STS64/spring-tool-suite-3.8.1.RELEASE-e4.6-win32-x86_64/sts-bundle/sts-3.... 2017/3/8
Cheat Sheet Page 10 of 18
file:///D:/STS64/spring-tool-suite-3.8.1.RELEASE-e4.6-win32-x86_64/sts-bundle/sts-3.... 2017/3/8
Cheat Sheet Page 11 of 18
white-space- white-space-
collapse:keep- collapse:break-
all; strict;
Background
bg background:# 000 bg+ background: bg:n background:none;
; #fff url( )
bgc background-
0 0
color:# fff ;
no-repeat ;
bgc:t background-
color:transparent
;
Color
c color:# 000 ; c:r color:rgb( 0 , c:ra color:rgba( 0 ,
0 , 0 ); 0 , 0 , . 5 );
op opacity: ;
Generated content
cnt content:' '; cnt:n, ct:n content:normal; cnt:oq, ct:oq content:open-
quote;
file:///D:/STS64/spring-tool-suite-3.8.1.RELEASE-e4.6-win32-x86_64/sts-bundle/sts-3.... 2017/3/8
Cheat Sheet Page 12 of 18
Outline
ol outline: ; ol:n outline:none; olo outline-offset: ;
olc:i outline-
color:invert;
Tables
tbl table-layout: ; tbl:a table- tbl:f table-
layout:auto; layout:fixed;
Border
bd border: ; bd+ border: 1px bd:n border:none;
solid #000 ;
bdbk border-break:
close ;
Lists
file:///D:/STS64/spring-tool-suite-3.8.1.RELEASE-e4.6-win32-x86_64/sts-bundle/sts-3.... 2017/3/8
Cheat Sheet Page 13 of 18
file:///D:/STS64/spring-tool-suite-3.8.1.RELEASE-e4.6-win32-x86_64/sts-bundle/sts-3.... 2017/3/8
Cheat Sheet Page 14 of 18
Print
pgbb page-break- pgbb:au page-break- pgbb:al page-break-
before: ; before:auto; before:always;
Others
! !important @f @font-face { @f+ @font-face {
font-family: font-family:
; ' FontName ';
src:url(|); src: url('
} FileName .eot');
src: url('
FileName .eot?
#iefix') format
('embedded-
opentype'),
url('
FileName
.woff') format
('woff'),
url('
FileName .ttf')
format
('truetype'),
url('
FileName .svg#
FontName ')
format('svg');
font-style:
normal ;
font-weight:
normal ;
}
XSL
file:///D:/STS64/spring-tool-suite-3.8.1.RELEASE-e4.6-win32-x86_64/sts-bundle/sts-3.... 2017/3/8
Cheat Sheet Page 15 of 18
animdir:ar animation-
direction:alterna
te-reverse;
file:///D:/STS64/spring-tool-suite-3.8.1.RELEASE-e4.6-win32-x86_64/sts-bundle/sts-3.... 2017/3/8
Cheat Sheet Page 16 of 18
file:///D:/STS64/spring-tool-suite-3.8.1.RELEASE-e4.6-win32-x86_64/sts-bundle/sts-3.... 2017/3/8
Cheat Sheet Page 17 of 18
call ap api
<xsl:call-template name=" " /> <xsl:apply-templates select=" " <xsl:apply-imports />
mode=" " />
imp
<xsl:import href=" " />
inc ch xsl:when, wh
<xsl:include href=" " /> <xsl:choose> </xsl:choose> <xsl:when test=" "> </xsl:when>
ot if par
<xsl:otherwise> </xsl:otherwise> <xsl:if test=" "> </xsl:if> <xsl:param name=" ">
</xsl:param>
wp key elem
<xsl:with-param name=" " <xsl:key name=" " match=" " <xsl:element name=" ">
select=" " /> use=" " /> </xsl:element>
attr attrs cp
<xsl:attribute name=" "> <xsl:attribute-set name=" "> <xsl:copy select=" " />
</xsl:attribute> </xsl:attribute-set>
co
<xsl:copy-of select=" " />
file:///D:/STS64/spring-tool-suite-3.8.1.RELEASE-e4.6-win32-x86_64/sts-bundle/sts-3.... 2017/3/8
Cheat Sheet Page 18 of 18
Alias of
xsl:choose>xsl:when+xsl:other
wise
<xsl:choose>
<xsl:when test=" ">
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
xsl !!!
<?xml version="1.0"
Alias of !!!+xsl:stylesheet
encoding="UTF-8"?>
[version=1.0
xmlns:xsl=http://www.w3.org/1
999/XSL/Transform]>{
|}
<?xml version="1.0"
encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/199
9/XSL/Transform">
</xsl:stylesheet>
file:///D:/STS64/spring-tool-suite-3.8.1.RELEASE-e4.6-win32-x86_64/sts-bundle/sts-3.... 2017/3/8