Commit Graph

30 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
3b78a74975 Bug 1360508: Test expectation updates. r=emilio
MozReview-Commit-ID: KN99kqljqYj
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-28 20:19:15 +02:00
Cameron McCormack
66c9f02f65 Bug 1341102 - stylo test expectation adjustments. r=me 2017-04-28 18:18:15 +08:00
Shing Lyu
688a98f536 Bug 1351548 - Remove reftest-stylo.lists. r=bholley
MozReview-Commit-ID: 8LoQ9xNnDnj
2017-04-28 11:15:58 +08:00
Shing Lyu
e6b1b20ff7 Bug 1351548 - Add stylo-vs-gecko expectations to reftest.lists. r=bholley
MozReview-Commit-ID: GOUGBsd05cn
2017-04-28 11:15:50 +08:00
Sebastian Hengst
5f2945b3ec Backed out changeset 1f9d0f8e65b9 (bug 1351548) 2017-04-26 13:13:05 +02:00
Sebastian Hengst
7c67d76792 Backed out changeset 4d8dfee7ebf3 (bug 1351548) 2017-04-26 13:12:59 +02:00
Sebastian Hengst
ce63b37abb Backed out changeset aebb0ceeb20a (bug 1351548) 2017-04-26 13:12:53 +02:00
Shing Lyu
66fcd4c2bf Bug 1351548 - Remove reftest-stylo.lists. r=bholley
MozReview-Commit-ID: Gn0fbS4PZ7i
2017-04-26 18:21:52 +08:00
Shing Lyu
1ae324bcba Bug 1351548 - Switch from reftest-stylo.list to reftest.list on linux64-stylo. r=bholley
MozReview-Commit-ID: 3GHNhi3gdg9
2017-04-26 18:21:48 +08:00
Shing Lyu
a6e0a62b7d Bug 1351548 - Add stylo-vs-gecko expectations to reftest.lists. r=bholley
MozReview-Commit-ID: GOUGBsd05cn
2017-04-26 18:21:43 +08:00
Cameron McCormack
7e3de0a555 Bug 1356510 - stylo: Update test expectations. r=manishearth
MozReview-Commit-ID: H9cunzhaNV
2017-04-16 22:11:18 +10:00
Lee Salzman
765cffcb7b Bug 1350783 - mark failing Stylo reftests. r=me 2017-03-29 16:46:09 -04:00
L. David Baron
44ddf0ef3d Bug 1347759 - Fix conditions under which we reflow absolutely positioned element due to size change of its container for everything other than horizontal LTR. r=jfkthame
I found this problem because I was debugging the failure of
layout/reftests/w3c-css/received/css-writing-modes-3/clearance-calculations-vrl-008.xht
with my patch for bug 1308876.  It was failing because the red reference
box that was intended to be covered up was being mispositioned leftwards
by the width of the scrollbar, since we were not reflowing it when we
decided that the viewport did not need scrollbars.  This patch fixes
that failure.

This led me to this bug, where
nsAbsoluteContainingBlock::FrameDependsOnContainer was incorrectly
testing conditions for when the values of 'top', 'right', 'bottom', and
'left' require reflow due to changes in the size of the containing
block.

The old code is incorrect in a number of cases, such as:
1. in RTL, with 'right: 100px', it will say that the frame does not
   depend on its container's width since 'right' (offset-inline-start)
   is a fixed offset and 'left' is 'auto'.  However, since the
   positioning is relative to the right edge, a change in container size
   does require that the absolutely positioned element be repositioned
   relative to the container's left edge.
2. In vertical-rl, again with 'right: 100px', it will make the same
   mistake, since 'right' (now offset-block-start) is a fixed offset.
   This is the case from the test I was debugging.
3. In vertical-rl with rtl direction and 'bottom: 100px', we will make
   the same mistake because 'bottom' (inline-start) is fixed and 'top'
   is 'auto', and we use 'bottom' rather than 'top'.

However, in cases (1) and (3) we actually avoid hitting the bug in these
simple-ish cases because ReflowInput::ShouldReflowAllKids() returns true
whenever IsIResize() is true, which means that
nsAbsoluteContainingBlock::Reflow doesn't even call
FrameDependsOnContainer.  However, FrameDependsOnContainer should still
do the right thing because it's needed for
nsAbsoluteContainingBlock::MarkSizeDependentFramesDirty, which is only
used (from nsBlockFrame) when we reflow again for clearance or for
interruptible reflow.  I haven't attempted to write a testcase for that
because it seems likely to require spending hours in the debugger trying
to trigger the right code.

