Commit graph

122 commits

Author SHA1 Message Date
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