Closed Bug 1133308 Opened 9 years ago Closed 9 years ago

[CSS Counter Styles L3] Add support for CSSCounterStyleRule

Categories

(Core :: DOM: CSS Object Model, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: teoli, Unassigned)

References

(Blocks 1 open bug, )

Details

(Keywords: dev-doc-needed)

CSS Counter Style level 3 add support for @counter-style (already implemented). To manipulate these via scripts, we need to implement CSSCounterStyleRule.
Keywords: dev-doc-needed
Summary: [CSS Counter Styles L2] Add support for CSSCounterStyleRule → [CSS Counter Styles L3] Add support for CSSCounterStyleRule
OS: Mac OS X → All
Hardware: x86 → All
Based on:

<!DOCTYPE html>
<style>
@counter-style foo {
   system: cyclic;
   symbols: \2022;
   suffix: " ";
}
</style>
<script>
var sheet = document.getElementsByTagName("style")[0].sheet;
var rule = sheet.cssRules[0];
document.write(rule + "<br>");
document.write(rule.name + "<br>");
document.write(rule.system + "<br>");
document.write('"' + rule.prefix + '"' + "<br>");
document.write('"' + rule.suffix + '"' + "<br>");
</script>
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
Thank you, sorry for the noise. I will use this bug to get the API documented.
You need to log in before you can comment on or make changes to this bug.