Automatic update from web-platform-testsCorrectly resolve relative URLs for registered custom properties.
Relative URLs in registered custom properties must resolve against the
base URL of the originating stylesheet. For instance, consider a style-
sheet at /style/mystyle.css:
--foo: url("myimage.jpg");
And a document at /index.html:
<style>
background-image: var(--foo);
</style>
If the property --foo is registered with syntax <url>, then the background-
image should be /style/myimage.jpg.
This is contrary to non-registered properties, in which case the
background-image would be /myimage.jpg.
To implement this, this patch scans for URL tokens and 'url('-function
tokens after (var-)resolving the registered custom property
(see CSSVariableResolver::ResolveCustomProperty). The token containing
the relative URL is then rewritten (in-place) to contain an absolute URL
instead.
To avoid doing unnecessary work, we only scan the token stream if
CSSVariableData::needs_variable_resolution_ is set. This is set either
if needs_url_resolution_ is set (because var-references could produce
relative URLs), or if the token stream contains URL/function-tokens.
When a resolved CSSVariableData is created (::CreateResolved), it is
assumed that the incoming token stream contains no URLs that need to be
resolved.
R=futhark@chromium.org, timloh@chromium.org
Bug: 851490
Change-Id: I25b1e839fc92eb538f30670fe91fc92a1ad9d5ea
Reviewed-on: https://chromium-review.googlesource.com/1109975
Commit-Queue: Anders Ruud <andruud@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569663}
--
wpt-commits: 372c7ad36a7e42a89228aa2bb88b35da5f519fa5
wpt-pr: 11611
Automatic update from web-platform-tests[css-contain] Size containment replaced elements intrinsic size is zero
The spec is very clear about this
(https://drafts.csswg.org/css-contain/#containment-size):
"Replaced elements must be treated as having an intrinsic width
and height of 0."
The patch modifies LayoutReplaced::ComputeIntrinsicSizingInfo()
so that it returns zero for elements with "contain: size".
BUG=853441
TEST=external/wpt/css/css-contain/contain-size-013.html
Change-Id: I91490b120a110be20a91d564da4fdc3d9a11b70a
Reviewed-on: https://chromium-review.googlesource.com/1110819
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Commit-Queue: Manuel Rego Casasnovas <rego@igalia.com>
Cr-Commit-Position: refs/heads/master@{#569610}
--
wpt-commits: 46c8d39a9fde254df3398c681fd724990d289892
wpt-pr: 11622
Automatic update from web-platform-testsCompleted 'unsafe-hashes' per spec
'unsafe-hashed-attributes' renamed to 'unsafe-hashes'
'unsafe-hashes' matches style attributes correctly now
'unsafe-hashes' works for javascript: URLs
'unsafe-hashes' tests added and ammended
spec (approved and to be submitted at the same time as this CR):
https://github.com/w3c/webappsec-csp/pull/311
I2I: https://groups.google.com/a/chromium.org/d/msg/blink-dev/4dohVXDfEI4/tO6rhuv4AwAJ
Bug: 771922
Change-Id: I018cc0f73d492cb4057ff4c41d9be4df8438036c
Reviewed-on: https://chromium-review.googlesource.com/1095217
Reviewed-by: Mike West <mkwst@chromium.org>
Commit-Queue: Andy Paicu <andypaicu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569593}
--
wpt-commits: fb04aed6ac840bd35178406583af6da6759c3566
wpt-pr: 11457
Automatic update from web-platform-testsSec-Metadata: Strings are quoted in structured headers.
So this patch adds quotes.
See https://tools.ietf.org/html/draft-ietf-httpbis-header-structure-06#section-3.7
and 98f7c1253e.
Bug: 843478
Change-Id: I29dfa3a87e3c65a1b64009e173faa6d0f41b40f4
Reviewed-on: https://chromium-review.googlesource.com/1109819
Commit-Queue: Mike West <mkwst@chromium.org>
Reviewed-by: Camille Lamy <clamy@chromium.org>
Reviewed-by: Andy Paicu <andypaicu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569554}
--
wpt-commits: d6020b4e6f97afaa89624f316611061673eb3f53
wpt-pr: 11605
Automatic update from web-platform-tests[testharness.js] Get title from the filename or a META comment if not given (#11403)
--
wpt-commits: f777ec99a11d0d0522e691a8dab93c70d70941f3
wpt-pr: 11403
Automatic update from web-platform-testsWPT: Add long timeout to service-worker/navigation-redirect.https.html test.
This test is slow because it does a lot of navigations.
Bug: 854913
Change-Id: I2b5f984ba4b656af0d735b3c2c14952fdac5867b
Reviewed-on: https://chromium-review.googlesource.com/1111493
Commit-Queue: Matt Falkenhagen <falken@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569544}
--
wpt-commits: 91c59efbec2e393f48c9983b5c84acc1aa55efd5
wpt-pr: 11620
Automatic update from web-platform-testsMerge pull request #11619 from frivoal/css-ui-11598
[css-ui] Fix paths to work in testharness & css built test suites
--
wpt-commits: 7d60038cac3d6104be86868a62892e8d1968ddc0
wpt-pr: 11619
--HG--
rename : testing/web-platform/tests/css/css-ui/parsing/resources/parsing-testcommon.js => testing/web-platform/tests/css/css-ui/parsing/support/parsing-testcommon.js
Automatic update from web-platform-testsPrevent abort error from breaking test in FF (fixes#10792)
--
wpt-commits: bbe3411e20381f494983c3acf359bb9fdcaaa16d
wpt-pr: 11614
Automatic update from web-platform-testsMerge pull request #10913 from Tavmjong/paint-context
Add basic tests for context fill and stroke.
--
wpt-commits: e3173905464f0afb36163fa271ff01957eedec7c
wpt-pr: 10913
Automatic update from web-platform-testsRemove unneeded WebAudio IDL tests
The IDL tests in the subdirectories aren't really needed anymore since
we have webaudio/idlharness.https.html that covers everything in the
individual tests.
Bug: 854220
Change-Id: I589f4972922dfc15c475ce20e7c4cb664b529920
Reviewed-on: https://chromium-review.googlesource.com/1107120
Reviewed-by: Hongchan Choi <hongchan@chromium.org>
Commit-Queue: Raymond Toy <rtoy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569280}
--
wpt-commits: 1e174dd99ca9c17829565042d276ba477de5b6bc
wpt-pr: 11580
Automatic update from web-platform-testsAdd the shape-detection-api IDL file and test (#9832)
--
wpt-commits: 3f54c291ef98b8657ac772b04822460865cd6e7e
wpt-pr: 9832
Automatic update from web-platform-testsUpdate existing WebUSB WPT to be multi-global
This change updates the remaining WebUSB web platform tests to be
multi-global so that the API is also tested in the worker contexts.
Bug: 841510
Change-Id: I9df24f1ae4289ab742db275c34552200bb477b22
Reviewed-on: https://chromium-review.googlesource.com/1089033
Commit-Queue: Ovidio Henriquez <odejesush@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#565778}
--
wpt-commits: a82a385bd794d9120b0eb8b94f452d4d38bfe04b
wpt-pr: 11384
Automatic update from web-platform-testsReland "Multi-global WebUSB WPT for window and worker"
This is a reland of 1ff37758f07612906228581dbc808df4b282e250
Original change's description:
> Multi-global WebUSB WPT for window and worker
>
> This change updates the existing web platform tests for WebUSB to use
> multi-global tests to test the API in the supported contexts. The
> change updates the following tests:
> * idlharness
> * usb
> * usbConnectionEvent
>
> Bug: 841510
> Change-Id: I6b118aa4121109cd6a48054c2ebc69b831660afc
> Reviewed-on: https://chromium-review.googlesource.com/1087209
> Reviewed-by: Reilly Grant <reillyg@chromium.org>
> Commit-Queue: Ovidio Henriquez <odejesush@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#564981}
Bug: 841510
Change-Id: Ie354fdd54a4cd94a4801ee634c8d3263e0aa6e93
Reviewed-on: https://chromium-review.googlesource.com/1089647
Commit-Queue: Ovidio Henriquez <odejesush@chromium.org>
Reviewed-by: Chong Zhang <chongz@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567290}
--
wpt-commits: 6dee65cf657cfc5b2ad1042f778980eef79dd67d
wpt-pr: 11391
--HG--
rename : testing/web-platform/tests/webusb/resources/usb.serviceworker.js => testing/web-platform/tests/webusb/usb.serviceworker.js
Automatic update from web-platform-testsHTML: split up meta refresh parsing test
Part of #11571.
--
wpt-commits: a9d0ad0cd520582ba102993460cd318cccd8153d
wpt-pr: 11607
Automatic update from web-platform-testsWebSocket: only test 2 connections in websockets/constructor/014.html
Part of #11571.
--
wpt-commits: 7e77da661fc920d3cda671be9804fcd8a24dae29
wpt-pr: 11606
Automatic update from web-platform-testsHTML: Expect salvegable to be set to false for pagehide test
Also rename the manual test.
Part of #11269.
--
wpt-commits: 939af265657f0fe6c59094cd9a519b6be9fdbac0
wpt-pr: 11294
--HG--
rename : testing/web-platform/tests/html/browsers/browsing-the-web/unloading-documents/unload/manual-001-1.html => testing/web-platform/tests/html/browsers/browsing-the-web/unloading-documents/unload/pagehide-manual-1.html
Automatic update from web-platform-testsSplit up WebCryptoAPI/derive_bits_keys/ with `variant`
Also use .any.js.
Fixes#11203.
--
wpt-commits: 864cba25d0ac3d2f49e851623370f565ca293cbe
wpt-pr: 11204
Automatic update from web-platform-testsNavigating to fragment scrolls with writing-mode: vertical-rl
This CL sets the alignment of the Anchor node in accordance, when
vertical-rl writing-mode is set
Bug: 844868
Change-Id: I8357bcccbc88ffcd3b5d01265737a5b60f1e59a8
Reviewed-on: https://chromium-review.googlesource.com/1075956
Commit-Queue: srirama chandra sekhar <srirama.m@samsung.com>
Reviewed-by: David Bokan <bokan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569214}
--
wpt-commits: 81918dc2da004801fba7f8833daf6930882831c3
wpt-pr: 11372
Automatic update from web-platform-testsDon't clear non-layout-object style for PseudoElements.
They are only used for storing an extra ComputedStyle for
display:contents pseudo elements as the ComputedStyle for rendering uses
a display:inline with only properties inherited for the parent element.
Bug: 854563
Change-Id: I4dd3d99b0dee0b538645d005b36347b469799244
Reviewed-on: https://chromium-review.googlesource.com/1107802
Reviewed-by: Anders Ruud <andruud@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569204}
--
wpt-commits: bcae036590041ef1704e2ba337e0577dac8c11c4
wpt-pr: 11594
Automatic update from web-platform-testsAdd a new test case for hit testing inline elements
This patch adds a new WPT that hit tests the empty region in an inline
element above a child with smaller font size (i.e., smaller height), and
expects to hit the inline element itself.
This helps us add related implementation in LayoutNG, since no existing
test case tests this behavior yet.
Bug: 851075
Cq-Include-Trybots: luci.chromium.try :linux_layout_tests_layout_ng
Change-Id: Ic538681530e17ea0d5fc49612376e30bdcf563d8
Reviewed-on: https://chromium-review.googlesource.com/1108560
Reviewed-by: Emil A Eklund <eae@chromium.org>
Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569082}
--
wpt-commits: cece9a142ba91d0e283a3206f272bde4876fe2a7
wpt-pr: 11596
MozReview-Commit-ID: CvzjoCi9YpJ