Skip to content

Commit

Permalink
Correct lifting algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
begriffs committed Nov 20, 2012
1 parent 82333ff commit 0cf62ab
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions css.js
Expand Up @@ -86,13 +86,12 @@
'caption-side', 'direction', 'elevation', 'empty-cells', 'line-height', 'list-style-image',
'list-style-position', 'list-style-type', 'list-style', 'orphans', 'pitch-range',
'pitch', 'quotes', 'richness', 'speak-header', 'speak-numeral', 'speak-punctuation',
'speak', 'speech-rate', 'stress', 'visibility', 'voice-family', 'volume', 'widows'],
common = filterKeys(commonStyle(node.children()), heritable);
'speak', 'speech-rate', 'stress', 'visibility', 'voice-family', 'volume', 'widows'];

node.children().each(function () {
$(this).data('style', objectDifference($(this).data('style'), common));
node.children().each(function (i, kid) {
var common = filterKeys(commonStyle([node, $(kid)]), heritable);
$(kid).data('style', objectDifference($(kid).data('style'), common));
});
node.data('style', $.extend(node.data('style'), common));
}

function defaultDisplayForTag(tag) {
Expand Down

0 comments on commit 0cf62ab

Please sign in to comment.