Closed Bug 682919 Opened 13 years ago Closed 13 years ago

"-moz-transform-style: fixed" is parsed as preserve-3d

Categories

(Core :: CSS Parsing and Computation, defect)

x86_64
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla10

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: testcase, Whiteboard: [inbound])

Attachments

(3 files)

Attached file testcase
"-moz-transform-style: fixed" is parsed as "preserve-3d". I'm guessing this isn't intentional, based on looking at patch 14a in bug 505115.
I can see the same behaviour here, but I'm not sure why.

I tried adding the above tests to catch this behaviour, and they pass.
Maybe you need "eCSSKeyword_UNKNOWN,-1" at the end of kTransformStyleKTable. (The table above it also seems to be missing that. Not the sanest API.)

http://mxr.mozilla.org/mozilla-central/source/layout/style/nsCSSProps.cpp#590
Yes, that's needed.  Not sure what alternative API you'd suggest; you either need a terminator or a length.
You could compute the length using NS_ARRAY_LENGTH instead of specifying it.
I suppose so, but then we'd need to pass that length around in a whole bunch of places, or add a structure wrapping the length and a pointer to the list (probably the better option).
Thanks Jesse, good catch.
Attachment #563929 - Flags: review?(dbaron)
Comment on attachment 563929 [details] [diff] [review]
Add eCSSKeyword_UNKNOWN

r=dbaron
Attachment #563929 - Flags: review?(dbaron) → review+
https://hg.mozilla.org/mozilla-central/rev/91055546d0cb
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla10
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: