Gae24
c9e3d3e25e
Implement DataTransfer
and related interfaces ( #34205 )
...
* add datatransfer interfaces
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
* implement DataTransfer interface
implemented Constructor, setter and getter for drop_effect and effect_allowed, Items and SetDragImage
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
* implement DataTransferItem interface
Implemented Kind, Type, GetAsString, GetAsFile.
Marked DataTransfer as weakReferenceable to access its field
inside DataTransferItemList and DataTransferItem.
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
* implement DataTransferItemList interface
implemented Lenght, Getter, Add, Remove, Clear
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
* added DataTransfer's old interface
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
* DataTransfer: implemented GetData, SetData, SetData
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
* set Weakref to DataTransfer in DataTransferItemList and DataTransferItem
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
* DataTransfer: implemented Types and Files
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
* cleanup get_data, set_data, clear_data
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
* fix clippy warning
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
* add drag data store
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
* fix DataTransfer's Types() behaviour
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
* DataTransferItem: use the underlying drag data store
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
* fix DataTransferItemList's getter and remove
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
* fix clippy warnings
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
* update test expectations
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
---------
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
2024-11-25 10:49:04 +00:00
Servo WPT Sync
468f9cf014
Update web-platform-tests to revision b'6d461cc41e1a9951e1991a94f651e389b0ca24ba' ( #34360 )
...
Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
2024-11-24 01:40:36 +00:00
Simon Wülker
1198b26ec9
Implement ShadowRoot.innerHtml
attribute ( #34335 )
...
* Implement DocumentFragment::fragment_serialization_algorithm
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Implement ShadowRoot innerHtml attribute
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Update WPT expectations
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* cargo-clippy
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Reuse existing serialization code and move helpers into Node
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Fix typo
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
---------
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
2024-11-22 17:07:01 +00:00
Servo WPT Sync
dca33f681a
Update web-platform-tests to revision b'6cf69a4f431581e9438681abc776029308ee8a8c' ( #34265 )
...
Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
2024-11-17 01:49:15 +00:00
Servo WPT Sync
4da378a987
Update web-platform-tests to revision b'8686b7a6d288d3b2c22b5ddb5a21773619b22b85' ( #34202 )
...
Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
2024-11-10 01:42:44 +00:00
Simon Wülker
e5cc7ad235
Implement ImageBitmap.close
( #34124 )
...
* Implement ImageBitmap.close
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>
2024-11-04 01:09:43 +00:00
Josh Matthews
a2af619009
Enable more DOM preferences for unofficial WPT test runs ( #34116 )
...
* 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>
2024-11-03 15:36:13 +00:00
Ben
dbd1666b17
Layout: Implement innerText/outerText ( #33312 )
...
* Implement outerText on HtmlElement
Signed-off-by: Shane Handley <shanehandley@fastmail.com>
* Fixed some innerText/outerText bugs
Signed-off-by: Benjamin Vincent Schulenburg <bennyschulenburg@gmx.de>
* Unified innerText/outerText handling outside of Layout
Before these 2 were treated separately and only within
Layout would they end up calling the same method, now
they are already unified within HTMLElement
Signed-off-by: Benjamin Vincent Schulenburg <bennyschulenburg@gmx.de>
* Address a few nits
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* Added innerText support for `inline-flex`
Signed-off-by: Benjamin Vincent Schulenburg <bennyschulenburg@gmx.de>
---------
Signed-off-by: Shane Handley <shanehandley@fastmail.com>
Signed-off-by: Benjamin Vincent Schulenburg <bennyschulenburg@gmx.de>
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Shane Handley <shanehandley@fastmail.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2024-09-24 09:45:33 +00:00
Simon Wülker
fc5f8e9237
Implement HTMLQuoteElement "cite" attribute ( #33307 )
...
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
2024-09-04 11:29:59 +00:00
Simon Wülker
e43e477842
Implement compact/type attributes for HTMLUListElement ( #33303 )
...
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
2024-09-04 06:17:27 +00:00
Servo WPT Sync
3453d9fdad
Update web-platform-tests to revision b'5d8ec746ed021738e7ee0cee92ad1a1814ba00fe' ( #33274 )
...
Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
2024-09-01 01:40:45 +00:00
Taym Haddadi
08eb4faf4d
Initial structuredClone implementation ( #32960 )
...
* Initial structuredClone implementation
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Rename PostMessageOptions to StructuredSerializeOptions
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Update wpt test 2020 layout result
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Remove dublicated StructuredClone implementation
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Remove comment from StructuredSerializeOptions webidl
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>
---------
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>
2024-08-08 10:12:45 +00:00
Samson
68f4b359c5
Add exception to rejection logic in generic_call
( #32950 )
...
* exception in JS Promise
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* EXCEPTION_TO_REJECTION on generic_call
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* PromiseRejectionEvent should handle promise as object
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* expectations
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
---------
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2024-08-06 17:12:31 +00:00
Chocolate Pie
92866ab911
enhance: Add support for unsafe-eval
and wasm-unsafe-eval
( #32893 )
...
Signed-off-by: Chocolate Pie <106949016+chocolate-pie@users.noreply.github.com>
2024-08-01 17:26:44 +00:00
shanehandley
ed8def2896
Add the type IDL attribute to htmlfieldsetelement ( #32869 )
...
* Add the type IDL attribute to htmlfieldsetelement
Signed-off-by: Shane Handley <shanehandley@fastmail.com>
* Fix missing idlharness test expectations
Signed-off-by: Shane Handley <shanehandley@fastmail.com>
---------
Signed-off-by: Shane Handley <shanehandley@fastmail.com>
2024-07-28 15:01:01 +00:00
Luke Warlow
8f377a0cb1
Partially implement dialog.show() ( #32681 )
...
Signed-off-by: Luke Warlow <lwarlow@igalia.com>
2024-07-26 16:03:25 +00:00
Ngo Iok Ui (Wu Yu Wei)
40bac8c3df
script: document.visibilityState
and document.hidden
( #32635 )
...
* Squashed commit of the following:
commit 5e0ea9996cb0d8137c3e1cd04487a1065b61289d
Author: Wu Yu Wei <yuweiwu@pm.me>
Date: Thu Jul 11 13:37:51 2024 +0900
Move lint to new_inherited
Signed-off-by: Wu Yu Wei <yuweiwu@pm.me>
commit a8cbfb1eef2650d153ef41c232d9e80e1118fc37
Merge: b819968f3e 7a33f8f008
Author: Wu Yu Wei <yuweiwu@pm.me>
Date: Thu Jul 11 13:32:18 2024 +0900
Merge branch 'main' into visibility
commit b819968f3eaa361c8a2cf3af679943ae2065ab32
Merge: eda2ec4c22 1c6b74e1f1
Author: Wu Wayne <yuweiwu@pm.me>
Date: Tue Jul 9 14:26:43 2024 +0900
Merge branch 'main' into visibility
commit eda2ec4c225c63236d6851ea525455cad8874ce5
Author: Wu Wayne <yuweiwu@pm.me>
Date: Thu Jul 4 14:25:05 2024 +0900
Include page-visibility tests to wpt
commit 9da7b4ee39b141e59e4a21a64445c4b08499463f
Author: Wu Yu Wei <yuweiwu@pm.me>
Date: Thu Jul 4 12:50:40 2024 +0900
Add TODO comment for future update
commit 11f55fea3ead0c8fa07f16557a63cc6a77c15c3f
Author: Wu Yu Wei <yuweiwu@pm.me>
Date: Wed Jul 3 11:01:51 2024 +0900
Add spaces between steps
commit 408c3e51f25867e85f894cd77a6355bc32f2aa00
Author: Wu Wayne <yuweiwu@pm.me>
Date: Tue Jul 2 18:33:53 2024 +0900
Update MANIFEST.json
commit 679fe4ffdd28554b11b4018395fac22a08ccbc34
Author: Wu Wayne <yuweiwu@pm.me>
Date: Tue Jul 2 18:27:02 2024 +0900
Add VisibilityStateEntry to mozilla/interfaces.html
commit 4a456a2b4a473fa795274edf56ecf660616f90eb
Author: Wu Wayne <yuweiwu@pm.me>
Date: Tue Jul 2 14:28:11 2024 +0900
Update meta results
commit cd191447ff61de392526e00c13f765c2df7a269e
Merge: 7ff480a698 ad01342f00
Author: Ngo Iok Ui (Wu Yu Wei) <yuweiwu@pm.me>
Date: Tue Jul 2 13:47:49 2024 +0900
Merge branch 'main' into visibility
commit 7ff480a698413ac5526edfb1b8731373bb9d04ae
Author: Wu Yu Wei <yuweiwu@pm.me>
Date: Tue Jul 2 13:12:44 2024 +0900
Update description text of update_visibility_state
commit 0e496b7bce4fd5476a1919737b00e8f0c9e2fdc8
Author: Wu Yu Wei <yuweiwu@pm.me>
Date: Tue Jul 2 12:59:40 2024 +0900
Add specification link to VisibilityStateEntry methods
commit 3e4a061450621bd17f19ff81099dd4daaeaea478
Author: Wu Yu Wei <yuweiwu@pm.me>
Date: Tue Jul 2 12:31:53 2024 +0900
Add descriptive text to each step
commit 8bbdfcae97db5002b09e5f5ecec6ae80d080dc95
Author: Wu Wayne <yuweiwu@pm.me>
Date: Fri Jun 28 19:15:34 2024 +0900
mach fmt
commit dc1c7a4aec6aba56af7afcfee6feadbee242a643
Author: Wu Wayne <yuweiwu@pm.me>
Date: Fri Jun 28 19:01:00 2024 +0900
Add update_visibility_state
commit 6aa18143319044dc084a9585ab064cd853bccc21
Author: Wu Wayne <yuweiwu@pm.me>
Date: Fri Jun 28 16:06:25 2024 +0900
Add VisibilityStateEntry.webidl
commit 638ae3cd563004334d35cc3fbdc1f918d29833d0
Author: Wu Yu Wei <yuweiwu@pm.me>
Date: Fri Jun 28 13:39:29 2024 +0900
Add visibilityState and hidden in Document.webidl
Signed-off-by: Wu Yu Wei <yuweiwu@pm.me>
* Move creation into reflect call
Signed-off-by: Wu Yu Wei <yuweiwu@pm.me>
---------
Signed-off-by: Wu Yu Wei <yuweiwu@pm.me>
2024-07-12 08:32:25 +00:00
Keith Cirkel
db4cba4d6d
Add customElements.getName ( #32715 )
...
* Add customElements.getName
* rebaseline
2024-07-07 15:22:57 +00:00
Servo WPT Sync
816359583c
Update web-platform-tests to revision b'4e3b5de2eb8218cf18a1674618994efeb96e2cc0' ( #32717 )
...
Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
2024-07-07 07:23:54 +00:00
Taym Haddadi
1d048f4f6a
Implement HTMLImageElement decode ( #31269 )
...
* Implement HTMLImageElement decode
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Fix Decode doc link
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Temp
* Decode HTML Image
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Fix doc link
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Move image decode to process_image_response_for_environment_change
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Update some wpt test result
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Handle multiple image decode promises
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Remove unnecessary promise calls
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Update more wpt test result
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Undo body-size-cross-origin.https.html.ini changes
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Reject decode when src and srcset are missing
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Revert "Reject decode when src and srcset are missing"
This reverts commit 1b57ab978f9fc24facafc8af97ee8851d5142533.
* Drain promises vec and run update_the_image_data when element is created
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* resolve decode promise in abort_request when request is CompletelyAvailable
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Update wpt test
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Move storing promise in decode task
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Remove the resolve logic from decode task
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Revert "Remove the resolve logic from decode task"
This reverts commit eee6096d50
.
* reject or reject current promise before storing it
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Add comment to explain why resolve promise when state is CompletelyAvailable
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
---------
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
2024-06-13 10:15:49 +00:00
shanehandley
2904c32e05
Implement attributes for the <meter>
element ( #32230 )
...
* Implement attributes for the meter element
* Remove checks for min < max before clamping
2024-05-11 05:06:44 +00:00
Samson
eb7484de5e
Update web-platform-tests to revision b'86de4ffa4e439098e05f05de7d8cae1c24ff84fb' ( #32200 )
...
Co-authored-by: Servo WPT Sync <josh+wptsync@joshmatthews.net>
2024-05-01 15:47:11 +00:00
Nolan Lawson
3014e201ab
script: implement autofocus IDL reflection ( #32170 )
...
* script: implement autofocus IDL reflection
* test: update wpt results files
2024-04-29 15:05:15 +00:00
cathiechen
4e4a4c0a28
Implement form-associated custom elements and their ElementInternals ( #31980 )
...
* FACEs work, setFormValue test is awful so now has _mozilla backup
* 1. Impl Validatable in ElementInternals instead of HTMLElement. 2. Reuse the code in Validatable trait. 3. The form associated custom element is not a customized built-in element.
* add some comments
* support readonly attribute and complete barred from constraint validation
* Addressed the code review comments
* Updated the legacy-layout results
* Fixed the WPT failures in ElementInternals-validation.html
* Addressed the code review comments
* Review suggestions
* Fixed silly mistakes and update the test result outside elementinternals
* update the test results
---------
Co-authored-by: Patrick Shaughnessy <pshaughn@comcast.net>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2024-04-11 13:17:11 +00:00
shanehandley
8c1a72f130
Update webidl and implement setter for the files property of a file input ( #31934 )
...
The files attribute was previously readonly, but was later updated to allow mutation via input.files = ...
see https://github.com/whatwg/html/issues/2861
2024-04-01 09:12:07 +00:00
Servo WPT Sync
8c8d68e415
Update web-platform-tests to revision b'16f18d8135a80e89f2e910ca7548999fa2f7937e' ( #31951 )
2024-03-31 05:15:08 +00:00
Bastiaan van der Plaat
97144ddf71
script: Add pre element obsolete width attribute support ( #31792 )
2024-03-25 11:36:48 +00:00
Servo WPT Sync
52c2b1e3a8
Sync WPT with upstream (17-03-2024) ( #31715 )
...
* Update raw lags path for WPT import
I forgot to do this in #31616
* Update web-platform-tests to revision b'298d1599dbf6255aea63506daaa1702ff0c4fdc5'
---------
Co-authored-by: Samson <16504129+sagudev@users.noreply.github.com>
2024-03-17 10:51:07 +00:00
Oriol Brufau
bc4f1c217d
Implement HTMLStyleElement.disabled attribute ( #31682 )
...
https://html.spec.whatwg.org/multipage/#dom-style-disabled
2024-03-14 23:48:29 +00:00
Servo WPT Sync
60e4c1adb4
Update web-platform-tests to revision b'd9a5cc25fc5f520bde022cee67e9e6a6f0b588f9' ( #31599 )
2024-03-10 05:11:24 +00:00
Servo WPT Sync
845f503c34
Sync WPT with upstream (03-03-2024) ( #31482 )
...
* Update web-platform-tests to revision b'1b88c8bd56a924f9865daa15834d444c55dd7327'
* Update expectations
---------
Co-authored-by: sagudev <16504129+sagudev@users.noreply.github.com>
2024-03-03 09:03:40 +00:00
Smitty
0beec63c86
script: Implement <meta http-equiv="refresh">
( #31468 )
...
* script: Implement <meta http-equiv="refresh">
* Address review comments
2024-03-01 07:42:18 +00:00
Martin Robinson
02ae1f448e
layout: Add support for table rows, columns, rowgroups and colgroups ( #31341 )
...
This adds support for table rows, columns, rowgroups and colgroups.
There are few additions here:
1. The createion of fragments, which allows script queries and hit
testing to work properly. These fragments are empty as all cells are
still direct descendants of the table fragment.
2. Properly handling size information from tracks and track groups as
well as frustrating rules about reordering rowgroups.
3. Painting a background seemlessly across track groups and groups. This
is a thing that isn't done in legacy layout (nor WebKit)!
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
2024-02-20 13:22:02 +00:00
Smitty
20404a72c0
script: implement navigator.hardwareConcurrency ( #31268 )
...
Signed-off-by: syvb <me@iter.ca>
2024-02-07 18:41:58 +00:00
Smitty
b2ae3928ab
canvas2d: Implement .reset()
( #31258 )
...
* Implement Canvas2D reset
* Update WPT tests
* Apply suggestions from code review
---------
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2024-02-05 08:53:00 +00:00
Servo WPT Sync
23a4a750be
Update web-platform-tests to revision b'a10b8c0164b4c4521040898ee9394738aca488b0' ( #31144 )
2024-01-21 06:53:06 +00:00
Servo WPT Sync
e7d2d23e1e
Update web-platform-tests to revision b'5049a31d2a7eebd7bca08317e56664021a8bd36c' ( #31085 )
2024-01-14 04:22:04 +00:00
Servo WPT Sync
914fe64fc7
Sync WPT with upstream (03-12-2023) ( #30814 )
...
* Update web-platform-tests to revision b'dd47ca67f55ac9df45235b2335200fb885dd1357'
* Update test expectations
---------
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2023-12-06 17:45:20 +00:00
Servo WPT Sync
334c67a3cc
Update web-platform-tests to revision b'7aaad11d87d7a02515081e55609d31ab6ff173fc' ( #30753 )
2023-11-19 09:40:18 +00:00
Servo WPT Sync
c06ec90151
Sync WPT with upstream (04-10-2023) ( #30493 )
...
* Update web-platform-tests to revision b'dfda99176a5d552fb1129fa353b7e4c69f6ed92c'
* fix linter errors after WPT import
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
* Update expectations
---------
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
Co-authored-by: sagudev <16504129+sagudev@users.noreply.github.com>
2023-10-06 00:51:48 +00:00
Oriol Brufau
963104e5fc
Run same tests for layout-2020 and layout-2013 ( #30092 )
...
Most tests were only being run for layout-2013, not for layout-2020.
This wasn't great since layout-2020 is now the default.
So this patch unifies the lists of included tests for both layouts.
For layout-2013 this implies adding css/css-content/, css/css-logical/
and css/css-masking/clip/.
For layout-2020 this implies adding several additional css tests, and
also tests like dom/, js/, html/, etc.
2023-08-15 00:28:32 +00:00
Martin Robinson
f4578afdfe
Rename metadata directories
...
This renames:
- `tests/wpt/metadata` → `tests/wpt/meta-legacy-layout`
- `tests/wpt/metadata-layout-2020` → `tests/wpt/meta`
- `tests/wpt/mozilla/meta` → `tests/wpt/mozilla/meta-legacy-layout`
- `tests/wpt/mozilla/meta-layout-2020` → `tests/wpt/mozilla/meta`
2023-06-22 21:15:41 +02:00