diff options
author | bptato <nincsnevem662@gmail.com> | 2024-07-29 19:39:16 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-07-29 23:24:34 +0200 |
commit | 070e1e181f0efbd1aa4d760daa17fe2ad8e976e4 (patch) | |
tree | fa392b6f421a57c3092b71c8d82e80a6d9da699d /res | |
parent | fd742d0243d80d0fc929ef88e4c95d713304d300 (diff) | |
download | chawan-070e1e181f0efbd1aa4d760daa17fe2ad8e976e4.tar.gz |
cascade: move some presentational hints to ua.css
Diffstat (limited to 'res')
-rw-r--r-- | res/ua.css | 101 |
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; +} |