Automatic update from web-platform-testsFix box-shadow clipping for opaque-background <body>
In the presence of an opaque background,
BoxPainterBase::PaintNormalBoxShadow() insets the shadow clip by one
unit (in order to mitigate seaming artifacs), effectively expanding the
shadow inwards, and relies on the opaque background overdrawing this
inset.
But <body> doesn't paint its own background -- it gets transferred to
the view and painted in a different context => the shadow inset remains
visible.
To address this, pass background-skip information to
PaintNormalBoxShadow(), and disable the inset logic when the background
is not being drawn.
Bug: 899342
Change-Id: I5e04a1c17c2be324bf4c6767d2159372f546cc24
Reviewed-on: https://chromium-review.googlesource.com/c/1336495
Commit-Queue: Florin Malita <[email protected]>
Reviewed-by: Fredrik Söderquist <[email protected]>
Cr-Commit-Position: refs/heads/master@{#609014}
--
wpt-commits: 44a54b7ededf2dc68fe9b3d2d6f2dca4f1f8372d
wpt-pr: 14067
Automatic update from web-platform-testsFix box-shadow clipping for opaque-background <body>
In the presence of an opaque background,
BoxPainterBase::PaintNormalBoxShadow() insets the shadow clip by one
unit (in order to mitigate seaming artifacs), effectively expanding the
shadow inwards, and relies on the opaque background overdrawing this
inset.
But <body> doesn't paint its own background -- it gets transferred to
the view and painted in a different context => the shadow inset remains
visible.
To address this, pass background-skip information to
PaintNormalBoxShadow(), and disable the inset logic when the background
is not being drawn.
Bug: 899342
Change-Id: I5e04a1c17c2be324bf4c6767d2159372f546cc24
Reviewed-on: https://chromium-review.googlesource.com/c/1336495
Commit-Queue: Florin Malita <[email protected]>
Reviewed-by: Fredrik Söderquist <[email protected]>
Cr-Commit-Position: refs/heads/master@{#609014}
--
wpt-commits: 44a54b7ededf2dc68fe9b3d2d6f2dca4f1f8372d
wpt-pr: 14067
Automatic update from web-platform-testsFix background image painting of very small images
The background image fast path painting rounds the image src rect
to integer sizes assuming sprite maps and/or reasonably large images.
When a very small image is used scaled up to a large size (such as
constant color images scaled up to form progress bars by animating
background size) the src rect may be 1 x [small number] which gets
rounded to zero size.
This patch changes the code to detect this situation and not round
in such cases.
It's worth recording that an alternate approach is to detect when
the rounding results in a significant change in src rect and always
switch to unrounded in that case. But it would be more expensive for
a relatively uncommon case.
R=fmalita
BUG=904042
Change-Id: I24657a5d087c0dda0fd8a5e3c3d08e1e4eb02473
Reviewed-on: https://chromium-review.googlesource.com/c/1334291
Reviewed-by: Florin Malita <[email protected]>
Commit-Queue: Stephen Chenney <[email protected]>
Cr-Commit-Position: refs/heads/master@{#607901}
--
wpt-commits: e1a59fb1af26d892ffee739205d1ab536d0d2819
wpt-pr: 14042
Automatic update from web-platform-testsBaseline of inline-block for different values of overflow, for an errata to CSS2 (#7579)
* Test for errata http://www.w3.org/Style/css2-updates/REC-CSS2-20110607-errata.html#s.10.8.1 (baseline of inline-block)
* Typo in rel=author link.
--
wpt-commits: 62a50ada791ff3dfb6a660fa33ad8a9dc1a8e423
wpt-pr: 7579
Automatic update from web-platform-testsImprove color use in background-clip-content-box-001.html. (#10814)
Originally submitted as <https://github.com/w3c/web-platform-tests/pull/6226>.
Some additional changes by Ms2ger.
--
wpt-commits: b5befcbe4803b7de1a758142a675a1eae60c1bac
wpt-pr: 10814
Automatic update from web-platform-testsRevert "Update mozrunner from 7.0.0 to 7.0.1" (#10739)
This reverts commit 8b9f853fd06ca887b340e77e342d323c32635a13
See https://github.com/w3c/web-platform-tests/issues/10736
--
wpt-commits: 11181545aa1e4d3e1e2f00fbedb8d048af091e83
wpt-pr: 10739
Automatic update from web-platform-testsTest box-shadow serialization (#9519)
Following https://github.com/w3c/csswg-drafts/issues/2305, the canonical serialization for box-shadow was changed from inset? && <length>{2,4} && <color>? to <color>? && <length>{2,4} && inset?. Convert an existing box-shadow text into a testharness.js test in order to test serialization as well.
--
wpt-commits: 5a93530d4db27df7a3154d9a5b75a0f36d592c6a
wpt-pr: 9519
wpt-commits: 5a93530d4db27df7a3154d9a5b75a0f36d592c6a
wpt-pr: 9519
Automatic update from web-platform-testsIgnore order when parsing inset and color for box-shadow
According to the spec [1], box-shadow should allow the inset keyword and
a color in any order. Our implementation allowed only 2 out of the 4
possible orders; fix our parsing to match the spec.
[1]: https://drafts.csswg.org/css-backgrounds/#typedef-shadow
Bug: 811083
Change-Id: I54c3d15c177702624994c45044b446fd82fc9d98
Reviewed-on: https://chromium-review.googlesource.com/911994
Commit-Queue: Chris Nardi <[email protected]>
Reviewed-by: Emil A Eklund <[email protected]>
Cr-Commit-Position: refs/heads/master@{#536270}
wpt-commits: 9c1c6c3d5513b9b7d46a2c57c0950875ff6dd389
wpt-pr: 9474
wpt-commits: 9c1c6c3d5513b9b7d46a2c57c0950875ff6dd389
wpt-pr: 9474