Commit graph

137 commits

Author SHA1 Message Date
Matt Brubeck
3b6dc09e47 Snap rectangles to nearest pixels consistently.
Snapping the top-left and bottom-right corners separately can cause a
rectangle to change size when offset by a subpixel amount.  Instead, this
patch snaps the top-left corner, then rounds the size to a whole pixel amount,
so any rectangle of a given size will always have the same snapped size.

Fixes #7152.
2015-08-11 10:30:32 -07:00
David Zbarsky
92d8058947 Enable CSS Color wpt tests 2015-08-09 23:35:20 -04:00
Patrick Walton
11fdb503df layout: Introduce infrastructure for tracking, backing up, and splitting
at the last known good split point, and use it for `white-space:
nowrap`.

Fixes overflowing tables on Wikipedia.

This infrastructure should form the basis of our fix for inline layout
of fragments that don't themselves constitute valid split points. That
will require some more work, however.
2015-08-08 00:01:31 -07:00
bors-servo
af4e0a246a Auto merge of #7082 - servo:linux-fail, r=metajack
Mark some tests as failing on Linux, not just Ubuntu 14.04.

They also fail for me on Archlinux.

(`absolute-replaced-height-007.htm` is disabled anyway, but let’s change it as well for consistency.)

r? @larsbergstrom

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7082)
<!-- Reviewable:end -->
2015-08-07 17:51:44 -06:00
Simon Sapin
649301fd35 Make the Ahem font available to test-css and test-wpt tests.
Provide a user stylesheet with an `@font-face` rule for it.

Fix #6195.

Many previously-failing tests now pass, and a few previously-passing now fail.

Among the latter, `font-family-013.htm` and `fonts-013.htm` are testing
that the Ahem font is not used for characters it doesn’t have a glyph for.
They were passing because Ahem was not available at all,
and now fail because we don’t implement font fallback correctly.

The others also use Ahem, but I don’t understand yet what’s going on exactly.
2015-08-07 21:38:55 +02:00
Simon Sapin
d58ea4f15f Mark some tests as failing on Linux, not just Ubuntu 14.04.
They also fail for me on Archlinux.
2015-08-07 20:02:29 +02:00
Simon Sapin
90d7d11a23 Upgrade cssparser
Pick up the fix for https://github.com/servo/rust-cssparser/issues/76
2015-08-07 18:34:16 +02:00
Patrick Walton
ed4172b2c6 layout: Make sure anonymous table flows are statically positioned.
The failing `float-applies-to-*` CSS 2.1 tests never really should have
been passing in the first place; they depend on floats inside
fixed-layout tables working properly, which they don't.

Closes #6078.
Closes #6709.
Closes #6858.
2015-08-06 18:49:07 -07:00
Matt Brubeck
73ce2325a2 Update to unicode-bidi 0.2.1
Fixes #6978.
2015-08-06 06:52:17 -07:00
bors-servo
b9f00190e1 Auto merge of #6979 - mbrubeck:counter, r=pcwalton
Fix crash caused by negative numbers in list counters.

Fixes #6818.  The test still fails because of #6978.

r? @pcwalton

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6979)
<!-- Reviewable:end -->
2015-08-04 18:37:10 -06:00
Matt Brubeck
35ba731123 Fix handling of negative numbers in list counters.
Fixes #6818.
2015-08-04 16:18:09 -07:00
Patrick Walton
be5b6ff8c2 Update CSS tests expected data 2015-08-04 09:54:31 -07:00
bors-servo
d66c59a152 Auto merge of #6784 - glennw:offset-ext, r=pcwalton
Implement offsetParent/Top/Left/Width/Height.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6784)
<!-- Reviewable:end -->
2015-08-03 18:39:43 -06:00
Glenn Watson
39972a174e Fix panic when called on root node, and update test expectations.
The three tests that are marked as failures are because they use offsetWidth as a dummy to force a layout flush. Now that these exist, they expose an unrelated bug with reflow.
2015-08-04 08:59:27 +10:00
Matt Brubeck
f8e92b2b01 Implement the unicode-bidi property 2015-08-03 14:12:33 -07:00
Glenn Watson
b9fea3deb3 Fix percentage height calculation, absolute containing block height calculations.
It's not possible to correctly determine during the css cascade whether the container height
is explicitly specified. Additionally, the spec https://drafts.csswg.org/css2/visudet.html#the-height-property
says this should affect the *used* height, rather than the computed height.

