aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/meta/html/canvas
Commit message (Collapse)AuthorAgeFilesLines
* Update FetchTaskTarget to propagate CSP violations. (#36409)Tim van der Lippe10 days1-2/+0
| | | | | | | | | | | | | | | | | | It also updates the FetchResponseListener to process CSP violations to ensure that iframe elements (amongst others) properly generate the CSP events. These iframe elements are used in the Trusted Types tests themselves and weren't propagating the violations before. However, the tests themselves are still not passing since they also use Websockets, which currently aren't using the fetch machinery itself. That is fixed as part of [1]. [1]: https://github.com/servo/servo/issues/35028 --------- Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com> Signed-off-by: Josh Matthews <josh@joshmatthews.net> Co-authored-by: Josh Matthews <josh@joshmatthews.net>
* Sync WPT with upstream (13-04-2025) (#36488)Servo WPT Sync10 days18-4/+48
| | | | | | Automated downstream sync of changes from upstream as of 13-04-2025 [no-wpt-sync] Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Sync WPT with upstream (06-04-2025) (#36369)Servo WPT Sync2025-04-061-0/+2
| | | | | | Automated downstream sync of changes from upstream as of 06-04-2025 [no-wpt-sync] Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Enable layout_grid_enabled pref for all tests (#36316)Oriol Brufau2025-04-034-0/+8
| | | | | | This is part of #36315 Testing: This improves several tests that rely on this feature Signed-off-by: Oriol Brufau <obrufau@igalia.com>
* canvas: Implement line dash setters and getters (#36257)Steven Novaryo2025-04-019-29/+0
| | | | | | | | | | | Implement `setLineDash`, `getLineDash`, and `lineDashOffset` from `CanvasPathDrawingStyles` mixin, according to the spec https://html.spec.whatwg.org/multipage/canvas.html#canvaspathdrawingstyles. Testing: Existing WPT. --------- Signed-off-by: stevennovaryo <steven.novaryo@gmail.com>
* Fix null realm assertion when activating a service worker (#36256)Josh Matthews2025-04-011-2/+0
| | | | | | | | | | | Ensure there is an active realm when dispatching the `activation` DOM event to the ServiceWorker global. Testing: Existing WPT coverage. Fixes: #36114 Fixes: #36235 Fixes: #36231 Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Update web-platform-tests to revision ↵Servo WPT Sync2025-03-303-1/+5
| | | | | b'efce5c7cd31b0e1add4f41758504c767b56abeed' (#36222) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Update web-platform-tests to revision ↵Servo WPT Sync2025-03-2811-0/+27
| | | | | b'9d20f3ae600d00673a27a69f69e13d4cd8eca443' (#36195) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Add `Path2D` (#35783)Lukas Lihotzki2025-03-2619-34/+20
| | | Signed-off-by: Lukas Lihotzki <lukas@lihotzki.de>
* Update web-platform-tests to revision ↵Servo WPT Sync2025-03-186-11/+1
| | | | | b'18fda923cafeb4e3e0546ffcfb2302c3b1b11f98' (#36019) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Update web-platform-tests to revision ↵Servo WPT Sync2025-03-0921-25/+23
| | | | | b'c23b0ad587af296087067b48a2f2101233589a8f' (#35869) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Update web-platform-tests to revision ↵Servo WPT Sync2025-03-0265-36/+126
| | | | | b'fc557e215e11221c91de4f283539725ef2f35928' (#35741) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* script: add skeleton implementation of `FontFace` API (#35262)Mukilan Thiyagarajan2025-02-1911-7/+18
| | | | | | | | | | | | | | | | This patch implements the `FontFace` interface, but with some caveats 1. The interface is only exposed on `Window`. Support for Workers will be handled in the future. 2. The concept of `css-connected` `FontFace` is not implemented, so `@font-face` rules in stylesheets will not be represented in the DOM. 3. The constructor only supports using `url()` strings as source and `ArrayBuffer` and `ArrayBufferView` are not supported yet. A skeleton implementation of the `load` method of `FontFaceSet` is also implemented in this patch. The intention is to support some web pages that don't load without this method. Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
* Update web-platform-tests to revision ↵Servo WPT Sync2025-02-168-0/+30
| | | | | b'de61904887c13679551c32e5e3e70b4dc870c98a' (#35480) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Update web-platform-tests to revision ↵Servo WPT Sync2025-02-093-2/+4
| | | | | b'1a5b13545ae58e468ed11e4c21912a3faf3355ea' (#35384) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Lay out the contents of slot elements (#35220)Simon Wülker2025-02-021-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Make Slottable match layout/alignment of NonNull<Node> Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Implement ServoLayoutElement::slotted_nodes Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Bump mozjs Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Layout the contents of slot elements Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Implement ServoLayoutElement::assigned_slot Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * implement ServoLayoutElement::traversal_parent Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Simplify slottable name update Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Don't iterate over children of shadow hosts Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Recompute slot style when contents change Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Change match_slottable to a function instead of a macro Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Fix crown errors Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Update WPT expectations Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Reset a slottable's assigned slot when it's removed from the slot Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Update web-platform-tests to revision ↵Servo WPT Sync2025-02-021-0/+27
| | | | | b'f630424a79c1ae17deaaf27a21efdbca1378af0e' (#35258) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Update web-platform-tests to revision ↵Servo WPT Sync2025-01-2644-1/+121
| | | | | b'e5e7dab5e72edd352b17105acce2b8f443face10' (#35174) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Enable more test directories and preferences (#34952)Josh Matthews2025-01-172-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * Enable WPT tests for several supported/in progress features. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Enable more preferences for all WPT tests. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Update test expectations. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Disable AbortController preference for tests. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Update WPT expectations. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Implement HTMLCanvasElement.transferControlToOffscreen (#34959)webbeef2025-01-133-22/+0
| | | | | | | | This follows the spec by introducing a new "Placeholder" canvas context mode. The underlying offscreen canvas is kept accessible from the DOM element to allow for the drawImage() implementation to work with canvases that have transfered their control. Signed-off-by: webbeef <me@webbeef.org>
* Update web-platform-tests to revision ↵Servo WPT Sync2025-01-125-3/+18
| | | | | b'475127f90be9926867796ff98717b621a358af52' (#34956) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Implement HTMLCanvasElement.toBlob (#34938)webbeef2025-01-102-6/+0
| | | | | | | This refactors some of the code that is shared with toDataURL, and updates the webidl definition to match the current spec (using a default value for the mime type). Signed-off-by: webbeef <me@webbeef.org>
* Enable relative color syntax (#34897)Oriol Brufau2025-01-087-21/+0
| | | | | Upgrades Stylo to https://github.com/servo/stylo/pull/107 Signed-off-by: Oriol Brufau <obrufau@igalia.com>
* Update web-platform-tests to revision ↵Servo WPT Sync2025-01-051-1/+1
| | | | | b'c72ee0c082d350b8b44f7a6bac1f028752b13527' (#34837) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Update web-platform-tests to revision ↵Servo WPT Sync2024-12-221-1/+1
| | | | | b'979291d49c1a8e3d811df117d9e6b5d399a6deb2' (#34733) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* layout: Lay out Shadow DOM elements (#34701)Martin Robinson2024-12-191-1/+1
| | | | | | | | | | | When an element is a shadow root, lay out the shadow root elements instead of the non-shadow children. This fixes some tests and introduces some failures, due to bugs in the Shadow DOM implementation. In general, this is very low impact as the Shadow DOM is still disabled by default. At least this gets elements rendering when the preference is turned on though. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* Update web-platform-tests to revision ↵Servo WPT Sync2024-12-1520-340/+349
| | | | | b'38623a53d6598cb7aab4be8a810102b352a652df' (#34622) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Update web-platform-tests to revision ↵Servo WPT Sync2024-12-083-0/+9
| | | | | b'7b6f075f0ec3c52d92c61fb9f35ce0ec927b17b2' (#34525) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Update web-platform-tests to revision ↵Servo WPT Sync2024-12-051-1/+1
| | | | | b'bf49dde84c5f05613115d6146d109f0ec3900694' (#34483) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Update web-platform-tests to revision ↵Servo WPT Sync2024-11-241-1/+1
| | | | | b'6d461cc41e1a9951e1991a94f651e389b0ca24ba' (#34360) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* script: Throw a `TypeError` when trying to create an `OffscreenCanvas` with ↵chickenleaf2024-11-218-24/+0
| | | | | | | | | | | | | | | | | | | an unknown context type (#34276) * fixing test failures that involves throwing TypeError Signed-off-by: L Ashwin B <lashwinib@gmail.com> * handle all unknown values in a single fallback case Signed-off-by: L Ashwin B <lashwinib@gmail.com> * updating few more test- expectations Signed-off-by: L Ashwin B <lashwinib@gmail.com> --------- Signed-off-by: L Ashwin B <lashwinib@gmail.com>
* Include non-shadowdom children of shadow hosts in style calculation (#34298)Simon Wülker2024-11-201-1/+1
| | | | | | | | | | | | | | | | * Include non-shadowdom children of shadow hosts in style calculation This was previously causing crashes because the layout nodes of those children would never be assigned style data by stylo. Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Update WPT expectations Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Enable Shadow DOM for tests (#34299)Josh Matthews2024-11-202-2/+2
| | | | | | | | | | | | | * Enable shadowdom implementation in all tests. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Update test expectations. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Update web-platform-tests to revision ↵Servo WPT Sync2024-11-173-7/+1
| | | | | b'6cf69a4f431581e9438681abc776029308ee8a8c' (#34265) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Update web-platform-tests to revision ↵Servo WPT Sync2024-11-101-0/+2
| | | | | b'8686b7a6d288d3b2c22b5ddb5a21773619b22b85' (#34202) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Add [EnforceRange] on OffscreenCanvas width/height idl attribute (#34165)Simon Wülker2024-11-0614-43/+0
| | | | | | | | | | | | | | | * Add [EnforceRange] on OffscreenCanvas width/height idl attribute Fixes https://github.com/servo/servo/issues/34161 Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Update WPT expectations Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Enable more DOM preferences for unofficial WPT test runs (#34116)Josh Matthews2024-11-031319-6378/+665
| | | | | | | | | | | | | * Enable some DOM prefs for all WPT tests. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Update expected results. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Update web-platform-tests to revision ↵Servo WPT Sync2024-11-0315-936/+6
| | | | | b'd2f2efe271ae2fa661c52ed2fe8564e21ad4036f' (#34115) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Update web-platform-tests to revision ↵Servo WPT Sync2024-10-2062-1/+1040
| | | | | b'5a9d9349a312e12a950d5f4703cd41609a06f242' (#33923) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Update web-platform-tests to revision ↵Servo WPT Sync2024-10-13120-93/+147
| | | | | b'c7076ab2397dd3dcf0bb93dc304d05be04cd2a47' (#33826) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Sync WPT with upstream (06-10-2024) (#33668)Servo WPT Sync2024-10-0668-56/+98
| | | | | | | | | | | | | | | * Update web-platform-tests to revision b'9448ab31f11e671a8b069e3407b4f6279bea698e' Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org> * Remove intermittent failure. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org> Signed-off-by: Josh Matthews <josh@joshmatthews.net> Co-authored-by: Josh Matthews <josh@joshmatthews.net>
* Sync WPT with upstream (29-09-2024) (#33580)Servo WPT Sync2024-09-2911-0/+31
| | | | | | | | | | | | | | | * Update web-platform-tests to revision b'16d17064d2122cfa83b22f8bab32c96e6514c034' Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org> * Update big5-decode-csbig5.html.ini Signed-off-by: Samson <16504129+sagudev@users.noreply.github.com> --------- Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org> Signed-off-by: Samson <16504129+sagudev@users.noreply.github.com> Co-authored-by: Samson <16504129+sagudev@users.noreply.github.com>
* Update web-platform-tests to revision ↵Servo WPT Sync2024-09-221-1/+1
| | | | | b'8e164c249d2b93a4234a2710a5e2cc5a16fab499' (#33515) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Make Crashtests with test-wait wait (#33344)Taym Haddadi2024-09-101-1/+1
| | | | | | | | | | | | | | | | | * Make Crashtests with test-wait wait Signed-off-by: Taym <haddadi.taym@gmail.com> * use Atom::from instead of the atom macro Signed-off-by: Taym <haddadi.taym@gmail.com> * Update test result expectations Signed-off-by: Taym <haddadi.taym@gmail.com> --------- Signed-off-by: Taym <haddadi.taym@gmail.com>
* Update web-platform-tests to revision ↵Servo WPT Sync2024-09-082-1/+1
| | | | | b'ec9b870fec350e59e9db48ae2858e914a07f38d6' (#33359) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Update web-platform-tests to revision ↵Servo WPT Sync2024-08-2536-22/+53
| | | | | b'd988aeeb33edc4d452899921799b8bed69fff65d' (#33178) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Update web-platform-tests to revision ↵Servo WPT Sync2024-08-112-0/+4
| | | | | b'3b3beee1bf2469013583bafe702f2d4821d76c1f' (#33000) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Update web-platform-tests to revision ↵Servo WPT Sync2024-07-218-20/+7
| | | | | b'5af3e9c2a2aba76ade00f0dbc3486e50a74a4506' (#32824) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* enhance: Implement `CanvasRenderingContext2D.measureText` (#32704)Chocolate Pie2024-07-173-9/+0
| | | | Signed-off-by: Chocolate Pie <106949016+chocolate-pie@users.noreply.github.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Update web-platform-tests to revision ↵Servo WPT Sync2024-07-1421-2/+580
| | | | | b'f3dd9cba239a9655951ee62ec4dafc8fe37df2c5' (#32774) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>