Closed
Bug 1331874
Opened 8 years ago
Closed 8 years ago
stylo: <style> elements inserted as part of inserting the document element do not apply
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
DUPLICATE
of bug 1331301
People
(Reporter: heycam, Unassigned)
References
Details
In this test case, when the document element is removed and re-inserted, the styles from <style> element in the re-inserted subtree do not get applied to the content:
<!DOCTYPE html>
<style>
div > span { color: green; }
</style>
<div><span>Hello there!</span></div>
<script>
var e;
setTimeout(function() {
e = document.documentElement;
e.remove();
setTimeout(function() {
document.appendChild(e);
}, 2000);
}, 2000);
</script>
Comment 1•8 years ago
|
||
This might be a dup of bug 1331301.
Updated•8 years ago
|
Comment 2•8 years ago
|
||
This is probably due to us not restyling in RebuildAllStyleData.
Comment 3•8 years ago
|
||
Yeah, there's a handful of unimplemented things in ServoRestyleManager (some of which could probably be shared with RestyleManager via RestyleManagerBase). Someone should do a pass over it and see what obvious stuff needs implementing. I probably don't have time this week. Maybe next week, or someone else could do it.
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•