about summary refs log tree commit diff stats
path: root/res
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-11-25 18:42:27 +0100
committerbptato <nincsnevem662@gmail.com>2022-11-25 18:42:27 +0100
commit7ab7f28fdefe503fdde53ba9e253e308cb06b44f (patch)
treecd4cc561061c673999f9e8ecf1063a0664ba4dae /res
parentd205ef228866cad35891ca96cacae547c02fd4ae (diff)
downloadchawan-7ab7f28fdefe503fdde53ba9e253e308cb06b44f.tar.gz
Add some quirks mode rules + presentational hints
Only as a POC for now.
Diffstat (limited to 'res')
-rw-r--r--res/quirk.css10
-rw-r--r--res/ua.css32
2 files changed, 30 insertions, 12 deletions
diff --git a/res/quirk.css b/res/quirk.css
new file mode 100644
index 00000000..0515f028
--- /dev/null
+++ b/res/quirk.css
@@ -0,0 +1,10 @@
+
+table {
+	font-weight: initial;
+	font-style: initial;
+	font-variant: initial;
+	font-size: initial;
+	line-height: initial;
+	white-space: initial;
+	text-align: initial;
+}
diff --git a/res/ua.css b/res/ua.css
index 920232d7..3c2b4daa 100644
--- a/res/ua.css
+++ b/res/ua.css
@@ -46,6 +46,26 @@ colgroup {
 	display: table-column-group;
 }
 
+tr {
+	display: table-row;
+}
+
+col {
+	display: table-column;
+}
+
+th {
+	display: table-cell;
+	font-weight: bold;
+	vertical-align: inherit;
+}
+
+td {
+	display: table-cell;
+	text-align: unset;
+	vertical-align: inherit;
+}
+
 input {
 	margin-right: 1ch;
 	white-space: pre;
@@ -92,18 +112,6 @@ input:is([type="submit"], [type="button"], [type="reset"])::after {
 	color: red;
 }
 
-tr {
-	display: table-row;
-}
-
-col {
-	display: table-column;
-}
-
-th, td {
-	display: table-cell;
-}
-
 li {
 	display: list-item;
 }