Implement text and tspan rotate attribute

RESOLVED FIXED

Status

()

RESOLVED FIXED
11 years ago
8 years ago

People

(Reporter: phreed, Unassigned)

Tracking

Trunk
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

11 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b5) Gecko/2008032620 Firefox/3.0b5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b5) Gecko/2008032620 Firefox/3.0b5

There is no visible effect from the 'rotate' attribute as described in...
"Scalable Vector Graphics (SVG) 1.1 Specification" - "10.4 The 'text' element"
See the example in 'Additional Info'.


Reproducible: Always

Steps to Reproduce:
1. Load the sample from 'Additional Info'
2. Note that the glyph are not rotated as specified.



<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
	  "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg 
  xmlns="http://www.w3.org/2000/svg"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  width="800" height="600" viewBox="0 0 400 300">

  <text x="40" y="30"  rotate="-30">Rotate word</text>
  <text x="40" y="60"  rotate="-40 -35 -30 -20 -10">Rotate letters</text>
  <text x="40" y="90"  rotate="0 0 0 0 0 0 0 -20 -15 0 15 20"><tspan>Rotate tspan</tspan></text>

</svg>

Comment 1

11 years ago
Created attachment 320552 [details]
svg text rotation testcase

Reporter testcase

Comment 2

11 years ago
Couldn't find an existing feature request about this, confirming.
Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Component: General → SVG
Ever confirmed: true
OS: Windows XP → All
Product: Firefox → Core
QA Contact: general → general
Hardware: PC → All
Summary: text/@rotate not supported? → Implement text and tspan rotate attribute
Version: unspecified → Trunk

Updated

11 years ago
Severity: enhancement → normal
Component: SVG → General
OS: All → Windows XP
QA Contact: general → general
Hardware: All → PC
Version: Trunk → unspecified

Updated

11 years ago
Component: General → SVG
QA Contact: general → general

Comment 3

11 years ago
Restoring version/platform (I guess Kevin's changes were unintentional?)
OS: Windows XP → All
Hardware: PC → All
Version: unspecified → Trunk

Comment 4

11 years ago
Not sure why Hardware/OS changed. I thought I changed only Product: Firefox -> Core and Component: General -> SVG. But thanks for catching the unintentional changes.
This seems to work on <text> now, unless <tspan> is involved.
Depends on: 333698
Fixed by the patches for bug 333698 and bug 388547
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.