Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit 0d4300c

Browse files
Charlie Marlowmoz-wptsync-bot
authored andcommitted
added text-decoration-thickness to the text-decoration shorthands
Differential Revision: https://phabricator.services.mozilla.com/D40335 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1555865 gecko-commit: cd2c60c98be924288209507d616b0b2857456ccd gecko-integration-branch: autoland gecko-reviewers: emilio
1 parent 5c3c67a commit 0d4300c

File tree

4 files changed

+84
-0
lines changed

4 files changed

+84
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Reference case for text-decoration shorthands</title>
6+
<style>
7+
div{
8+
text-decoration: green underline;
9+
}
10+
</style>
11+
</head>
12+
<body>
13+
<p>Test passes if a green underline renders</p>
14+
<div>XX XX</div>
15+
</body>
16+
</html>
17+
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Reference case for text-decoration shorthands</title>
6+
<style>
7+
div{
8+
text-decoration: green underline;
9+
text-decoration-thickness: 100px;
10+
}
11+
</style>
12+
</head>
13+
<body>
14+
<p>Test passes if a thick green underline is rendered</p>
15+
<div>XX XX</div>
16+
</body>
17+
</html>
18+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Test case for text-decoration shorthands</title>
6+
<meta name="assert" content="text-decoration: the line should be rendered at a thickness of auto">
7+
<link rel="author" title="Charlie Marlow" href="mailto:[email protected]">
8+
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
9+
<link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-width-property">
10+
<link rel="match" href="reference/text-decoration-shorthands-001-ref.html">
11+
<style>
12+
div{
13+
text-decoration: green underline auto;
14+
}
15+
</style>
16+
</head>
17+
<body>
18+
<p>Test passes if a green underline renders</p>
19+
<div>XX XX</div>
20+
</body>
21+
</html>
22+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Test case for text-decoration shorthands</title>
6+
<meta name="assert" content="text-decoration: text-decoration-thickness is parsed as part of the text-decoration shorthand">
7+
<link rel="author" title="Charlie Marlow" href="mailto:[email protected]">
8+
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
9+
<link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-width-property">
10+
<link rel="match" href="reference/text-decoration-shorthands-002-ref.html">
11+
<style>
12+
/*
13+
This test is designed to make sure the underline is rendered
14+
the same, regardless of whether or not the thickness is set
15+
in the shorthands or the longhands form
16+
*/
17+
div{
18+
text-decoration: green underline 100px;
19+
}
20+
</style>
21+
</head>
22+
<body>
23+
<p>Test passes if a thick green underline is rendered</p>
24+
<div>XX XX</div>
25+
</body>
26+
</html>
27+

0 commit comments

Comments
 (0)