Closed Bug 1359301 Opened 9 years ago Closed 9 years ago

width/height value from getComputedStyle for pseudo-element are not resolved value

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1355351
Tracking Status
firefox55 --- affected

People

(Reporter: xidorn, Unassigned)

Details

Attachments

(1 file)

Attached file testcase
Steps to reproduce: Open the attached testcase Expected result: The two dialogs should show the same content, which should be '60px' in this case. Actual result: The second dialog shows '30%'. Per spec, getComputedStyle should return the used value for height/width and a bunch of other properties. Firefox returns the used value for normal elements, but computed value for pseudo-elements, which is inconsistent and wrong. Blink and WebKit seem to correctly return the used value for pseudo-elements as well.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: