Commit Graph
10 Commits
Author SHA1 Message Date
Florin Malita 72fd502eb8 Bug 1507421 [wpt PR 14067] - Fix box-shadow clipping for opaque-background <body>, a=testonly
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
2018-11-21 13:59:18 +00:00
Brindusan Cristian 6e5ca73fc1 Backed out 53 changesets (bug 1505878, bug 1507080, bug 1505638, bug 1507345, bug 1507122, bug 1507341, bug 1506769, bug 1497436, bug 1507796, bug 1506775, bug 1506697, bug 1507089, bug 1507908, bug 1504801, bug 1507063, bug 1507917, bug 1506089, bug 1506919, bug 1507805, bug 1507374, bug 1507421, bug 1507426, bug 1506886, bug 1488424, bug 1507558, bug 1507600, bug 1507977, bug 1507549, bug 1507526, bug 1507064, bug 1507586, bug 1508031, bug 1507472, bug 1507239, bug 1507250, bug 1507532, bug 1507519, bug 1508354, bug 1507660, bug 1506716, bug 1508014, bug 1506994) for wpt failures on grid-container-scrollbar-vertical-lr-001.html. CLOSED TREE
Backed out changeset 584f730e1865 (bug 1508354)
Backed out changeset 3bdcf979b1a2 (bug 1507532)
Backed out changeset f36221255331 (bug 1506769)
Backed out changeset d8ba2f11effc (bug 1506769)
Backed out changeset c4430fdd1d22 (bug 1508031)
Backed out changeset b4d49ed8873e (bug 1507796)
Backed out changeset f380f6a8f5c0 (bug 1508014)
Backed out changeset d94695f27915 (bug 1507421)
Backed out changeset 2b4e8d165519 (bug 1505638)
Backed out changeset a96795d1de3f (bug 1505638)
Backed out changeset 6e08180c8ba3 (bug 1507977)
Backed out changeset e758e29e8a1a (bug 1507908)
Backed out changeset 380cb8a671e9 (bug 1507917)
Backed out changeset 77f172246b2d (bug 1507519)
Backed out changeset 61abe5c39ab5 (bug 1504801)
Backed out changeset c750807ac5c4 (bug 1504801)
Backed out changeset b49e6067e4bc (bug 1507472)
Backed out changeset bb03633ea79a (bug 1507472)
Backed out changeset f73f87484839 (bug 1507805)
Backed out changeset ab97e60ed777 (bug 1507586)
Backed out changeset d4129dccff17 (bug 1506089)
Backed out changeset bcb5a5eebc6c (bug 1488424)
Backed out changeset d76dc6e3bbaa (bug 1507064)
Backed out changeset 30d8f48aab99 (bug 1507080)
Backed out changeset e6d88d9f73af (bug 1507080)
Backed out changeset ee38ad38e9a1 (bug 1507549)
Backed out changeset 0b2f80185614 (bug 1506919)
Backed out changeset 0143d49ed65b (bug 1507660)
Backed out changeset 2c739b93be1e (bug 1506716)
Backed out changeset 0a4f3d45b0c5 (bug 1506716)
Backed out changeset 81e2dcf84fb1 (bug 1506886)
Backed out changeset 22f64d38d9c8 (bug 1505878)
Backed out changeset 0475d6073c30 (bug 1505878)
Backed out changeset 956ed95b791e (bug 1507374)
Backed out changeset ac8170415338 (bug 1507600)
Backed out changeset d7e0ada61934 (bug 1507345)
Backed out changeset 6a730fb5a7e4 (bug 1507250)
Backed out changeset 1e351d1c2022 (bug 1507250)
Backed out changeset 031385cb5558 (bug 1507239)
Backed out changeset 2fa696969cc2 (bug 1507239)
Backed out changeset 9d55c7b68552 (bug 1507558)
Backed out changeset 7385eaebb8e9 (bug 1507526)
Backed out changeset d2ac36f03ef5 (bug 1506775)
Backed out changeset b6ebdb6e8bf9 (bug 1507426)
Backed out changeset 29ca75ba2433 (bug 1507341)
Backed out changeset b5aa3737ca29 (bug 1497436)
Backed out changeset f3cb0265f0c1 (bug 1497436)
Backed out changeset f3f2d714b4eb (bug 1506994)
Backed out changeset aa35cce4fb76 (bug 1507089)
Backed out changeset 43cfc59879d2 (bug 1507089)
Backed out changeset 8e13752959d6 (bug 1507122)
Backed out changeset dfbc81d5e518 (bug 1507063)
Backed out changeset 378d0c633eae (bug 1506697)
2018-11-20 20:37:05 +02:00
Florin Malita c9c3094219 Bug 1507421 [wpt PR 14067] - Fix box-shadow clipping for opaque-background <body>, a=testonly
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
2018-11-20 16:32:32 +00:00
Stephen Chenney 3df539d5e0 Bug 1507028 [wpt PR 14042] - Fix background image painting of very small images, a=testonly
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
2018-11-19 11:46:27 +00:00
Bert Bos c5fbf7ce24 Bug 1460236 [wpt PR 7579] - Baseline of inline-block for different values of overflow, for an errata to CSS2, a=testonly
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
2018-05-14 09:55:09 +00:00
Ms2ger 335dad53c8 Bug 1458811 [wpt PR 10814] - Improve color use in background-clip-content-box-001.html., a=testonly
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
2018-05-08 15:52:24 +01:00
Geoffrey Sneddon d2d46efa23 Bug 1458313 [wpt PR 10739] - Revert "Update mozrunner from 7.0.0 to 7.0.1", a=testonly
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
2018-05-08 15:51:11 +01:00
Chris Nardi 33f74cbe89 Bug 1438276 [wpt PR 9519] - Test box-shadow serialization, a=testonly
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
2018-04-20 21:58:56 +01:00
Chris Nardi 07592d9170 Bug 1437466 [wpt PR 9474] - Ignore order when parsing inset and color for box-shadow, a=testonly
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
2018-03-31 22:20:01 +01:00
James Graham ce3ea2f585 Bug 1419296 - Update web-platform-tests to fa27b785c62e67cc3a12201612db188c4fdd49ad, a=testonly
MozReview-Commit-ID: 4P631tX3vv4
2017-11-21 07:39:00 +00:00