gecko-dev/testing/web-platform/tests/css/css-pseudo/first-letter-width.html
Philip Jägenstedt 48b9e18cfc Bug 1590525 [wpt PR 19832] - Convert tabs to spaces in css/ directories with few lint errors, a=testonly
Automatic update from web-platform-tests
Convert tabs to spaces in css/ directories with few lint errors (#19832)

This follows the same approach as in https://github.com/web-platform-tests/wpt/pull/19824
to identify directories in css/ with few lint errors and removes the
lint.whitelist exceptions for those.

For css/css-counter-styles/ some newlines were also added/removed to
arrive at a reasonable style.
--

wpt-commits: 5af91f79216344d5a243f2fc133e373b39e1322e
wpt-pr: 19832
2019-10-31 12:16:28 +00:00

38 lines
914 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<html lang="en">
<head>
<title>initial-letter width test</title>
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=362880">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-letter-styling">
<link rel="match" href="first-letter-width-ref.html">
<meta name="assert" content="The width of an element with first-letter styling should render correctly.">
<style>
div {
position: relative;
}
span {
position: absolute;
color: transparent;
}
#control {
background-color: green;
}
#test {
background-color: red;
line-height: 1;
top: 1px;
}
#test::first-letter {
text-transform: uppercase;
}
</style>
</head>
<body>
<p>There should be no red</p>
<div>
<span id="test">Test</span>
<span id="control">Test.</span>
</div>
</body>
</html>