This means that the only test that fails prior to the patch is
dynamic-offset-vrl-001.html, which exercises case (2), and also happens
to be the most similar to problem in clearance-calculations-vrl-008.xht.

This patch also makes the tests stricter so that we do optimize away
resizes in some cases where we're able to do so, such as
'left: 100px; right: auto' in RTL.  (Or, rather, we would if it weren't
for the IsIResize() in ShouldReflowAllKids().)

MozReview-Commit-ID: 8xm1AHC21oh
2017-03-16 09:39:19 -07:00
Jonathan Kew
8a11e06283 Bug 1317047 followup, make the table cells smaller to avoid horizontal compression of columns. r=manishearth 2017-03-03 10:40:10 +00:00
Manish Goregaokar
741ee13a11 Bug 1317047: Make logical-physical-mapping-001 less dependent on flaky table layout; r=xidorn
MozReview-Commit-ID: DeDRT1e68Mv
2017-02-24 14:30:52 -08:00
Manish Goregaokar
8b358ac5ea Bug 1338936 - Part 4: stylo: Update reftest results; r=emilio
MozReview-Commit-ID: 6wg32flypt7
2017-02-19 14:03:48 -08:00
Sebastian Hengst
6b8a70a3be Backed out changeset 2d887234705f (bug 1338936) 2017-02-19 10:37:16 +01:00
Manish Goregaokar
b81d7d2224 Bug 1338936 - Part 4: stylo: Update reftest results; r=emilio
MozReview-Commit-ID: 6wg32flypt7
2017-02-18 21:57:58 -08:00
Cameron McCormack
95e99422cb Bug 1334768 - stylo: Back out 800030115d2e and 404506488cfb for being completely wrong due to bug 1334938.
MozReview-Commit-ID: 8CGTqmtlguT
2017-01-30 16:49:54 +08:00
Cameron McCormack
1b17824ce4 Bug 1334768 - stylo: Test expectation adjustments for 2017-01-29 merge.
MozReview-Commit-ID: FFmvs6SHIwW
2017-01-29 15:31:56 +08:00
Jonathan Kew
bd03c2a999 Bug 1281424 followup, remove spec link from reference file. r=dbaron
DONTBUILD
2017-01-14 18:25:12 +00:00
Shing Lyu
ea0c6d953f Bug 1328825 - Update reftest-stylo.list and expectations. r=heycam
MozReview-Commit-ID: AMwdk5wvM0F
2017-01-10 15:50:59 +08:00
Manish Goregaokar
3410e7f288 Bug 1317092 - Fix metadata for logical-to-physical-mapping-001; r=dbaron
MozReview-Commit-ID: HX65RbpAVRK
2016-11-12 16:13:14 -08:00
Manish Goregaokar
6b84280348 Bug 1316172 - Add a reftest for logical properties; r=dbaron
MozReview-Commit-ID: J9PZVBoK0Fg
2016-11-08 15:03:08 -08:00
Shing Lyu
20e3ef4d6f Bug 1288350 - Temporary reftest list for Stylo vs Gecko test r=heycam,manishearth 2016-09-05 11:45:39 +08:00
Jonathan Kew
82c700934c Bug 1281424 - Reftest to check that text-orientation:upright does not override bidi in sideways-* modes. r=xidorn 2016-06-27 18:39:47 +01:00
Xidorn Quan
9a746cd408 Bug 1268347 - Forbid break opportunities inside horizontal-in-vertical. r=jfkthame
MozReview-Commit-ID: K8ao3D0IE93
2016-05-03 14:39:24 +10:00
Xidorn Quan
ad85288b82 Bug 1097499 followup 2 - Fix metadata of tests submitted to w3c. DONTBUILD
MozReview-Commit-ID: 3CJjby828W3
2016-05-03 14:43:40 +10:00
Xidorn Quan
4c3f61ee25 Bug 1097499 followup - Fix metadata of tests submitted to w3c. DONTBUILD
MozReview-Commit-ID: DyUFx8i499B
2016-05-03 11:16:56 +10:00
Xidorn Quan
1e03cd1928 Bug 1097499 part 15 - Add reftests for text-combine-upright. r=jfkthame
MozReview-Commit-ID: 2PhaUnUMF5l
2016-04-22 09:18:41 +10:00