Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* ruby support */
ruby
{
	display: inline-table;
	text-align: center;
	white-space: nowrap;
	text-indent: 0;
	margin: 0;
	vertical-align: -20%;
}

/* ルビベース */
ruby > rb, ruby > rbc
{
	display: table-row-group;
	line-height: 90%;
}

/* 前側ルビテキスト */
ruby > rt, ruby > rbc + rtc
{
	display: table-header-group;
	font-size: 60%;
	line-height: 40%;
	letter-spacing: 0;
}

/* 後側ルビテキスト */
ruby > rbc + rtc + rtc
{
	display: table-footer-group;
	font-size: 60%;
	line-height: 40%;
	letter-spacing: 0;
}

/* 複雑ルビテキスト */
rbc > rb, rtc > rt
{
	display: table-cell;
	letter-spacing: 0;
}

/* rt[rbspan] should be transformed into td[colspan] but that requires xslt */
rtc > rt[rbspan] { display: table-caption; }

/* ルビ括弧 */
rp { display: none; }