Closed
Bug 1331543
Opened 8 years ago
Closed 8 years ago
stylo: value from getComputedStyle is not updated after setting property in style rule
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
WORKSFORME
Tracking | Status | |
---|---|---|
firefox53 | --- | affected |
People
(Reporter: xidorn, Unassigned)
References
Details
See the following code:
<!DOCTYPE html>
<style>div {}</style>
<div></div>
<script>
let div = document.querySelector('div');
alert(getComputedStyle(div).borderImageSlice);
rule = document.styleSheets[0].cssRules[0];
rule.style.setProperty('border-image-slice', '0%', '');
alert(getComputedStyle(div).borderImageSlice);
</script>
The computed value of border-image-slice is not changed after setting the property value in the matching style rule. It seems the change doesn't trigger a restyling.
It doesn't happen for all properties, e.g. this happens for border-image-slice, but not for display. And it seems to only happen in rendering tree (i.e. subtree of display:none seems to work fine).
I found this issue in test_inherit_computation.html, which is one of the biggest sources of test failures, so I suspect that a big amount of failures are from this issue.
It seems to me this issue is similiar to bug 1331294, but the patch there doesn't seem to be something related here.
Reporter | ||
Comment 1•8 years ago
|
||
It seems this bug has been fixed somehow.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•