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)

defect
Not set
normal

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>
This might be a dup of bug 1331301.
Blocks: stylo-incremental
No longer blocks: stylo
This is probably due to us not restyling in RebuildAllStyleData.
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.
Depends on: 1336646
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.