Skip to content

Commit

Permalink
Improved precision of text-align-end-00[1-15].html and their referenc…
Browse files Browse the repository at this point in the history
…e files (#34811)
  • Loading branch information
TalbotG authored Nov 17, 2022
1 parent 120d10b commit 3cab330
Show file tree
Hide file tree
Showing 24 changed files with 159 additions and 219 deletions.
14 changes: 6 additions & 8 deletions css/css-text/text-align/reference/text-align-end-ref-001.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
<!DOCTYPE html>
<html lang="en" >
<html lang="en">
<head>
<meta charset="utf-8">
<title>text-align: end, direction: rtl</title>
<link rel='author' title='Richard Ishida' href='mailto:[email protected]'>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type='text/css'>
.test, .ref { border: 1px solid orange; margin: 20px; width: 300px; color: orange; font: 24px/24px Ahem; }
.ref { position: relative; height: 24px; }
#rb1 { position: absolute; top: 0; left: 0; background-color: orange; width: 120px; height: 24px; }
.ref { border: 1px solid orange; margin: 20px; width: 300px; color: orange; font: 25px/1 Ahem; text-align: left; }
</style>
</head>
<body>
<div id='instructions'>Test passes if the shading in both orange boxes looks the same.</div>
<div class="ref"><div id="rb1"></div></div>
<div class="ref"><div id="rb1"></div></div>
<div class="ref">REFER</div>
<div class="ref">REFER</div>
</body>
</html>
</html>
14 changes: 6 additions & 8 deletions css/css-text/text-align/reference/text-align-end-ref-002.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
<!DOCTYPE html>
<html lang="en" >
<html lang="en">
<head>
<meta charset="utf-8">
<title>text-align: end, direction: ltr</title>
<link rel='author' title='Richard Ishida' href='mailto:[email protected]'>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type='text/css'>
.test, .ref { border: 1px solid orange; margin: 20px; width: 300px; color: orange; font: 24px/24px Ahem; }
.ref { position: relative; height: 24px; }
#rb1 { position: absolute; top: 0; right: 0; background-color: orange; width: 120px; height: 24px; }
.ref { border: 1px solid orange; margin: 20px; width: 300px; color: orange; font: 25px/1 Ahem; text-align: right; }
</style>
</head>
<body>
<div id='instructions'>Test passes if the shading in both orange boxes looks the same.</div>
<div style="direction: rtl;">
<div class="ref"><div id="rb1"></div></div>
<div class="ref"><div id="rb1"></div></div>
<div class="ref">REFER</div>
<div class="ref">REFER</div>
</div>
</body>
</html>
</html>
14 changes: 6 additions & 8 deletions css/css-text/text-align/reference/text-align-end-ref-003.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
<!DOCTYPE html>
<html lang="en" >
<html lang="en">
<head>
<meta charset="utf-8">
<title>text-align: end, dir=rtl</title>
<link rel='author' title='Richard Ishida' href='mailto:[email protected]'>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type='text/css'>
.test, .ref { border: 1px solid orange; margin: 20px; width: 300px; color: orange; font: 24px/24px Ahem; }
.ref { position: relative; height: 24px; }
#rb1 { position: absolute; top: 0; left: 0; background-color: orange; width: 120px; height: 24px; }
.ref { border: 1px solid orange; margin: 20px; width: 300px; color: orange; font: 25px/1 Ahem; text-align: left; }
</style>
</head>
<body>
<div id='instructions'>Test passes if the shading in both orange boxes is identical.</div>
<div class="ref"><div id="rb1"></div></div>
<div class="ref"><div id="rb1"></div></div>
<div class="ref">REFER</div>
<div class="ref">REFER</div>
</body>
</html>
</html>
14 changes: 6 additions & 8 deletions css/css-text/text-align/reference/text-align-end-ref-004.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
<!DOCTYPE html>
<html lang="en" >
<html lang="en">
<head>
<meta charset="utf-8">
<title>text-align: end, dir=ltr</title>
<link rel='author' title='Richard Ishida' href='mailto:[email protected]'>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type='text/css'>
.test, .ref { border: 1px solid orange; margin: 20px; width: 300px; color: orange; font: 24px/24px Ahem; }
.ref { position: relative; height: 24px; }
#rb1 { position: absolute; top: 0; right: 0; background-color: orange; width: 120px; height: 24px; }
.ref { border: 1px solid orange; margin: 20px; width: 300px; color: orange; font: 25px/1 Ahem; text-align: right; }
</style>
</head>
<body>
<div id='instructions'>Test passes if the shading in both orange boxes is identical.</div>
<div dir="rtl">
<div class="ref"><div id="rb1"></div></div>
<div class="ref"><div id="rb1"></div></div>
<div class="ref">REFER</div>
<div class="ref">REFER</div>
</div>
</body>
</html>
</html>
16 changes: 6 additions & 10 deletions css/css-text/text-align/reference/text-align-end-ref-005.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
<!DOCTYPE html>
<html lang="en" >
<html lang="en">
<head>
<meta charset="utf-8">
<title>text-align: end, direction: rtl</title>
<link rel='author' title='Richard Ishida' href='mailto:[email protected]'>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type='text/css'>
.test, .ref { border: 1px solid orange; margin: 20px; width: 290px; color: orange; font: 24px/24px Ahem; }
.ref { position: relative; height: 72px; }
.rb1 { position: absolute; top: 0; left: 0; background-color: orange; width: 72px; height: 72px; }
.rb2 { position: absolute; top: 0; left: 96px; background-color: orange; width: 72px; height: 72px; }
.rb3 { position: absolute; top: 0; left: 192px; background-color: orange; width: 72px; height: 48px; }
.ref { border: 1px solid orange; margin: 20px; width: 300px; color: orange; font: 25px/1 Ahem; text-align: left; }
</style>
</head>
<body>
<div id='instructions'>Test passes if the shading in both orange boxes looks the same.</div>
<div class="ref"><div class="rb1"></div><div class="rb2"></div><div class="rb3"></div></div>
<div class="ref"><div class="rb1"></div><div class="rb2"></div><div class="rb3"></div></div>
<div class="ref">REF REF REF REF REF REF REF REF</div>
<div class="ref">REF REF REF REF REF REF REF REF</div>
</body>
</html>
</html>
16 changes: 6 additions & 10 deletions css/css-text/text-align/reference/text-align-end-ref-006.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
<!DOCTYPE html>
<html lang="en" >
<html lang="en">
<head>
<meta charset="utf-8">
<title>text-align: end, direction: ltr</title>
<link rel='author' title='Richard Ishida' href='mailto:[email protected]'>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type='text/css'>
.test, .ref { border: 1px solid orange; margin: 20px; width: 290px; color: orange; font: 24px/24px Ahem; }
.ref { position: relative; height: 72px; }
.rb1 { position: absolute; top: 0; right: 0; background-color: orange; width: 72px; height: 72px; }
.rb2 { position: absolute; top: 0; right: 96px; background-color: orange; width: 72px; height: 72px; }
.rb3 { position: absolute; top: 0; right: 192px; background-color: orange; width: 72px; height: 48px; }
.ref { border: 1px solid orange; margin: 20px; width: 300px; color: orange; font: 25px/1 Ahem; text-align: right; }
</style>
</head>
<body>
<div id='instructions'>Test passes if the shading in both orange boxes is identical.</div>
<div style="direction: rtl;">
<div class="ref"><div class="rb1"></div><div class="rb2"></div><div class="rb3"></div></div>
<div class="ref"><div class="rb1"></div><div class="rb2"></div><div class="rb3"></div></div>
<div class="ref">REF REF REF REF REF REF REF REF</div>
<div class="ref">REF REF REF REF REF REF REF REF</div>
</div>
</body>
</html>
</html>
16 changes: 6 additions & 10 deletions css/css-text/text-align/reference/text-align-end-ref-007.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
<!DOCTYPE html>
<html lang="en" >
<html lang="en">
<head>
<meta charset="utf-8">
<title>text-align: end, dir=rtl</title>
<link rel='author' title='Richard Ishida' href='mailto:[email protected]'>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type='text/css'>
.test, .ref { border: 1px solid orange; margin: 20px; width: 290px; color: orange; font: 24px/24px Ahem; }
.ref { position: relative; height: 72px; }
.rb1 { position: absolute; top: 0; left: 0; background-color: orange; width: 72px; height: 72px; }
.rb2 { position: absolute; top: 0; left: 96px; background-color: orange; width: 72px; height: 72px; }
.rb3 { position: absolute; top: 0; left: 192px; background-color: orange; width: 72px; height: 48px; }
.ref { border: 1px solid orange; margin: 20px; width: 300px; color: orange; font: 25px/1 Ahem; text-align: left; }
</style>
</head>
<body>
<div id='instructions'>Test passes if the shading in both orange boxes looks the same.</div>
<div class="ref"><div class="rb1"></div><div class="rb2"></div><div class="rb3"></div></div>
<div class="ref"><div class="rb1"></div><div class="rb2"></div><div class="rb3"></div></div>
<div class="ref">REF REF REF REF REF REF REF REF</div>
<div class="ref">REF REF REF REF REF REF REF REF</div>
</body>
</html>
</html>
16 changes: 6 additions & 10 deletions css/css-text/text-align/reference/text-align-end-ref-008.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
<!DOCTYPE html>
<html lang="en" >
<html lang="en">
<head>
<meta charset="utf-8">
<title>text-align: end, dir=ltr</title>
<link rel='author' title='Richard Ishida' href='mailto:[email protected]'>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type='text/css'>
.test, .ref { border: 1px solid orange; margin: 20px; width: 290px; color: orange; font: 24px/24px Ahem; }
.ref { position: relative; height: 72px; }
.rb1 { position: absolute; top: 0; right: 0; background-color: orange; width: 72px; height: 72px; }
.rb2 { position: absolute; top: 0; right: 96px; background-color: orange; width: 72px; height: 72px; }
.rb3 { position: absolute; top: 0; right: 192px; background-color: orange; width: 72px; height: 48px; }
.ref { border: 1px solid orange; margin: 20px; width: 300px; color: orange; font: 25px/1 Ahem; text-align: right; }
</style>
</head>
<body>
<div id='instructions'>Test passes if shading in both orange boxes is identical.</div>
<div dir="rtl">
<div class="ref"><div class="rb1"></div><div class="rb2"></div><div class="rb3"></div></div>
<div class="ref"><div class="rb1"></div><div class="rb2"></div><div class="rb3"></div></div>
<div class="ref">REF REF REF REF REF REF REF REF</div>
<div class="ref">REF REF REF REF REF REF REF REF</div>
</div>
</body>
</html>
</html>
16 changes: 6 additions & 10 deletions css/css-text/text-align/reference/text-align-end-ref-009.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
<!DOCTYPE html>
<html lang="en" >
<html lang="en">
<head>
<meta charset="utf-8">
<title>text-align: end, dir=auto, RTL first strong</title>
<link rel='author' title='Richard Ishida' href='mailto:[email protected]'>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type='text/css'>
.test, .ref { border: 1px solid orange; margin: 20px; width: 290px; color: orange; font: 24px/24px Ahem; }
.ref { position: relative; height: 72px; }
.rb1 { position: absolute; top: 0; left: 0; background-color: orange; width: 72px; height: 72px; }
.rb2 { position: absolute; top: 0; left: 96px; background-color: orange; width: 72px; height: 72px; }
.rb3 { position: absolute; top: 0; left: 192px; background-color: orange; width: 72px; height: 48px; }
.ref { border: 1px solid orange; margin: 20px; width: 300px; color: orange; font: 25px/1 Ahem; text-align: left; }
</style>
</head>
<body>
<div id='instructions'>Test passes if shading in both orange boxes is identical.</div>
<div class="ref"><div class="rb1"></div><div class="rb2"></div><div class="rb3"></div></div>
<div class="ref"><div class="rb1"></div><div class="rb2"></div><div class="rb3"></div></div>
<div class="ref">REF REF REF REF REF REF REF REF</div>
<div class="ref">REF REF REF REF REF REF REF REF</div>
</body>
</html>
</html>
16 changes: 6 additions & 10 deletions css/css-text/text-align/reference/text-align-end-ref-010.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
<!DOCTYPE html>
<html lang="en" >
<html lang="en">
<head>
<meta charset="utf-8">
<title>text-align: end, dir=auto, LTR first strong</title>
<link rel='author' title='Richard Ishida' href='mailto:[email protected]'>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type='text/css'>
.test, .ref { border: 1px solid orange; margin: 20px; width: 290px; color: orange; font: 24px/24px Ahem; }
.ref { position: relative; height: 72px; }
.rb1 { position: absolute; top: 0; right: 0; background-color: orange; width: 72px; height: 72px; }
.rb2 { position: absolute; top: 0; right: 96px; background-color: orange; width: 72px; height: 72px; }
.rb3 { position: absolute; top: 0; right: 192px; background-color: orange; width: 72px; height: 48px; }
.ref { border: 1px solid orange; margin: 20px; width: 300px; color: orange; font: 25px/1 Ahem; text-align: right; }
</style>
</head>
<body>
<div id='instructions'>Test passes if shading in both orange boxes is identical.</div>
<div dir="rtl">
<div class="ref"><div class="rb1"></div><div class="rb2"></div><div class="rb3"></div></div>
<div class="ref"><div class="rb1"></div><div class="rb2"></div><div class="rb3"></div></div>
<div class="ref">REF REF REF REF REF REF REF REF</div>
<div class="ref">REF REF REF REF REF REF REF REF</div>
</div>
</body>
</html>
</html>
14 changes: 6 additions & 8 deletions css/css-text/text-align/reference/text-align-end-ref-014.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
<!DOCTYPE html>
<html lang="en" >
<html lang="en">
<head>
<meta charset="utf-8">
<title>text-align: end, pre, dir=rtl inherited</title>
<link rel='author' title='Richard Ishida' href='mailto:[email protected]'>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type='text/css'>
.test, .ref { border: 1px solid orange; margin: 20px; width: 290px; color: orange; font: 24px/24px Ahem; }
.ref { position: relative; height: 48px; }
#rb1 { position: absolute; top: 0; left: 0; background-color: orange; width: 72px; height: 48px; }
.ref { border: 1px solid orange; margin: 20px; width: 300px; color: orange; font: 25px/1 Ahem; text-align: left; }
</style>
</head>
<body>
<div id='instructions'>Test passes if shading in both orange boxes is identical.</div>
<div dir="rtl">
<div class="ref"><div id="rb1"></div></div>
<div class="ref"><div id="rb1"></div></div>
<div class="ref">REF<br>ERE</div>
<div class="ref">REF<br>ERE</div>
</div>
</body>
</html>
</html>
14 changes: 6 additions & 8 deletions css/css-text/text-align/reference/text-align-end-ref-015.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
<!DOCTYPE html>
<html lang="en" >
<html lang="en">
<head>
<meta charset="utf-8">
<title>text-align: end, pre, dir=ltr inherited</title>
<link rel='author' title='Richard Ishida' href='mailto:[email protected]'>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type='text/css'>
.test, .ref { border: 1px solid orange; margin: 20px; width: 290px; color: orange; font: 24px/24px Ahem; }
.ref { position: relative; height: 48px; }
#rb1 { position: absolute; top: 0; right: 0; background-color: orange; width: 72px; height: 48px; }
.ref { border: 1px solid orange; margin: 20px; width: 300px; color: orange; font: 25px/1 Ahem; text-align: right; }
</style>
</head>
<body>
<div id='instructions'>Test passes if shading in both orange boxes is identical.</div>
<div class="ref"><div id="rb1"></div></div>
<div class="ref"><div id="rb1"></div></div>
<div class="ref">REF<br>ERE</div>
<div class="ref">REF<br>ERE</div>
</body>
</html>
</html>
15 changes: 7 additions & 8 deletions css/css-text/text-align/text-align-end-001.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
<!DOCTYPE html>
<html lang="en" >
<html lang="en">
<head>
<meta charset="utf-8">
<title>text-align: end, direction: rtl</title>
<link rel='author' title='Richard Ishida' href='mailto:[email protected]'>
<link rel='help' href='https://drafts.csswg.org/css-text-3/#text-align-property'>
<link rel='match' href='reference/text-align-end-ref-001.html'>
<meta name="assert" content="text-align:end aligns inline-level content to the end edge of the line box – ie. left when direction is horizontal, rtl.">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type='text/css'>
.test { text-align: end; direction: rtl; }
.ref { text-align: left; }
/* the CSS below is not part of the test */
.test, .ref { border: 1px solid orange; margin: 20px; width: 300px; color: orange; font: 24px/24px Ahem; }
.ref { position: relative; height: 24px; }
#rb1 { position: absolute; top: 0; left: 0; background-color: orange; width: 120px; height: 24px; }
.test, .ref { border: 1px solid orange; margin: 20px; width: 300px; color: orange; font: 25px/1 Ahem; }
</style>
</head>
<body>
<div id='instructions'>Test passes if the shading in both orange boxes looks the same.</div>
<div class="test">XXXXX</div>
<div class="ref"><div id="rb1"></div></div>
<div class="test">TESTI</div>
<div class="ref">REFER</div>
</body>
</html>
</html>
Loading

0 comments on commit 3cab330

Please sign in to comment.