Automatic update from web-platform-testsRemove stylesheet of link element when rel != stylesheet
Stylesheets from link elements that previously have rel = "stylesheet"
but then changed to something else should be removed/not considered
anymore until the rel attribute is changed back to "stylesheet" again.
Currently this works correctly for link elements in the document tree,
but fails in link elements within a shadow tree because link elements
in shadow tree with rel attribute != "stylesheet" are skipped from
processing. Because of that, the stylesheet in the link element was
never cleared and no style recalc happened.
JSBin from bug: http://jsbin.com/bojunajaju/edit?html,console,output
Bug: 817355
Change-Id: I57c71c79c0cc471d36eb988b8a81eef82c33548a
Reviewed-on: https://chromium-review.googlesource.com/995116
Commit-Queue: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: Hayato Ito <hayato@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548357}
wpt-commits: 5c9b2cf251344dd18522bd3fc88742533ce54d5a
wpt-pr: 10325
wpt-commits: 5c9b2cf251344dd18522bd3fc88742533ce54d5a
wpt-pr: 10325
Automatic update from web-platform-testsAdd tests to check that the User-Agent header is set for XHR requests
wpt-commits: c6247d29cf2f5e767983783f316080973d956fa3
wpt-pr: 10326
wpt-commits: c6247d29cf2f5e767983783f316080973d956fa3
wpt-pr: 10326
Automatic update from web-platform-testsOut-of-flow descendants may still be part of the flow thread.
When changing a layout object from in-flow to out-of-flow positioned, we
used to just remove it from the flow thread, risking that there'd no
longer be a column set to associate it with. However, an out-of-flow
positioned descendant may be contained by something that's inside the
flow thread, e.g. if the containing block of an absolutely positioned
object is a relatively positioned object, and that relatively positioned
object is contained by the flow thread.
Since it's hard to detect what the new containing block of an object is
going to be before it has actually gone out of flow, we'll still remove
it from the flow thread, but we'll now detect that we need to re-insert
it when computed style has updated.
Bug: 827424
Change-Id: I413348b0d3ecd0c4b5051e6e9d2a4526863bef60
Reviewed-on: https://chromium-review.googlesource.com/995439
Reviewed-by: Emil A Eklund <eae@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548354}
wpt-commits: 297db81150f9a96a0d4582a9fed93f86c8e56a36
wpt-pr: 10304
wpt-commits: 297db81150f9a96a0d4582a9fed93f86c8e56a36
wpt-pr: 10304
Automatic update from web-platform-testsCSS: Add WPT tests for basic ::part() functionality.
https://drafts.csswg.org/css-shadow-parts/
Tests cover the following:
- Simple - Part in selected host is styled
- Host Stylesheet - Part in selected host is not styled by ::part in a stylesheet inside the host
- Different Host - Part is not styled when host is not selected
- Inner Host
- Part in outer host is styled by document style sheet
- Part in inner host is not styled by document style sheet
- Compound Positive - Compound selector for host works
- Compound Negative - Non-matching compound selector for host does not style
- All Hosts
- ::part with host selector styles in first host
- ::part with host selector styles in second host
- Chaining Negative - ::part cannot be chained to reach elements in the inner host
Bug: 805271
Change-Id: I8c16ae09547bd833dbcc1eb0afb8be91a40c0a8e
Reviewed-on: https://chromium-review.googlesource.com/983833
Commit-Queue: Fergal Daly <fergal@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Takayoshi Kochi <kochi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548349}
wpt-commits: 54f844cf7cdfea12f59979c27781a4a52be335c5
wpt-pr: 10228
wpt-commits: 54f844cf7cdfea12f59979c27781a4a52be335c5
wpt-pr: 10228
Automatic update from web-platform-tests[css-typed-om] Add support for grid properties.
This patch adds support for some grid properties.
We add a new <flex> CSS value object, which meant rebaselining all the tests.
We're failing some tests because the 'grid', 'grid-template' and
'grid-gap' shorthands don't serialize to anything [1], so Typed OM
can't create an unsupported style value from it. Not sure if this is
a bug...
[1] https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp?type=cs&l=406
Bug: 820299
Change-Id: I8ff871fffed2977ca20a623bd283d7cbdc247870
Reviewed-on: https://chromium-review.googlesource.com/984756
Commit-Queue: Darren Shen <shend@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548296}
wpt-commits: 1d216465df83a087ff7be270a17db4a0e380aece
wpt-pr: 10229
wpt-commits: 1d216465df83a087ff7be270a17db4a0e380aece
wpt-pr: 10229
Automatic update from web-platform-testsWeb Animations: Fix bug with Document::getAnimations
Per spec, we should exclude effects that do not target an element in
the called document:
https://drafts.csswg.org/web-animations-1/#dom-document-getanimations
Bug: 828424
Change-Id: I41405d82184b17c1185931e34735a5f946573844
Reviewed-on: https://chromium-review.googlesource.com/992812
Commit-Queue: Stephen McGruer <smcgruer@chromium.org>
Reviewed-by: Xida Chen <xidachen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548156}
wpt-commits: c148004d6600cc0530d41ec285f2cf80f443052f
wpt-pr: 10281
wpt-commits: c148004d6600cc0530d41ec285f2cf80f443052f
wpt-pr: 10281
Automatic update from web-platform-testsRTCPeerConnection.getStats(MediaStreamTrack? selector = null) added.
Implements the RTCPeerConnection.getStats(MediaStreamTrack) version[1]
of the stats selection algorithm behind flag. This is the equivalent of
doing RTCRtpSender.getStats() or RTCRtpReceiver.getStats() for the
track's sender or receiver. This is tested in external/wpt/.
Due to limitations of the generated V8 bindings it is not possible to
express all versions of RTCPeerConnection.getStats() at the same time
in IDL. Thus this CL introduces a version of getStats() taking
"optional any callbacksOrSelector" as argument, with custom binding
logic performed in RTCPeerConnection.cpp. A fast/peerconnection/
LayoutTest is added to test all combinations.
[1] https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-getstats
Bug: 680172
Change-Id: I8c64fc64c708d266c926dfa3eb3587c4cbb31210
Reviewed-on: https://chromium-review.googlesource.com/978128
Commit-Queue: Henrik Boström <hbos@chromium.org>
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Reviewed-by: Harald Alvestrand <hta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548149}
wpt-commits: 7ba8056fed36440665a9ff9ee756b7146e9a1777
wpt-pr: 10247
wpt-commits: 7ba8056fed36440665a9ff9ee756b7146e9a1777
wpt-pr: 10247
Automatic update from web-platform-testsbluetooth: web: test: Use AllResponsesConsumed
This change uses AllResponsesConsumed in the bluetooth Web Platform
Tests in order to make sure we have consumed all the anticipatory
responses that we've set on our fakes.
BUG=569709
Change-Id: I9767792fcd5dda71fabf2f8941638f744aefa2dc
Reviewed-on: https://chromium-review.googlesource.com/988422
Commit-Queue: Conley Owens <cco3@chromium.org>
Reviewed-by: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548125}
wpt-commits: 148f026e5178b0b8d77e8f374671c9c5ff1545bf
wpt-pr: 10257
wpt-commits: 148f026e5178b0b8d77e8f374671c9c5ff1545bf
wpt-pr: 10257
Automatic update from web-platform-testsFix up the touch-action tests
Move the touch-action: pan-left/right/up/down tests to
the next version of the spec.
https://github.com/w3c/pointerevents/pull/238
Bug: 826726
Change-Id: Icab0e439e0c2281f0c9fc78eec0a41a044f37f71
Reviewed-on: https://chromium-review.googlesource.com/984736
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Commit-Queue: Navid Zolghadr <nzolghadr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548078}
wpt-commits: 48df374681de1672f3826915161f6c2e12ec4d59
wpt-pr: 10241
wpt-commits: 48df374681de1672f3826915161f6c2e12ec4d59
wpt-pr: 10241
Automatic update from web-platform-testsSimplify assert_throws in two places where error messages were passed
This was discovered in
https://chromium-review.googlesource.com/c/chromium/src/+/980757 by
letting assert_throws also check that the message matches. That change
itself isn't a good idea, but it's still just as well to use plain
TypeErrors here to not make it seems like more is being tested than in
fact is.
Change-Id: I8f964e9b25cc94942cb86f3ee0017530f230e04a
Reviewed-on: https://chromium-review.googlesource.com/995192
Reviewed-by: Adam Rice <ricea@chromium.org>
Reviewed-by: Mounir Lamouri <mlamouri@chromium.org>
Commit-Queue: Philip Jägenstedt <foolip@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548060}
wpt-commits: 168e0e121c233c19292757f66fd949a444efffc1
wpt-pr: 10303
wpt-commits: 168e0e121c233c19292757f66fd949a444efffc1
wpt-pr: 10303
Automatic update from web-platform-tests[css-typed-om] Support animation and transition properties.
This patch supports all the animation/transition properties except
animation-name and transition-property (need spec feedback first).
We also fix the <time> tests so that computed time values use canonical
units as spec'd in [1].
[1] https://github.com/w3c/css-houdini-drafts/issues/725
Bug: 820299
Change-Id: I7c038ce419f8bdb1c789493554776c5e7f9810c7
Reviewed-on: https://chromium-review.googlesource.com/983094
Commit-Queue: Darren Shen <shend@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548017}
wpt-commits: e50234432b0ada957446c990c92db9443a7b78fe
wpt-pr: 10202
wpt-commits: e50234432b0ada957446c990c92db9443a7b78fe
wpt-pr: 10202
Automatic update from web-platform-testsFix a typo in wpt/css/css-text-decor/text-emphasis-style-001.html
This test does not pass because of a typo in the ref file.
Change-Id: I2673137789267359544a50e126d3ba16b728770b
Reviewed-on: https://chromium-review.googlesource.com/989455
Commit-Queue: Philip Jägenstedt <foolip@chromium.org>
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547847}
wpt-commits: c218fe33f47ca555d303dedeb117c205dc2a19a1
wpt-pr: 10268
wpt-commits: c218fe33f47ca555d303dedeb117c205dc2a19a1
wpt-pr: 10268
Automatic update from web-platform-tests[Mojo Blob URLs] Resolve navigation blob URLs in blink.
This makes sure that no race conditions exist between navigating to a
blob URL and revoking it. Currently only implemented for the network
service code path.
Also add one more navigation-then-revoke WPT test, as the existing tests
didn't cover the NavigationScheduler code-path.
Design doc: https://docs.google.com/document/d/1DqVcTWE9Qb_3KpIRH2bFV-6hWEr8S92c4ppY67YL1KI/edit#heading=h.n4fzuc6mgziv
Further navigation cases are handled in https://chromium-review.googlesource.com/c/chromium/src/+/899508.
Bug: 800901
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo
Change-Id: Icf9a4725526b4329a2841626977292802ad2fa7a
Reviewed-on: https://chromium-review.googlesource.com/898009
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Commit-Queue: Marijn Kruisselbrink <mek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547842}
wpt-commits: 992147614f6cdd4fcb8b03e19c9af25cacacd192
wpt-pr: 9353
wpt-commits: 992147614f6cdd4fcb8b03e19c9af25cacacd192
wpt-pr: 9353
Automatic update from web-platform-testsMerge pull request #9373 from w3c/user/frremy/contribute-css-fonts-4-tests
[css-fonts-4] Contribute Microsoft tests for Font Variations
wpt-commits: 00308147d33bdd04344e2308036e30c957b64915
wpt-pr: 9373
wpt-commits: 00308147d33bdd04344e2308036e30c957b64915
wpt-pr: 9373
Automatic update from web-platform-testsRewrite CSSOM index tests
index-001.html and index-002.html had nondescript names, and index-002.html used generate_tests. Merge index-001.html into shorthand-serialization.html, and create shorthand-values.html from index-002.html.
Builds off the work of #5331.
--
Correct serialization of overflow
wpt-commits: d30e62092787a340b4cfbeb0434a75e15028f69d, 09329e8bb6498a74cc8c054a263b2698a72d2f8e
wpt-pr: 10014
wpt-commits: d30e62092787a340b4cfbeb0434a75e15028f69d, 09329e8bb6498a74cc8c054a263b2698a72d2f8e
wpt-pr: 10014
Automatic update from web-platform-testsDon't enforce name rule for RTCDTMFToneChangeEvent
Since the constructor of RTCDTMFToneChangeEvent is exposed,
creating such events with other names than "tonechange" is possible.
No reason to discriminate against such.
Also adds tests for constructor.
Bug: chromium:822799
Change-Id: I4b36f3094acee200dd4200c4d24f6b46e10a06e6
Reviewed-on: https://chromium-review.googlesource.com/992038
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Commit-Queue: Harald Alvestrand <hta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547742}
wpt-commits: 6e2b4a77cb3d321b5d8a91bdbe4bbf8a0d777781
wpt-pr: 10278
wpt-commits: 6e2b4a77cb3d321b5d8a91bdbe4bbf8a0d777781
wpt-pr: 10278
Automatic update from web-platform-testsMerge pull request #10286 from bzbarsky/stable-error-messages-for-link-load
Use stable error messages in the link onload event tests by default.
wpt-commits: f527ada08cea94e63a40712062073d6ed37c8526
wpt-pr: 10286
wpt-commits: f527ada08cea94e63a40712062073d6ed37c8526
wpt-pr: 10286
Automatic update from web-platform-testsReadableStream: getReader() should call ToString() on mode
When the "mode" option is not undefined, getReader({mode}) algorithm
calls ToString() on it before checking whether or not it is "blob". Add
a test to ensure this conversion is done.
wpt-commits: ea469b6059e82729ef04cd90758fc9b52b733c7f
wpt-pr: 10267
wpt-commits: ea469b6059e82729ef04cd90758fc9b52b733c7f
wpt-pr: 10267
Automatic update from web-platform-testsbluetooth: web: test: Update blocklist UUID tests
This change updates the blocklisted UUID tests to use the Web
Bluetooth Test API. This will allow the test to be migrated into wpt/.
BUG=509038
Change-Id: I72acd10e5aabc4c03f955dc4c7b2a8620930cc2d
Reviewed-on: https://chromium-review.googlesource.com/894738
Commit-Queue: Ovidio Henriquez <odejesush@chromium.org>
Reviewed-by: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547588}
wpt-commits: 02bf90086b80366a87edee52090a62896dd2391d
wpt-pr: 9322
wpt-commits: 02bf90086b80366a87edee52090a62896dd2391d
wpt-pr: 9322
Automatic update from web-platform-testsSerialize font shorthand like any other shorthand
The font shorthand had a short-circuit in StylePropertySerializer, which
meant that it was never serialized as a shorthand for style.cssText,
citing reasons of web incompatibility. However, it appears that all
other major browsers serialize font as a shorthand instead of having
style.cssText expand to all properties. Remove this short-circuit to
match other browsers.
Bug: 827921
Change-Id: I4d522b41a6153808b6b8dab17831afdd8315fdc3
Reviewed-on: https://chromium-review.googlesource.com/989834
Commit-Queue: Chris Nardi <cnardi@chromium.org>
Reviewed-by: Timothy Loh <timloh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547607}
wpt-commits: 939b30a8b26ee46598d531034b40baf87d33f08a
wpt-pr: 10270
wpt-commits: 939b30a8b26ee46598d531034b40baf87d33f08a
wpt-pr: 10270
Automatic update from web-platform-testsCookie Store API: Split out and enable test cases
Split out cases from a master "cookie-store-tests.js" suite,
allowing them to be enabled/debugged separately.
Also updates observation tests to use the new "change" event,
and deletes "static" since we can assume a dependency on a test
server here.
Bug: 783229
Change-Id: I9e29ea74a2f0513a033a8f9c71da2836c000ee27
Reviewed-on: https://chromium-review.googlesource.com/986649
Commit-Queue: Joshua Bell <jsbell@chromium.org>
Reviewed-by: Victor Costan <pwnall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547543}
wpt-commits: 94b7255991af7f0ddf582ff316b069c54e0e87b8
wpt-pr: 10244
wpt-commits: 94b7255991af7f0ddf582ff316b069c54e0e87b8
wpt-pr: 10244
Automatic update from web-platform-testsTests and docs for the current CORB vs <link rel="preload"> behavior.
Bug: 809261
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo
Change-Id: Idafb2b4cc5da3d6c7a054e479745288cc3b86513
Reviewed-on: https://chromium-review.googlesource.com/984338
Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
Reviewed-by: Nick Carter <nick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547494}
wpt-commits: 4bb4e6ec3e5abe394a69e79c0d6df160b606e6f4
wpt-pr: 10213
wpt-commits: 4bb4e6ec3e5abe394a69e79c0d6df160b606e6f4
wpt-pr: 10213
Automatic update from web-platform-testsRemove test that CSSStyleSheet.media is read-only
style-sheet-interfaces-001.html tested that styleSheet.media was
read-only, but the spec changed to add a [PutForwards] attribute to
|media|, meanining that the attribute is no longer truly read-only.
assert_readonly can have side-effects if the property has a
[PutForwards] attribute, so remove this check, as it was causing the
next test to fail.
Bug: 821780
Change-Id: I77bee2f11484f6e679e4aee6b0641179c686d1d3
Reviewed-on: https://chromium-review.googlesource.com/989407
Reviewed-by: Emil A Eklund <eae@chromium.org>
Commit-Queue: Chris Nardi <cnardi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547451}
wpt-commits: af485dcf5f9fb6c1892908ab850b2bf49bc765a2
wpt-pr: 10264
wpt-commits: af485dcf5f9fb6c1892908ab850b2bf49bc765a2
wpt-pr: 10264
Automatic update from web-platform-tests[css-grid] Fix resolution of percentage paddings and margins of grid items
We were not resolving properly percentage paddings and margins
for tracks that have something like minmax(auto, 100px).
The reason was that while computing the minimum size of a grid item,
the percentages were resolved against the inline size of the grid container.
But for grid items we shouldn't never use the grid container size,
but the grid area size, as that's their containing block.
The patch modifies ContainingBlockLogicalWidthForContent() and
ContainingBlockLogicalHeightForContent() in LayoutBox,
so for grid items we return 0 if the area size hasn't been set yet.
We never want to use the grid container's sizes in these cases.
BUG=808758
TEST=external/wpt/css/css-grid/grid-items/grid-items-percentage-margins-*
TEST=external/wpt/css/css-grid/grid-items/grid-items-percentage-paddings-*
Change-Id: Ib142e51aee1fe623d38688469b179f01f82eb07b
Reviewed-on: https://chromium-review.googlesource.com/980756
Reviewed-by: Javier Fernandez <jfernandez@igalia.com>
Commit-Queue: Manuel Rego Casasnovas <rego@igalia.com>
Cr-Commit-Position: refs/heads/master@{#547417}
wpt-commits: e4efc10a82630de47f920a737aa8ea94845191af
wpt-pr: 10194
wpt-commits: e4efc10a82630de47f920a737aa8ea94845191af
wpt-pr: 10194
Automatic update from web-platform-testsUpdate IRC archive link (#10266)
The link was dead; update to the new link.
wpt-commits: 94b33b573a069ae5170104ca581a354a35762536
wpt-pr: 10266
wpt-commits: 94b33b573a069ae5170104ca581a354a35762536
wpt-pr: 10266
Automatic update from web-platform-testsSet SkipServiceWorker flag for synchronous loads from the main thread.
Before 5e1b52dd7e828fb2e4bd69f599c0c30eec3e873c, synchronous XHR on worker
was handled by service workers. It is because the |is_sync_load| was false
when the sync request is from worker thread. But after the CL, the
|is_sync_load| flag for the sync request from worker became true, so the request
will not go to the service worker.
This CL will fix this by
- Set the SkipServiceWorker flag for synchronous loads from the main thread
in the renderer process. (FetchParameters.cpp)
- Don't set skip_service_worker even if is_sync_load is true in the browser
process. (resource_dispatcher_host_impl.cc)
Bug: 706331,827473
Change-Id: I186bc97f3f8d298e0a04942d0ec4b708b3022cc1
Reviewed-on: https://chromium-review.googlesource.com/989376
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Tsuyoshi Horo <horo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547407}
wpt-commits: d68f044162867a8283c6d4adbf19e9587b6ea2fa
wpt-pr: 10265
wpt-commits: d68f044162867a8283c6d4adbf19e9587b6ea2fa
wpt-pr: 10265
Automatic update from web-platform-testsAdd a DataTransfer test
The types attribute must return this DataTransfer object's types array
wpt-commits: 1331d68a18a959d74c73142ed984c65f455ce1fe
wpt-pr: 8605
wpt-commits: 1331d68a18a959d74c73142ed984c65f455ce1fe
wpt-pr: 8605
Automatic update from web-platform-testsDelete wasm/many-memories.window.js WPT test
Testing for a specific number is causing problems and determining the right
number is problematic in general, as running out of memory is always a
legitimate possiblity. See https://github.com/WebAssembly/design/issues/1167 for
more discussion. In light of this, it's best to just remove the test.
Bug:
Change-Id: I66e248c8ab851bca0c54fa6fe13b6e93e55f1264
Reviewed-on: https://chromium-review.googlesource.com/851081
Commit-Queue: Brad Nelson <bradnelson@chromium.org>
Reviewed-by: Brad Nelson <bradnelson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547333}
wpt-commits: fc33be9acfbf8e883fd9683c527aab22d842542b
wpt-pr: 8927
wpt-commits: fc33be9acfbf8e883fd9683c527aab22d842542b
wpt-pr: 8927
Automatic update from web-platform-testsReplace Arial with Arimo GCS font
BUG=787020
TBR=dpranke,asvitkine
Change-Id: I38740d1ee9fe621eabd5416f1a87b23a71fbb7e7
Reviewed-on: https://chromium-review.googlesource.com/986812
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547246}
wpt-commits: 771a209d64f3c07430b5b0090bc61fc31485f0b9
wpt-pr: 10256
wpt-commits: 771a209d64f3c07430b5b0090bc61fc31485f0b9
wpt-pr: 10256