зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1821811 [wpt PR 38944] - [css-backgrounds] replace clip-text-multi-line, a=testonly
Automatic update from web-platform-tests [css-backgrounds] replace clip-text-multi-line See https://github.com/web-platform-tests/wpt/pull/38305#issuecomment-1426926262 -- wpt-commits: 94f9d6f73c48ce41146120c2350bfb8669fd96b3 wpt-pr: 38944
This commit is contained in:
Родитель
9bec14a8b0
Коммит
c77976005d
|
@ -1,26 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
|
|
||||||
<title>CSS test reference</title>
|
|
||||||
|
|
||||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
|
||||||
<link rel="stylesheet" href="/fonts/ahem.css">
|
|
||||||
|
|
||||||
<style>
|
|
||||||
div
|
|
||||||
{
|
|
||||||
color: green;
|
|
||||||
font-size: 30px;
|
|
||||||
font-family: Ahem;
|
|
||||||
line-height: 1.5;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<p>Test passes if there are 2 green stripes and if the top stripe is half the width of the bottom stripe.
|
|
||||||
|
|
||||||
<div>12345<br>1234567890</div>
|
|
|
@ -1,44 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
|
|
||||||
<title>CSS Backgrounds Test: 'background-clip: text' and painting of multi-line text</title>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
|
|
||||||
Inspired by
|
|
||||||
|
|
||||||
http://wpt.live/css/css-backgrounds/background-clip/clip-text-multi-line.html
|
|
||||||
|
|
||||||
For more info, see
|
|
||||||
|
|
||||||
https://github.com/web-platform-tests/wpt/pull/30812#issuecomment-1314514987
|
|
||||||
|
|
||||||
-->
|
|
||||||
|
|
||||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
|
||||||
<link rel="author" href="mailto:mmaxfield@apple.com" title="Myles C. Maxfield">
|
|
||||||
<link rel="help" href="https://drafts.csswg.org/css-backgrounds-4/#valdef-background-clip-text">
|
|
||||||
<link rel="match" href="clip-text-multi-line-002-ref.html">
|
|
||||||
<link rel="stylesheet" href="/fonts/ahem.css">
|
|
||||||
|
|
||||||
<style>
|
|
||||||
div
|
|
||||||
{
|
|
||||||
background-clip: text;
|
|
||||||
background-color: red;
|
|
||||||
background-image: linear-gradient(green, green);
|
|
||||||
color: transparent;
|
|
||||||
font-family: Ahem;
|
|
||||||
font-size: 30px;
|
|
||||||
line-height: 1.5;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<p>Test passes if there are 2 green stripes and if the top stripe is half the width of the bottom stripe.
|
|
||||||
|
|
||||||
<div>12345<br>1234567890</div>
|
|
|
@ -1,35 +1,22 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>CSS test reference: background-clip: text paints multi-line text in the wrong place</title>
|
|
||||||
<link rel="author" href="mailto:mmaxfield@apple.com" title="Myles C. Maxfield">
|
|
||||||
<link rel="stylesheet" href="/fonts/ahem.css">
|
|
||||||
<style>
|
|
||||||
#container {
|
|
||||||
position: relative;
|
|
||||||
padding: 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
span {
|
<meta charset="UTF-8">
|
||||||
color: green;
|
|
||||||
font: 48px "Ahem";
|
|
||||||
}
|
|
||||||
|
|
||||||
div.cover {
|
<title>CSS test reference</title>
|
||||||
position: absolute;
|
|
||||||
background: green;
|
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||||
}
|
<link rel="stylesheet" href="/fonts/ahem.css">
|
||||||
</style>
|
|
||||||
</head>
|
<style>
|
||||||
<body>
|
div
|
||||||
<p>This test makes sure that multi-line elements with <code>background-clip: text</code> are placed correctly. The test passes if the top rectangle is (roughly) half as wide as the bottom rectangle.</p>
|
{
|
||||||
<div id="container">
|
color: green;
|
||||||
<span>AAA<br>AAAAAA</span>
|
font-size: 30px;
|
||||||
<div class="cover" style="left: 0px; top: 0px; width: calc(48px * 3 + 3px); height: 3px;"></div>
|
font-family: Ahem;
|
||||||
<div class="cover" style="left: 0px; top: 48px; width: calc(48px * 6 + 3px); height: 6px;"></div>
|
line-height: 1.5;
|
||||||
<div class="cover" style="left: 0px; top: calc(48px * 2); width: calc(48px * 6 + 3px); height: 3px;"></div>
|
}
|
||||||
<div class="cover" style="left: 0px; top: 0px; width: 3px; height: calc(48px * 2);"></div>
|
</style>
|
||||||
<div class="cover" style="left: calc(48px * 3); top: 0px; width: 3px; height: 48px;"></div>
|
|
||||||
<div class="cover" style="left: calc(48px * 6); top: 48px; width: 3px; height: 48px;"></div>
|
<p>Test passes if there are 2 green stripes and if the top stripe is half the width of the bottom stripe.
|
||||||
</body>
|
|
||||||
</html>
|
<div>12345<br>1234567890</div>
|
||||||
|
|
|
@ -1,41 +1,40 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>CSS Test: background-clip: text paints multi-line text in the wrong place</title>
|
|
||||||
<link rel="help" href="https://drafts.csswg.org/css-backgrounds-4/#valdef-background-clip-text">
|
|
||||||
<link rel="help" href="https://drafts.fxtf.org/fill-stroke-3/#propdef-fill-color">
|
|
||||||
<link rel="author" href="mailto:mmaxfield@apple.com" title="Myles C. Maxfield">
|
|
||||||
<link rel="match" href="clip-text-multi-line-ref.html">
|
|
||||||
<link rel="stylesheet" href="/fonts/ahem.css">
|
|
||||||
<style>
|
|
||||||
#container {
|
|
||||||
position: relative;
|
|
||||||
padding: 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
span {
|
<meta charset="UTF-8">
|
||||||
font: 48px "Ahem";
|
|
||||||
background-clip: text;
|
|
||||||
fill-color: rgba(0, 0, 0, 0);
|
|
||||||
background-image: linear-gradient(0deg, green 0%, green 100%);
|
|
||||||
}
|
|
||||||
|
|
||||||
div.cover {
|
<title>CSS Backgrounds Test: 'background-clip: text' and painting of multi-line text</title>
|
||||||
position: absolute;
|
|
||||||
background: green;
|
<!--
|
||||||
}
|
|
||||||
</style>
|
Inspired by
|
||||||
</head>
|
|
||||||
<body>
|
http://wpt.live/css/css-backgrounds/background-clip/clip-text-multi-line.html
|
||||||
<p>This test makes sure that multi-line elements with <code>background-clip: text</code> are placed correctly. The test passes if the top rectangle is (roughly) half as wide as the bottom rectangle.</p>
|
|
||||||
<div id="container">
|
For more info, see
|
||||||
<span>AAA<br>AAAAAA</span>
|
|
||||||
<div class="cover" style="left: 0px; top: 0px; width: calc(48px * 3 + 3px); height: 3px;"></div>
|
https://github.com/web-platform-tests/wpt/pull/30812#issuecomment-1314514987
|
||||||
<div class="cover" style="left: 0px; top: 48px; width: calc(48px * 6 + 3px); height: 6px;"></div>
|
|
||||||
<div class="cover" style="left: 0px; top: calc(48px * 2); width: calc(48px * 6 + 3px); height: 3px;"></div>
|
-->
|
||||||
<div class="cover" style="left: 0px; top: 0px; width: 3px; height: calc(48px * 2);"></div>
|
|
||||||
<div class="cover" style="left: calc(48px * 3); top: 0px; width: 3px; height: 48px;"></div>
|
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||||
<div class="cover" style="left: calc(48px * 6); top: 48px; width: 3px; height: 48px;"></div>
|
<link rel="author" href="mailto:mmaxfield@apple.com" title="Myles C. Maxfield">
|
||||||
</div>
|
<link rel="help" href="https://drafts.csswg.org/css-backgrounds-4/#valdef-background-clip-text">
|
||||||
</body>
|
<link rel="match" href="clip-text-multi-line-ref.html">
|
||||||
</html>
|
<link rel="stylesheet" href="/fonts/ahem.css">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
div
|
||||||
|
{
|
||||||
|
background-clip: text;
|
||||||
|
background-color: red;
|
||||||
|
background-image: linear-gradient(green, green);
|
||||||
|
color: transparent;
|
||||||
|
font-family: Ahem;
|
||||||
|
font-size: 30px;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<p>Test passes if there are 2 green stripes and if the top stripe is half the width of the bottom stripe.
|
||||||
|
|
||||||
|
<div>12345<br>1234567890</div>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче