Add support for position:sticky

This leverages the position:sticky support in WebRender to bring basic
support for position:sticky in Servo. There are still some issues with
nested sticky flows as well as a few other corner cases. Tests are
imported from WPT and can be removed once we update to the latest
version.
This commit is contained in:
Martin Robinson 2017-08-24 09:37:49 +02:00
parent 4725a05bfb
commit bc455c8a1f
84 changed files with 5729 additions and 50 deletions

View file

@ -0,0 +1,17 @@
[position-sticky-get-bounding-client-rect.html]
type: testharness
[Untitled]
expected: FAIL
[sticky positioned element should be observable by getBoundingClientRect.]
bug: https://github.com/servo/servo/issues/18378
expected: FAIL
[getBoundingClientRect should be correct for sticky after script insertion]
bug: https://github.com/servo/servo/issues/18378
expected: FAIL
[getBoundingClientRect should be correct for sticky after script-caused layout]
bug: https://github.com/servo/servo/issues/18378
expected: FAIL

View file

@ -0,0 +1,7 @@
[position-sticky-grid.html]
type: reftest
expected: FAIL
bug: https://github.com/servo/servo/issues/18379
[Untitled]
expected: FAIL

View file

@ -0,0 +1,7 @@
[position-sticky-inline.html]
type: reftest
expected: FAIL
bug: https://github.com/servo/servo/issues/18379
[Untitled]
expected: FAIL

View file

@ -0,0 +1,8 @@
[position-sticky-nested-bottom.html]
type: reftest
expected: FAIL
bug: https://github.com/servo/servo/issues/18377
[Untitled]
expected: FAIL

View file

@ -0,0 +1,7 @@
[position-sticky-nested-inline.html]
type: reftest
expected: FAIL
bug: https://github.com/servo/servo/issues/18377
[Untitled]
expected: FAIL

View file

@ -0,0 +1,7 @@
[position-sticky-nested-left.html]
type: reftest
expected: FAIL
bug: https://github.com/servo/servo/issues/18377
[Untitled]
expected: FAIL

View file

@ -0,0 +1,7 @@
[position-sticky-nested-right.html]
type: reftest
expected: FAIL
bug: https://github.com/servo/servo/issues/18377
[Untitled]
expected: FAIL

View file

@ -0,0 +1,7 @@
[position-sticky-nested-table.html]
type: reftest
expected: FAIL
bug: https://github.com/servo/servo/issues/18377
[Untitled]
expected: FAIL

View file

@ -0,0 +1,7 @@
[position-sticky-nested-top.html]
type: reftest
expected: FAIL
bug: https://github.com/servo/servo/issues/18377
[Untitled]
expected: FAIL

View file

@ -0,0 +1,10 @@
[position-sticky-offset-top-left.html]
type: testharness
[offsetTop/offsetLeft should be correct for sticky after script insertion]
bug: https://github.com/servo/servo/issues/18378
expected: FAIL
[offsetTop/offsetLeft should be correct for sticky after script-caused layout]
bug: https://github.com/servo/servo/issues/18378
expected: FAIL

View file

@ -0,0 +1,7 @@
[position-sticky-overflow-padding.html]
type: reftest
expected: FAIL
bug: https://github.com/servo/servo/issues/18379
[Untitled]
expected: FAIL

View file

@ -0,0 +1,6 @@
[position-sticky-parsing.html]
type: testharness
[The value of sticky for the position property should be parsed correctly]
bug: https://github.com/servo/servo/issues/18378
expected: FAIL

View file

@ -0,0 +1,7 @@
[position-sticky-writing-modes.html]
type: reftest
expected: FAIL
bug: https://github.com/servo/servo/issues/18379
[Untitled]
expected: FAIL