Closed Bug 37518 Opened 24 years ago Closed 24 years ago

Style properties set in a stylesheet are not accessable via .style property

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 34529

People

(Reporter: j.hunter, Assigned: jst)

Details

Attachments

(1 file)

Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m15)
BuildID:    2000041805

Style properties set in a global or page level stylesheet are not readable via 
the DOM using Javascript, although they can be set using script. If the 
properties are set as an inline STYLE attribute then the style properties are 
readable.

Reproducible: Always
Steps to Reproduce:
1. Open the attached test case.
2. select the report link - the returned .style.left value is null
3. select the move link - the element .style.left value is set and the  element 
moves on the page.
4. select the report link - the returned .style.left value reported correctly as 
40px.

Actual Results:  Step 2. returns an empty string.

Expected Results:  Step 2. should return the correct .style.left value of 250px.
Attached file Test case
This is a dup of 34529, and it's also an invalid bug, see 34529 for description.

*** This bug has been marked as a duplicate of 34529 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Verified duplicate.
Status: RESOLVED → VERIFIED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: