Why does copying cell styles not support inheriting parent data?
This seems different from the object style, there is no Reset to base option here.
The following code only copied an empty style B and did not inherit the data from A.
var baseSty = app.documents[0].cellStyles.itemByName('A');
//alert(baseSty.parent);
//exit();
newSty = baseSty.duplicate();
newSty.name = 'B';
newSty.basedOn = baseSty;But you commented out this line:
//newSty.basedOn = baseSty;
Discovered that B can inherit A's data, but based on 'none'
Manual operation also has the same effect.
This may be the difference between manual "direct copying" and "based on new creation".
I don't know why they can't have both?





