Ticket #1964 (closed feature: fixed)

Opened 4 years ago

Last modified 4 years ago

allow a style object to be created with rules

Reported by: tschaub Owned by: ahocevar
Priority: minor Milestone: 2.8 Release
Component: Style Version: 2.7
Keywords: Cc:
State: Complete

Description

Rules passed to the Style constructor should be added to the style.

Attachments

rules.patch Download (3.2 KB) - added by tschaub 4 years ago.
allow rules to be added in style constructor

Change History

Changed 4 years ago by tschaub

(In [8959]) Add tests for adding rules in style constructor. (see #1964)

Changed 4 years ago by tschaub

allow rules to be added in style constructor

Changed 4 years ago by tschaub

  • state set to Review

Tests pass in FF3. Thanks for any review.

Changed 4 years ago by ahocevar

  • state changed from Review to Commit

This is a valuable addition. Thanks Tim. I also tested in IE7, tests pass there as well. Please commit.

Changed 4 years ago by tschaub

  • status changed from new to closed
  • state changed from Commit to Complete
  • resolution set to fixed

(In [8975]) Style constructor accepts a rules array. These rules will be added to the style. r=ahocevar (closes #1964)

Note: See TracTickets for help on using tickets.