-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebKit export: Make text-box-edge inherited per spec update
- Loading branch information
1 parent
f7e1ba3
commit 288ee9d
Showing
5 changed files
with
90 additions
and
13 deletions.
There are no files selected for viewing
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
23 changes: 23 additions & 0 deletions
23
css/css-inline/text-box-trim/text-box-trim-accumulation-001-ref.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
@import "support/TestMetricsFont.css"; | ||
|
||
body { | ||
font: 100px/1 MetricsTestFont; | ||
} | ||
.spacer { | ||
background: lightgray; | ||
block-size: 100px; | ||
} | ||
.target-first { | ||
margin-block: -60px 50px; | ||
} | ||
.target-second { | ||
margin-block: 50px 0px; | ||
} | ||
</style> | ||
<div class="spacer"></div> | ||
<div class="target-first">ApÉx</div> | ||
<div class="spacer"></div> | ||
<div class="target-second">ApÉx</div> | ||
<div class="spacer"></div> |
36 changes: 24 additions & 12 deletions
36
css/css-inline/text-box-trim/text-box-trim-accumulation-001.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
14 changes: 14 additions & 0 deletions
14
css/css-inline/text-box-trim/text-box-trim-not-ignore-nested-text-box-edge-ref.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> | ||
<style> | ||
.spacer { | ||
background: lightgray; | ||
block-size: 100px; | ||
} | ||
.target { | ||
font: 50px/1 Ahem; | ||
} | ||
</style> | ||
<div class="spacer"></div> | ||
<div class="target">ABC</div> | ||
<div class="spacer"></div> |
28 changes: 28 additions & 0 deletions
28
css/css-inline/text-box-trim/text-box-trim-not-ignore-nested-text-box-edge.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<title>No need to consult the block container requesting the trim for text-box-edge</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-trim"> | ||
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-edge"> | ||
<link rel="match" href="text-box-trim-not-ignore-nested-text-box-edge-ref.html"> | ||
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> | ||
<!-- https://github.com/w3c/csswg-drafts/issues/10904 --> | ||
<style> | ||
.spacer { | ||
background: lightgray; | ||
block-size: 100px; | ||
} | ||
.target { | ||
font: 50px/2 Ahem; | ||
text-box-trim: trim-both; | ||
text-box-edge: ex alphabetic; | ||
} | ||
.inner { | ||
text-box-edge: auto; | ||
/* auto keyword uses the value of line-fit-edge on the root inline box of the the affected line box, | ||
interpreting leading (the initial value) as text. */ | ||
} | ||
</style> | ||
<div class="spacer"></div> | ||
<div class="target"> | ||
<div class="inner">ABC</div> | ||
</div> | ||
<div class="spacer"></div> |