Commit graph

37 commits

Author SHA1 Message Date
Tom Schuster
d54a45a2b1 Implement most of the important WindowProxy traps 2015-01-12 17:41:48 +01:00
Patrick Walton
bf540d590a layout: Explicitly thread border box dimensions and relative offsets
through display list building.

The old `flow_origin` concept was ill-defined (sometimes the border box
plus the flow origin, sometimes including horizontal margins and
sometimes not, sometimes including relative position and sometimes not),
leading to brittleness and test failures. This commit reworks the logic
to always pass border box origins in during display list building.
2015-01-04 17:43:05 -08:00
Jim Hoskins
c10049327a Implement Document.defaultView - fixes #4518 2015-01-03 12:08:58 -05:00
Shing Lyu
6df9b7fd3a Bug #1820, add the optional "type" parameter to Blob 2015-01-01 16:23:21 +08:00
Adam Sunderland
674fe910c1 Add GetPropertyPriority to CSSStyleDeclaration
Tweak getPropertyPriority to match recommendations

Adding Tests for Style Priority

Use else if

Adding Content Test for GetPropertyPriority

Revert "Adding Tests for Style Priority"

This reverts commit 8666a37f833b06c3e43f27acd8a9678e94425e55.
2014-12-23 11:41:33 -06:00
Josh Matthews
2f5786d6ca Fix test failures. 2014-12-18 13:51:22 -05:00
Josh Matthews
b4cade0612 Fix syntax error in test_interfaces.html and make it pass. 2014-12-18 12:54:02 -05:00
Josh Matthews
3cfe8ab53e Address review comments. 2014-12-18 12:54:02 -05:00
Josh Matthews
acf86a65e4 Move test_htmlelement_style.html out of the automatic tests because they don't all pass. 2014-12-18 12:54:02 -05:00
Josh Matthews
5ca61c00b9 Add a ton of properties and improve a bunch of serialization. 2014-12-18 12:54:02 -05:00
Patrick Walton
a200b139b6 script: Add some workarounds for image cache task races 2014-12-15 14:16:20 -08:00
Shing Lyu
f2885b8fc7 Issue #1820 - Improve the Blob implementation 2014-12-09 22:52:19 +08:00
ProgramFOX
2bd1269b02 Update content tests for Document#characterSet 2014-12-05 21:51:59 +01:00
Ronak Nisher
cbed366bea added ErrorEvent WebIDL and errorevent.rs 2014-12-04 21:22:15 -08:00
Hinali Marfatia
b1d6041420 Implement a basic WebSocket interface. 2014-11-25 15:43:22 +01:00
bors-servo
561fab57d6 auto merge of #3998 : Hoverbear/servo/fix_table_caption, r=jdm
Fixed #3997.
2014-11-15 13:24:28 -07:00
Andrew Hobden
d4f4018e88 Add test. 2014-11-15 09:52:17 -08:00
Josh Matthews
62a74cf3f0 Disable the iframe content test due to #3986. 2014-11-14 16:25:36 -05:00
Tomasz Kołodziejski
fb8a45c58d Iframe resource file moved to resources dir so it's not picked up by test harness (and does not fail). 2014-11-13 22:45:55 -08:00
Tomasz Kołodziejski
af30484f2a Add contentDocument support for HTMLIFrameElement. Fixes #3808. 2014-11-13 22:45:46 -08:00
Keegan McAllister
642a3592c7 Fix interfaces test 2014-11-13 12:53:54 -05:00
bors-servo
b94f20c7c1 auto merge of #3934 : guillaumebort/servo/fix/84, r=jdm
Actually `<img>` elements in `<noscript>` are not prefetched anymore.

Probably because html5ever already parses the `<noscript>` content as raw
text data if `scripting_enabled` is activated.

See https://github.com/servo/html5ever/blob/servo/src/tree_builder/rules.rs#L126

Also, added a test to the images cache.
2014-11-11 14:30:39 -07:00
Ms2ger
0056ba95e1 Remove tests/content/test_document_compatMode.html.
It is already covered by:

  html/dom/documents/resource-metadata-management/document-compatmode-03.html
  dom/nodes/Document-constructor.html
  dom/nodes/DOMImplementation-createHTMLDocument.html
2014-11-09 23:40:24 +01:00
Ms2ger
b4151550cb Remove tests/content/test_document_adoptNode.html.
It is already covered by:

  dom/nodes/Document-adoptNode.html
2014-11-09 23:40:22 +01:00
Ms2ger
be4c83432b Call waitForExplicitFinish in test_img_width_height.html.
This fixes an intermittent failure introduced in
<https://github.com/servo/servo/pull/3929>.
2014-11-09 15:19:40 +01:00
Guillaume Bort
8e2abb6ffc Close #84
Actually <img> elements in <noscript> are not prefetched anymore.

Probably because html5ever already parses the <noscript> content as raw
text data if `scripting_enabled` is activated.

See
https://github.com/servo/html5ever/blob/servo/src/tree_builder/rules.rs#
L126

Also, added a test to the images cache.
2014-11-07 13:43:19 +01:00
Josh Matthews
711f4d5af9 Make content tests synchronous by default. Fixes #884. 2014-11-06 21:48:43 -08:00
Bruno de Oliveira Abinader
5c76502b91 Implement DOMStringMap 2014-11-06 11:31:58 -08:00
nkdalmia
bb76b0f3f2 Intial Commit for Storage.webidl, along with impl stub 2014-11-06 10:55:27 -05:00
Matt Brubeck
b2c211ef86 Test for sync script loading 2014-10-29 14:31:47 -07:00
Matt Brubeck
fe123ad07c Switch to synchronous script loading
This removes the old code for asyncronously loading scripts during HTML
parsing and then executing them afterward.

Fixes #3356.
2014-10-29 14:31:47 -07:00
Mukilan Thiyagarajan
9653965380 Add content test for [LenientThis] attribute Document.onreadystatechange 2014-10-25 17:55:08 +05:30
Josh Matthews
539c21f380 Implement Document.readyState. Prevent iframes from notifying the compositor after the initial parse. Fixes #1720. Fixes #3738. 2014-10-23 10:55:59 -04:00
Keegan McAllister
3fbb25cc43 Update test expectations
The hubbub bindings set document.characterSet but we don't use it for anything.
html5ever doesn't parse charsets from <meta> tags yet, and I'd rather add that
as part of adding actual support for other encodings (which Servo never had
with hubbub).

Switching to html5ever also changes attribute parsing slightly (bringing it in
line with the current spec) and this breaks some of the <img srcset> tests.  We
don't support this feature at all.

Some other things change due to bugs in hubbub not present in html5ever.
2014-10-16 13:06:04 -07:00
Manish Goregaokar
1484acb7af Address review comments 2014-10-08 14:37:22 +05:30
Bruno de Oliveira Abinader
4e6785f513 CSS selector :enabled no longer matches Anchor, Area & Link elements
HTML spec has been modified [1] to disable support for :enabled CSS
selector on Anchor, Area & Link elements, after discussion on W3C
Bugzilla [2].

[1] https://html5.org/r/8818
[2] https://www.w3.org/Bugs/Public/show_bug.cgi?id=26622
2014-09-29 13:06:03 -04:00
Jack Moffitt
c6ab60dbfc Cargoify servo 2014-09-08 20:21:42 -06:00