Bug 1523562 [wpt PR 14770] - Reland "[PE] Fix background-image on ::first-line", a=testonly

Automatic update from web-platform-tests
Reland "[PE] Fix background-image on ::first-line"

This reverts commit 3b58524dfeb579392545998cbb64841138cc5a6e.

The original patch failed to call RemoveClient for the background-image
in the first line style.

Original change's description:
> Revert "[PE] Fix background-image on ::first-line"
>
> This reverts commit fe023954ad31e422d0deb4116d7867098e11b688.
>
> Reason for revert: crbug.com/920115
>
> Bug: 920115
>
> Original change's description:
> > [PE] Fix background-image on ::first-line
> >
> > This CL ensures correct handling of background-image on ::first-line
> > from style change to paint invalidation.
> >
> > Bug: 918881
> > Change-Id: I2e3a7bf60cb0f851b203fc7f5135c4186cc731a3
> > Reviewed-on: https://chromium-review.googlesource.com/c/1396154
> > Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
> > Reviewed-by: Rune Lillesveen <futhark@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#620921}
>
> TBR=wangxianzhu@chromium.org,futhark@chromium.org
>
> Change-Id: Iba8387598922eaccd35f44bcaceac1cff59ea83a
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: 918881
> Reviewed-on: https://chromium-review.googlesource.com/c/1403315
> Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org>
> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#621178}

Bug: 920115, 918881
Change-Id: I3ea101ae09ad062de657a8917d77b1ec34e329e4
Reviewed-on: https://chromium-review.googlesource.com/c/1403316
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#622298}

--

wpt-commits: 2826e7f5ea8e2d5adf869590b8c48128aee8ed36
wpt-pr: 14770
This commit is contained in:
Xianzhu Wang 2019-01-31 18:31:42 +00:00 коммит произвёл James Graham
Родитель cc6610f4fb
Коммит 76cdb42cbc
2 изменённых файлов: 31 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,19 @@
<!DOCTYPE html>
<title>CSS Test: background-image applicability to ::first-letter</title>
<link rel="help" href="http://www.w3.org/TR/css3-background/">
<link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo">
<link rel="match" href="reference/background-image-first-line-ref.html">
<meta name="flags" content="ahem image">
<meta name="assert" content="background-image applicability to ::first-line">
<style type="text/css">
#content {
color: transparent;
font: 100px Ahem;
}
#content::first-line {
background-image: url("support/cat.png"); /* 98 w. by 99px h. */
background-repeat: no-repeat;
}
</style>
<p>Test passes if cat image is visible.</p>
<div id="content">X</div>

Просмотреть файл

@ -0,0 +1,12 @@
<!DOCTYPE html>
<meta name="flags" content="ahem image">
<style type="text/css">
#content {
color: transparent;
font: 100px Ahem;
background-image: url("../support/cat.png"); /* 98 w. by 99px h. */
background-repeat: no-repeat;
}
</style>
<p>Test passes if cat image is visible.</p>
<div id="content">X</div>