Changing attribute doesn't redraw pseudoelement before/after correctly

RESOLVED DUPLICATE of bug 214013

Status

()

--
minor
RESOLVED DUPLICATE of bug 214013
15 years ago
15 years ago

People

(Reporter: daniel, Assigned: roc)

Tracking

Trunk
x86
Windows 98
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

15 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624
Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624

Changing attributes of an element using setAttribute() doesn't force a redraw,
when the element's content get's generated by CSS using the before/after pseudo
element:

.mw:before {
  content:"[mw:" attr(valueMen) "/" attr(valueWomen) "]";
}
	
Now when changing any attribute the element's content doesn't update correctly.
It usually just doesn't display anything or shows the old value. Actually the
size of the element doesn't update to the new size of the content. When hiding
the element and showing it again, it will be drawn correctly.

Reproducible: Always

Steps to Reproduce:
See example page


Expected Results:  
The pseudoelement's content should be updated as soon as an used attribute changes

*** This bug has been marked as a duplicate of 214013 ***
Status: UNCONFIRMED → RESOLVED
Last Resolved: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.