「Paged.js を試す」 @akabekobeko
https://akabeko.me/blog/2020/10/pagedjs/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@page { | |
margin: 8%; | |
@bottom-center { | |
writing-mode: horizontal-tb; | |
font-size: 67%; | |
content: "– " counter(page) " –"; | |
} | |
} | |
@page :first { | |
margin: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>text-orientation test</title> | |
<style> | |
:root { | |
writing-mode: vertical-rl; | |
} | |
.s { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Root element styles should be inherited to page context</title> | |
<style> | |
:root { | |
color: maroon; | |
font-family: "Georgia", serif; | |
font-variant: small-caps; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Root element styles should be inherited to page context</title> | |
<style> | |
:root { | |
color: maroon; | |
font-family: "Georgia", serif; | |
font-variant: small-caps; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
@page { | |
size: 560px 790px; | |
margin: 63px 72px 63px; | |
} | |
html { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Check devicePixelRatio</title> | |
<script> | |
window.onload = () => { | |
devicePixelRatioValue.textContent = window.devicePixelRatio; | |
actualBorderWidthValue.textContent = testBorder.getBoundingClientRect().height; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Test leader() in Table of Contents</title> | |
<style> | |
@page { | |
@bottom-center { | |
content: counter(page); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Test font-kerning and 'palt'</title> | |
<style> | |
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap'); | |
:root { | |
font-family: 'Noto Sans JP', sans-serif; | |
line-height: 1.5; |