Adjust background clip when local attachment is used with non-visible overflow.
BUG=625882
TEST=compositing/backgrounds/local-background.html
Committed: https://crrev.com/e3a98dc7050d4e575967177edaca49742024e8c8
Cr-Commit-Position: refs/heads/master@{#407871}
Hi, Can you take a look at this patch? This fixes an issue we have ...
4 years, 5 months ago
(2016-07-05 21:21:34 UTC)
#2
Hi,
Can you take a look at this patch? This fixes an issue we have with compositing
background-attachment local scrollable elements (See the test). Basically,
LayoutBox::backgroundIsKnownToBeOpaqueInRect assumes that the background clip on
the style is correct which results in us marking the background layer of
composited scrollers as opaque incorrectly for background attachment local. The
spec says that for scrollable elements the ‘border-box’ value of
‘background-clip’ may be treated the same as ‘padding-box’ [2] so this change
modifies the computed style so that we can assume it has the correct clip rather
than complicating bounds checks elsewhere. WDYT?
Thanks,
Rob
[1]
https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/layout/La...
[2] https://www.w3.org/TR/css3-background/#the-background-attachment
lgtm, but I don't have owners. Adding Tim for owners.
4 years, 5 months ago
(2016-07-06 05:27:10 UTC)
#4
lgtm, but I don't have owners. Adding Tim for owners.
Timothy Loh
Doesn't this mean that getComputedStyle(e).backgroundClip will now be padding-box instead of border-box? The spec defines ...
4 years, 5 months ago
(2016-07-06 05:45:01 UTC)
#5
Doesn't this mean that getComputedStyle(e).backgroundClip will now be
padding-box instead of border-box? The spec defines the computed value for
background-clip to be 'as specified' so changing the value here is probably not
right (FF returns border-box). Maybe we could instead add another bitfield for
the adjusted value so getComputedStyle and inheritance use the unadjusted value?
flackr
On 2016/07/06 at 05:45:01, timloh wrote: > Doesn't this mean that getComputedStyle(e).backgroundClip will now be ...
4 years, 5 months ago
(2016-07-06 19:53:50 UTC)
#6
On 2016/07/06 at 05:45:01, timloh wrote:
> Doesn't this mean that getComputedStyle(e).backgroundClip will now be
padding-box instead of border-box? The spec defines the computed value for
background-clip to be 'as specified' so changing the value here is probably not
right (FF returns border-box). Maybe we could instead add another bitfield for
the adjusted value so getComputedStyle and inheritance use the unadjusted value?
I see, thanks for catching this. Perhaps it's simpler to provide/use a helper
method for calculating the background clip rect which takes this into account
(see patch 3)?
flackr
Tim, would you have a chance to look at the latest patch?
4 years, 5 months ago
(2016-07-08 01:34:22 UTC)
#7
Tim, would you have a chance to look at the latest patch?
Timothy Loh
On 2016/07/08 01:34:22, flackr wrote: > Tim, would you have a chance to look at ...
4 years, 5 months ago
(2016-07-08 08:50:42 UTC)
#8
On 2016/07/08 01:34:22, flackr wrote:
> Tim, would you have a chance to look at the latest patch?
Sorry I didn't get a chance to look at it today, and will be OOO next week. Feel
free to send to someone else if you want it in sooner (looks like it's just
touching layout code now?)
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/261131)
4 years, 5 months ago
(2016-07-12 18:29:48 UTC)
#16
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/261773)
4 years, 4 months ago
(2016-07-25 23:52:34 UTC)
#20
4 years, 4 months ago
(2016-07-26 19:03:53 UTC)
#23
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
commit-bot: I haz the power
Description was changed from ========== Adjust background clip when local attachment is used with non-visible ...
4 years, 4 months ago
(2016-07-26 19:05:16 UTC)
#24
Message was sent while issue was closed.
Description was changed from
==========
Adjust background clip when local attachment is used with non-visible overflow.
BUG=625882
TEST=compositing/backgrounds/local-background.html
==========
to
==========
Adjust background clip when local attachment is used with non-visible overflow.
BUG=625882
TEST=compositing/backgrounds/local-background.html
Committed: https://crrev.com/e3a98dc7050d4e575967177edaca49742024e8c8
Cr-Commit-Position: refs/heads/master@{#407871}
==========
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/e3a98dc7050d4e575967177edaca49742024e8c8 Cr-Commit-Position: refs/heads/master@{#407871}
4 years, 4 months ago
(2016-07-26 19:05:17 UTC)
#25
Issue 2127663002: Adjust background clip when local attachment is used with non-visible overflow.
(Closed)
Created 4 years, 5 months ago by flackr
Modified 4 years, 4 months ago
Reviewers: meade_UTC10, eae
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 0