Skip to content

Commit

Permalink
Adjust behavior of existing tests to match CSS spec change
Browse files Browse the repository at this point in the history
  • Loading branch information
frivoal authored and marcoscaceres committed Feb 23, 2024
1 parent 44a89a9 commit 8b83328
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script src="support/variant-class.js"></script>
<style>
@font-face {
font-family: halt-font;
src: url('/fonts/noto/cjk/NotoSansCJKjp-Regular-subset-halt.otf');
}
#container {
font-family: halt-font;
font-size: 20px;
inline-size: 4em;
}
.vrl {
writing-mode: vertical-rl;
}
halt {
font-feature-settings: 'halt' 1, 'vhal' 1;
}
</style>
<div id="container">
<div>(国国国<halt></halt>国国国<halt></halt></div>
<div>国国国国<halt></halt></div>
<div lang="zh-hans">国国国国<halt></halt></div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="help" href="https://drafts.csswg.org/css-text-4/#text-spacing-trim-property">
<link rel="match" href="text-spacing-trim-space-first-wrap-001-ref.html">
<meta name="variant" content="?class=halt,htb">
<meta name="variant" content="?class=chws,htb">
<meta name="variant" content="?class=halt,vrl">
<meta name="variant" content="?class=chws,vrl">
<script src="support/variant-class.js"></script>
<style>
@font-face {
font-family: halt-font;
src: url('/fonts/noto/cjk/NotoSansCJKjp-Regular-subset-halt.otf');
}
@font-face {
font-family: chws-font;
src: url('/fonts/noto/cjk/NotoSansCJKjp-Regular-subset-chws.otf');
}
#container {
font-family: halt-font;
font-size: 20px;
inline-size: 4em;
text-spacing-trim: space-first;
}
.chws #container {
font-family: chws-font;
}
.vrl {
writing-mode: vertical-rl;
}
</style>
<div id="container">
<div>(国国国(国国国(国</div>
<div>国国国国(</div>
<div lang="zh-hans">国国国国“</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="help" href="https://drafts.csswg.org/css-text-4/#text-spacing-trim-property">
<link rel="match" href="text-spacing-trim-wrap-001-ref.html">
<meta name="variant" content="?class=halt,htb">
<meta name="variant" content="?class=chws,htb">
<meta name="variant" content="?class=halt,vrl">
<meta name="variant" content="?class=chws,vrl">
<script src="support/variant-class.js"></script>
<style>
@font-face {
font-family: halt-font;
src: url('/fonts/noto/cjk/NotoSansCJKjp-Regular-subset-halt.otf');
}
@font-face {
font-family: chws-font;
src: url('/fonts/noto/cjk/NotoSansCJKjp-Regular-subset-chws.otf');
}
#container {
font-family: halt-font;
font-size: 20px;
inline-size: 4em;
text-spacing-trim: space-first;
}
.chws #container {
font-family: chws-font;
}
.vrl {
writing-mode: vertical-rl;
}
</style>
<div id="container">
<div>(国国国<br>(国国国<br>(国</div>
<div>国国国国<br></div>
<div lang="zh-hans">国国国国<br></div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
</style>
<div id="container">
<div>(国国国<halt></halt>国国国<halt></halt></div>
<div>国国国国<halt></halt></div>
<div lang="zh-hans">国国国国<halt></halt></div>
<div>(国国国国国国</div>
<div>国国国国</div>
<div lang="zh-hans">国国国国</div>
</div>

0 comments on commit 8b83328

Please sign in to comment.