Closed Bug 862158 Opened 11 years ago Closed 11 years ago

tspan-rotate-02.svg and tspan-rotate-04.svg fail with svg.text.css-frames.enabled

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla23

People

(Reporter: heycam, Assigned: heycam)

References

Details

Attachments

(1 file, 2 obsolete files)

      No description provided.
Attached patch patch (obsolete) — Splinter Review
This keeps http://www.w3.org/Graphics/SVG/Test/20110816/svg/text-tspan-02-b.svg passing while making tspan-0[24].svg pass.  I also added a test for unspecified rotation values that come after specified values but which have nothing to inherit from.  Other implementations (and our current old SVG text frames) use 0 rather than looking at the preceding value.
Assignee: nobody → cam
Status: NEW → ASSIGNED
Attachment #737799 - Flags: review?(longsonr)
Attachment #737799 - Flags: review?(longsonr) → review+
Backed out for text-layout-08.svg failure:
https://hg.mozilla.org/integration/mozilla-inbound/rev/00c31be62f62
Flags: in-testsuite+
Attached patch patch v2 (obsolete) — Splinter Review
I'm sorry, I got this one wrong.  In fact, we do want to overwrite inherited rotation values, even if they were explicitly specified.  Reading through the description of rotate="" in SVG 1.1 Second Edition (and SVG 2, still) this is what's required.  I remember that there was an errata that made its way into the Second Edition.

This means we don't have to track whether the inherited rotation value was implied or not.  It also means that text-tspan-0[24].svg are invalid as they are currently.  In this patch I've updated them to the new behaviour.  This makes us match Chrome's behaviour for these tests.

Try run for this new patch in progress: https://tbpl.mozilla.org/?tree=Try&rev=f9e9154e1cd4
Attachment #737799 - Attachment is obsolete: true
Attachment #737928 - Flags: review?(longsonr)
Comment on attachment 737928 [details] [diff] [review]
patch v2

> skip-if(B2G) random-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) == tspan-rotate-01.svg tspan-rotate-ref.svg # Bug 629718 for random failure on WinXP # bug 773482
>-skip-if(B2G) random-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) == tspan-rotate-02.svg tspan-rotate-ref.svg # Bug 629718 for random failure on WinXP # bug 773482
>+skip-if(B2G) random-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) pref(svg.text.css-frames.enabled,true) == tspan-rotate-02.svg tspan-rotate-02-ref.svg # Bug 629718 for random failure on WinXP # bug 773482
> skip-if(B2G) random-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) == tspan-rotate-03.svg tspan-rotate-ref.svg # Bug 629718 for random failure on WinXP # bug 773482
>-skip-if(B2G) random-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) == tspan-rotate-04.svg tspan-rotate-ref.svg # Bug 629718 for random failure on WinXP # bug 773482
>+skip-if(B2G) random-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) pref(svg.text.css-

I'm not keen on the changes above, we could regress the current shipping functionality and not know it. Lets just leave this as it is. Once we pref this on it will run anyway.

>+== tspan-rotate-07.svg tspan-rotate-07-ref.svg

Please run this on Try on Windows XP a few times to check you're not introducing random orange. If you are skip the test on WinXP.

r=me with above issues fixed.
Attachment #737928 - Flags: review?(longsonr) → review+
(In reply to Robert Longson from comment #5)
> I'm not keen on the changes above, we could regress the current shipping
> functionality and not know it. Lets just leave this as it is. Once we pref
> this on it will run anyway.

Should I duplicate the files then and have one version for current functionality and one for new?  If I make the test changes but leave them running without the pref, they'll fail.

> >+== tspan-rotate-07.svg tspan-rotate-07-ref.svg
> 
> Please run this on Try on Windows XP a few times to check you're not
> introducing random orange. If you are skip the test on WinXP.

OK.
Comment on attachment 737928 [details] [diff] [review]
patch v2

was supposed to have test changes in to tspan-rotate-02.svg and tspan-rotate-04.svg
Attachment #737928 - Flags: review+ → review-
Attached patch patch v2.1Splinter Review
This time with missing files added.  I duplicated the reftest.list lines for these two tests so we don't lose test coverage.
Attachment #737928 - Attachment is obsolete: true
Attachment #737941 - Flags: review?(longsonr)
Attachment #737941 - Flags: review?(longsonr) → review+
https://hg.mozilla.org/mozilla-central/rev/62867a7d2d44
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: