about summary refs log tree commit diff stats
path: root/res
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-07-29 19:39:16 +0200
committerbptato <nincsnevem662@gmail.com>2024-07-29 23:24:34 +0200
commit070e1e181f0efbd1aa4d760daa17fe2ad8e976e4 (patch)
treefa392b6f421a57c3092b71c8d82e80a6d9da699d /res
parentfd742d0243d80d0fc929ef88e4c95d713304d300 (diff)
downloadchawan-070e1e181f0efbd1aa4d760daa17fe2ad8e976e4.tar.gz
cascade: move some presentational hints to ua.css
Diffstat (limited to 'res')
-rw-r--r--res/ua.css101
1 files changed, 101 insertions, 0 deletions
diff --git a/res/ua.css b/res/ua.css
index eaf5000a..b19471c2 100644
--- a/res/ua.css
+++ b/res/ua.css
@@ -312,3 +312,104 @@ rt::before {
 rt::after {
 	content: ')';
 }
+
+img[align=left] {
+	float: left;
+}
+
+img[align=right] {
+	float: right;
+}
+
+img[align=top] {
+	vertical-align: top;
+}
+
+img[align=middle], img[align=center] {
+	vertical-align: middle;
+}
+
+img[align=bottom] {
+	vertical-align: bottom;
+}
+
+table[align=left] {
+	float: left;
+}
+
+table[align=right] {
+	float: right;
+}
+
+table[align=center] {
+	margin-left: auto;
+	margin-right: auto;
+}
+
+:is(div, p, td, th, thead, tbody, tfoot, tr)[align=left] {
+	text-align: -cha-left;
+}
+
+:is(div, p, td, th, thead, tbody, tfoot, tr)[align=center] {
+	text-align: -cha-center;
+}
+
+:is(div, p, td, th, thead, tbody, tfoot, tr)[align=middle] {
+	text-align: -cha-center;
+}
+
+:is(div, p, td, th, thead, tbody, tfoot, tr)[align=right] {
+	text-align: -cha-right;
+}
+
+:is(td, th, thead, tbody, tfoot, tr)[valign=top] {
+	vertical-align: top;
+}
+
+:is(td, th, thead, tbody, tfoot, tr)[valign=middle] {
+	vertical-align: middle;
+}
+
+:is(td, th, thead, tbody, tfoot, tr)[valign=bottom] {
+	vertical-align: bottom;
+}
+
+:is(td, th, thead, tbody, tfoot, tr)[valign=baseline] {
+	vertical-align: baseline;
+}
+
+ol[type=1] {
+	list-style-type: decimal;
+}
+
+ol[type=a s] {
+	list-style-type: lower-alpha;
+}
+
+ol[type=A s] {
+	list-style-type: upper-alpha;
+}
+
+ol[type=i s] {
+	list-style-type: lower-roman;
+}
+
+ol[type=I s] {
+	list-style-type: upper-roman;
+}
+
+ul[type=none i] {
+	list-style-type: none;
+}
+
+ul[type=disc i] {
+	list-style-type: disc;
+}
+
+ul[type=circle i] {
+	list-style-type: circle;
+}
+
+ul[type=square i] {
+	list-style-type: square;
+}