This significantly improves the layout in #6643.
2015-08-03 10:47:56 +10:00
Jack Moffitt
154b5fd6da Update to latest rust-cssparser.
This also updates wpt tests for new CSS Level 4 color parsing, and
disables the relevant CSS tests until they can be updated (tracked
by #6856).
2015-07-30 16:41:14 -06:00
bors-servo
acbca7b3aa Auto merge of #6798 - dzbarsky:gCS, r=pcwalton
Implement getComputedStyle

It's not quite done but can probably be reviewed anyway.
I still need to finish up a few of the ToCss impls, I just got lazy and wanted to make sure things worked.

The computation of the used values is definitely not right, I'm going to investigate that.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6798)
<!-- Reviewable:end -->
2015-07-29 18:48:45 -06:00
David Zbarsky
e484d6b5e3 Implement getComputedStyle 2015-07-29 20:17:50 -04:00
James Graham
1b7627264f Update CSS tests expected data to revision 2baa72daab8bf37e3e910a9fd311a1eaa5b0f4a8 2015-07-27 21:58:43 +01:00
Matt Brubeck
dfac8ce4a1 Basic support for bidirectional text 2015-07-23 20:05:55 -07:00
Till Schneidereit
b692187ca2 Implement DOMPoint and DOMPointReadOnly
Passes some but not all WPT tests. One failure is caused by an issue in codegen for the `DOMPointInit` dictionary, the others by outdated tests: Gecko implements an old version of the spec that overloaded the `DOMPoint` constructor to optionally take an object as the first argument, and made `DOMPointReadOnly` non-constructible.
2015-07-23 19:09:36 +02:00
Ms2ger
365937160d Update the test-css expectations for the OSX update. 2015-07-14 11:08:36 +02:00
Patrick Walton
54b9aa2cb4 Update WPT expectations 2015-07-07 15:01:18 -07:00
David Winslow
b665c7b9df Correct expectations for newly passing tests 2015-07-07 13:23:24 -04:00
Glenn Watson
4665db8eea Disable two css tests that are consistently failing on mac as well as linux. 2015-06-19 10:56:44 +10:00
Glenn Watson
229dfbd117 Fix computed value of outline width when outline style is not set. 2015-06-18 12:13:14 +10:00
James Graham
2439ce6ca7 Disable unstable CSS test 2015-06-12 16:03:24 +01:00
James Graham
8bd5ccb82b Update CSS tests expected data to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab 2015-06-11 17:57:53 +01:00
James Graham
9af3ceefd9 Disable unstable background-root-103 test 2015-06-03 10:00:50 +01:00
James Graham
f2e3bb21d0 Disable more unstable CSS tests 2015-06-02 17:56:10 +01:00
James Graham
a5f1810d42 Update CSS tests expected data to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab 2015-06-02 15:01:44 +01:00
James Graham
60205088d1 Disable some unstable tests 2015-06-02 00:13:31 +01:00
James Graham
d3c26dfe5c Update CSS tests expected data to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab 2015-06-02 00:11:04 +01:00
James Graham
93da3cc179 Update CSS tests expected data to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab
Using data from run on buildbot
2015-05-28 22:52:44 +01:00
James Graham
1f25a2972a Update CSS tests expected data to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab 2015-05-27 22:42:17 +01:00
James Graham
d27cda44ce Update CSS tests expected data to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab 2015-04-03 23:29:21 +01:00