Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf ·...
Transcript of Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf ·...
![Page 1: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/1.jpg)
Vertical Rhythm(and Alignment)
Elika J. Etemad aka fantasaiW3C CSS Working Group Invited Expert
![Page 2: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/2.jpg)
Typographer’s Line Placement Model
Goal: Look pretty.
Tools: Measure and adjust.
![Page 3: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/3.jpg)
Top line visually aligns with other things.
Align Me!Here's some paragraph textfollowing the heading, whichshould wrap around the float
eventually, assuming it's long enough toreach a few lines below the bottom of it...
![Page 4: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/4.jpg)
Space lines for pleasant reading and to accommodateascenders/descenders/superscripts/subscripts/ruby.
![Page 5: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/5.jpg)
Consistent baseline-to-baseline spacing creates vertical rhythm.
Lorem IpsumLorem ipsum dolor sit amet, consectetur adipiscingelit, sed do eiusmod tempor incididunt ut labore etdolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitationullamco laboris nisi ut aliquip ex ea commodoconsequat. Duis aute irure dolor in reprehenderit involuptate velit esse cillum dolore eu fugiat nullapariatur.
Excepteur sint
Excepteur sint occaecat cupidatat non proident, suntin culpa qui officia deserunt mollit anim id estlaborum.
Sed ut perspiciatis unde omnis iste natus error sitvoluptatem accusantium doloremque laudantium,totam rem aperiam, eaque ipsa quae ab illoinventore veritatis et quasi architecto beatae vitaedicta sunt explicabo. Nemo enim ipsam voluptatemquia voluptas sit aspernatur aut odit aut fugit, sed
d l
![Page 6: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/6.jpg)
If your stuff overlaps it’s your fault.
FRANÇOISRÉMY
So review and tweak your things before you print them!
![Page 7: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/7.jpg)
CSS Line Box Model
Goal: Don't overlap content.
Tools: Boxes.
![Page 8: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/8.jpg)
1. Put a bunch of stuff on a line.
![Page 9: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/9.jpg)
2. Draw a box around it.
![Page 10: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/10.jpg)
3. Stack up the line boxes.
![Page 11: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/11.jpg)
3. Stack up the line boxes.
![Page 12: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/12.jpg)
4. All done!
![Page 13: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/13.jpg)
Vertical Rhythm
![Page 14: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/14.jpg)
![Page 15: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/15.jpg)
![Page 16: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/16.jpg)
Intra-Paragraph + Inter-Paragraph + Interrupts
![Page 17: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/17.jpg)
Intra-Paragraph Spacing
![Page 18: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/18.jpg)
Fixing the Line Layout Model
Goal: Make typographers happy. Also, don't overlap the content.
![Page 19: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/19.jpg)
CSS Line Layout Today
![Page 20: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/20.jpg)
What are the sizes?
![Page 21: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/21.jpg)
Sizes found from font metrics
![Page 22: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/22.jpg)
It could be so simple...
1em
ÉpAhem
ApSawasdee
![Page 23: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/23.jpg)
Identical font-size, varying font-family
ApSawasdee
ApArial
Ap
Arial Unicode MS
ApBank Gothic
Ap
Bernhard Fashion
Ap
Forte
![Page 24: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/24.jpg)
Identical font-size, varying font-family
ApSawasdee
ApArial
Ap
Arial Unicode MS
ApBank Gothic
Ap
Bernhard Fashion
Ap
Forte
![Page 25: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/25.jpg)
line-height: # | len | % | normal
![Page 26: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/26.jpg)
line-height: 1.5;
/* 1.5 × font-size */
![Page 27: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/27.jpg)
Half-leading
1.5em
1em + leading
Ap 1.5em
font height + leading
![Page 28: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/28.jpg)
line-height: 1.5
![Page 29: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/29.jpg)
Why half-leading instead of line gaps?
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod temporincididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex eacommodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillumdolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollitanim id est laborum.
![Page 30: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/30.jpg)
![Page 31: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/31.jpg)
Base Case: Paragraph of Text, No Font Changes
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
line-height: 1.2
![Page 32: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/32.jpg)
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmodtempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodoconsequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillumdolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat nonproident, sunt in culpa qui officia deserunt mollit anim id est laborum.
![Page 33: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/33.jpg)
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmodtempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodoconsequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillumdolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat nonproident, sunt in culpa qui officia deserunt mollit anim id est laborum.
![Page 34: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/34.jpg)
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmodtempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodoconsequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillumdolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat nonproident, sunt in culpa qui officia deserunt mollit anim id est laborum.
![Page 35: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/35.jpg)
Complication #1: Varying Font Families
![Page 36: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/36.jpg)
ApSawasdee
ApArial
Ap
Arial Unicode MS
Ap
Bank Gothic
Ap
Bernhard Fashion
Ap
Forte
line-height: 1.5
![Page 37: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/37.jpg)
ApSawasdee
ApArial
Ap
Arial Unicode MS
Ap
Bank Gothic
Ap
Bernhard Fashion
Ap
Forte
line-height: 1.5
![Page 38: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/38.jpg)
ApSawasdee
ApArial
Ap
Arial Unicode MS
Ap
Bank Gothic
Ap
Bernhard Fashion
Ap
Forte
line-height: 1.5
![Page 39: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/39.jpg)
Small Wins: Ignoring Fallback Font Metrics
My name is 艾俐俐.“The first available font is defined to be the first available font that would match the U+0020 (space)
character.”
![Page 40: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/40.jpg)
line-height: normal
A 2三 d E q
![Page 41: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/41.jpg)
![Page 42: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/42.jpg)
Happiness is Rare
CSS Model Typographer’s Model
(No change in font-size, font-family, or vertical-align)
![Page 43: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/43.jpg)
![Page 44: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/44.jpg)
Fixing Intra-Paragraph Spacing
![Page 45: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/45.jpg)
How to Have Perfect Rhythm
Start with the root inline box.
Ignore all its contents.
Perfect rhythm!
But what about overlap?
![Page 46: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/46.jpg)
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmodtempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodoconsequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillumdolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat nonproident, sunt in culpa qui officia deserunt mollit anim id est laborum.
![Page 47: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/47.jpg)
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmodtempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodoconsequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillumdolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat nonproident, sunt in culpa qui officia deserunt mollit anim id est laborum.
![Page 48: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/48.jpg)
How to Have Perfect Rhythm
Start with the root inline box.
Ignore all its contents.
Perfect rhythm!
But what about overlap?
![Page 49: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/49.jpg)
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmodtempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodoconsequat. Duis aute irure dolor in reprehenderit in voluptatevelit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecatcupidatat non proident, sunt in culpa qui officia deserunt mollit anim id estlaborum.
![Page 50: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/50.jpg)
Redefining “fit within a line box”
![Page 51: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/51.jpg)
“fit”container ← item
![Page 52: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/52.jpg)
Defining the container
A B C D
Safe ModelGrow if item overflows root line-height.
Sparse ModelGrow if item overflows root line-height + 1/2 line
gap.Absolute Model
Ignore all inline contents. Bigger items alwaysoverflow.
![Page 53: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/53.jpg)
![Page 54: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/54.jpg)
Defining the item
Leading Box Model
Margin Box Model?
![Page 55: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/55.jpg)
![Page 56: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/56.jpg)
Content Area
![Page 57: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/57.jpg)
Content Area
![Page 58: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/58.jpg)
Content Area = Font Height Area
ApSawasdee
ApArial
Ap
Arial Unicode MS
ApBank Gothic
Ap
Bernhard Fashion
Ap
Forte
![Page 59: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/59.jpg)
![Page 60: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/60.jpg)
Old Model
ApSawasdee
ApArial
Ap
Arial Unicode MS
Ap
Bank Gothic
Ap
Bernhard Fashion
Ap
Forte
![Page 61: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/61.jpg)
![Page 62: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/62.jpg)
New Normal?
ApSawasdee
ApArial
Ap
Arial Unicode MS
ApBank Gothic
Ap
Bernhard Fashion
Ap
Forte
![Page 63: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/63.jpg)
![Page 64: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/64.jpg)
line-sizing: legacy | normal
legacy
Do what CSS2.1 saysnormal
TBD! (Help us D?)
![Page 65: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/65.jpg)
</Intra-Paragraph Spacing>
![Page 66: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/66.jpg)
Inter-Paragraph Spacing!
![Page 67: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/67.jpg)
Margins!
p { margin: 1em 0; }
![Page 68: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/68.jpg)
Margins!
p { line-height: 1.5em; margin: 1.5em 0; }
![Page 69: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/69.jpg)
Margins!
p { line-height: 1.5em; margin: 1lh 0; }
![Page 70: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/70.jpg)
Interrupting the Rhythm
![Page 71: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/71.jpg)
Strict Rhythm...
Lorem IpsumLorem ipsum dolor sit amet, consectetur adipiscingelit, sed do eiusmod tempor incididunt ut labore etdolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitationullamco laboris nisi ut aliquip ex ea commodoconsequat. Duis aute irure dolor in reprehenderit involuptate velit esse cillum dolore eu fugiat nullapariatur.
Excepteur sint
Excepteur sint occaecat cupidatat non proident, suntin culpa qui officia deserunt mollit anim id estlaborum.
Sed ut perspiciatis unde omnis iste natus error sitvoluptatem accusantium doloremque laudantium,totam rem aperiam, eaque ipsa quae ab illoinventore veritatis et quasi architecto beatae vitaedicta sunt explicabo. Nemo enim ipsam voluptatemquia voluptas sit aspernatur aut odit aut fugit, sed
d l
![Page 72: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/72.jpg)
![Page 73: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/73.jpg)
Strict Rhythm...
Lorem IpsumLorem ipsum dolor sit amet, consectetur adipiscingelit, sed do eiusmod tempor incididunt ut labore etdolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitationullamco laboris nisi ut aliquip ex ea commodoconsequat. Duis aute irure dolor in reprehenderit involuptate velit esse cillum dolore eu fugiat nullapariatur.
Excepteur sint
Excepteur sint occaecat cupidatat non proident, suntin culpa qui officia deserunt mollit anim id estlaborum.
Sed ut perspiciatis unde omnis iste natus error sitvoluptatem accusantium doloremque laudantium,totam rem aperiam, eaque ipsa quae ab illoinventore veritatis et quasi architecto beatae vitaedicta sunt explicabo. Nemo enim ipsam voluptatemquia voluptas sit aspernatur aut odit aut fugit, sed
d l
![Page 74: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/74.jpg)
![Page 75: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/75.jpg)
Strict rhythms are important for multicol
![Page 76: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/76.jpg)
Loose Rhythm...
Lorem IpsumLorem ipsum dolor sit amet, consectetur adipiscingelit, sed do eiusmod tempor incididunt ut labore etdolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitationullamco laboris nisi ut aliquip ex ea commodoconsequat. Duis aute irure dolor in reprehenderit involuptate velit esse cillum dolore eu fugiat nullapariatur.
Excepteur sint
Excepteur sint occaecat cupidatat non proident, suntin culpa qui officia deserunt mollit anim id estlaborum.
Sed ut perspiciatis unde omnis iste natus error sitvoluptatem accusantium doloremque laudantium,totam rem aperiam, eaque ipsa quae ab illoinventore veritatis et quasi architecto beatae vitaedicta sunt explicabo. Nemo enim ipsam voluptatemquia voluptas sit aspernatur aut odit aut fugit, sed
d l
![Page 77: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/77.jpg)
![Page 78: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/78.jpg)
Block Step Sizing
https://www.w3.org/TR/css-rhythm/
![Page 79: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/79.jpg)
block-step-size: <length>
Requires used height = n × <length>, for an integer n
![Page 80: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/80.jpg)
block-step-insert: margin | padding
![Page 81: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/81.jpg)
block-step-align: auto | center | start | end
![Page 82: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/82.jpg)
intra
What happens at page/column breaks?
![Page 83: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/83.jpg)
![Page 84: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/84.jpg)
</Inter-Paragraph Spacing>
![Page 85: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/85.jpg)
Trimming Text
![Page 86: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/86.jpg)
Align Me!Here's some paragraph text
following the heading, which should wraparound the float eventually, assuming it'slong enough to reach a few lines belowthe bottom of it...
![Page 87: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/87.jpg)
Delete the top margin...
Align Me!Here's some paragraph textfollowing the heading, whichshould wrap around the float
eventually, assuming it's long enough toreach a few lines below the bottom of it...
![Page 88: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/88.jpg)
Add negative margin???
Align Me!Here's some paragraph textfollowing the heading, whichshould wrap around the floateventually, assuming it's long
enough to reach a few lines below thebottom of it...
![Page 89: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/89.jpg)
>_____<
Align Me!Here's some paragraph textfollowing the heading, whichshould wrap around the floateventually, assuming it's long
enough to reach a few lines below thebottom of it...
![Page 90: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/90.jpg)
OpenType metrics
alphabetic baseline Apascent
descent
cap-height
ex-height
![Page 91: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/91.jpg)
leading-trim-over: normal | text | cap | ex | ideographic
leading-trim-under: normal | text | alphabetic | ideographic
![Page 92: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/92.jpg)
h2 { leading-trim: cap; }
Align Me!Here's some paragraph textfollowing the heading, whichshould wrap around the floateventually, assuming it's long
enough to reach a few lines below thebottom of it...
![Page 93: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/93.jpg)
h2 { leading-trim: cap; }
Align Me!Here's some paragraph textfollowing the heading, whichshould wrap around the float
eventually, assuming it's long enough toreach a few lines below the bottom of it...
![Page 94: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/94.jpg)
h2 { leading-trim: cap; }
![Page 95: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/95.jpg)
h2 { leading-trim: cap; }
![Page 96: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/96.jpg)
I thought this was a World-Wide Web?
CAP HEIGHT
EX HEIGHT????
IDEOGRAPHIC CHARACTER FACE TOP
![Page 97: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/97.jpg)
Your metrics are bad, and you should feel bad.
![Page 98: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/98.jpg)
Open Questions
Behavior at page/column breaks?
Separate cascading/inheritance of metric vs. trigger?
Multiple font sizes on the first/last line?
![Page 99: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/99.jpg)
Vertical Alignment
![Page 100: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/100.jpg)
unaligned text
AbraCadabra!
![Page 101: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/101.jpg)
match baselines, then shift
AbraCadabra!
![Page 102: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/102.jpg)
match baselines, then shift
Cadabra!Abra
![Page 103: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/103.jpg)
But which baseline?
In a well-designed mixed-script font, the glyphs are positioned in the coordinate space to harmonize with one another when typeset together. The baselinetable is then constructed to match the shape of the glyphs, each baseline positioned to match the glyphs from its preferred scripts.
![Page 104: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/104.jpg)
dominant-baseline: auto | alphabetic | ideographic | central | mathematical |
…
![Page 105: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/105.jpg)
vertical-align: <'alignment-baseline'> || <'baseline-shift>
└ alignment-baseline: baseline | alphabetic | ideographic | central | …
└ baseline-shift: sub | super | <length>
![Page 106: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/106.jpg)
initial-letters: 2;
![Page 107: Vertical Rhythm - fantasaifantasai.inkedblade.net/style/talks/vertical-rhythm/slides.pdf · Vertical Rhythm (and Alignment) Elika J. Etemad a ka fantasai W3C CSS Working Group Invited](https://reader034.fdocuments.us/reader034/viewer/2022050222/5f67d0db52c6b31fb17bc14d/html5/thumbnails/107.jpg)
How to Help
Think about / comment on issues.
Bug browser vendors to implement once specced.
Bug font vendors to provide correct metrics.
Bug OpenType to define missing metrics.