gecko-dev/testing/web-platform/tests/css/css-pseudo/first-line-and-placeholder.html
Chris Nardi 7e1d69d031 Bug 1464035 [wpt PR 11136] - Add regression test for ::first-line breaking ::placeholder styles, a=testonly
Automatic update from web-platform-testsAdd regression test for ::first-line breaking ::placeholder styles

A bug was reported where ::first-line broke ::placeholder styling, which
seems to have been fixed in https://crrev.com/550589. However, we don't
currently have a test for this bug. Add in a test to make sure we don't
regress with this bug.

Bug: 806247
Change-Id: I5bbcda1ccf5b3ea08a7b66a68071a802f42e9228
Reviewed-on: https://chromium-review.googlesource.com/1071126
Commit-Queue: Chris Nardi <cnardi@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#561526}

--

wpt-commits: a381d5590bd6793152ec87c3f195f4bb83550792
wpt-pr: 11136
2018-06-10 09:26:44 +01:00

19 lines
596 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>Interaction of ::first-line and ::placeholder</title>
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#placeholder-pseudo">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-line-pseudo">
<link rel="match" href="first-line-and-placeholder-ref.html">
<meta name="assert" content="Tests ::placeholder interaction with ::first-line pseudo element">
<style>
input::first-line {
background-color: initial;
}
input::placeholder {
color: red;
}
</style>
<form>
<input placeholder="this text should be red">
</form>