Closed Bug 37470 Opened 25 years ago Closed 24 years ago

Implement CSSStyleRuleImpl::GetParentRule()

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla0.9.5

People

(Reporter: jst, Assigned: bzbarsky)

References

Details

(Keywords: dom2)

Attachments

(2 files)

Pierre, does the style system know about parent rules, for instance @media { foo { clolr: red; } } Does the stylesystem know that the media rule is the parent of the foo rule?
Keywords: nsbeta2
Keywords: nsbeta2
Closed as Invalid. The 'AtRules' are not parent rules. The style system knows the medium attached to the stylesheet the rule belongs to (look for UseForMedium()).
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Ok, cool, I'll just make the DOM accessors for this throw the exception NOT_SUPPORTED_ERR and that should be ok, thanks for checking. Verified invalid.
Status: RESOLVED → VERIFIED
I guess I did not understand what you were looking for. Re-opening.
Status: VERIFIED → REOPENED
Resolution: INVALID → ---
Status: REOPENED → ASSIGNED
Target Milestone: --- → M17
Ok, I'm sorry, I should have been more clear here, to give a useage sample with the above css (and using color and not clolr:) Say you have CSSStyleRule variable "a" for the "foo" rule and we call (in JS) var fooParent = a.parentRule; Can we easily return (the DOM CSS version) for the native CSSMediaRuleImpl? I've got the DOM CSS version of CSSMediaRuleImpl in my tree, still needs some cleaning up... Please note tho that this is not a very important feature but if it's easy to do we might as well do it.
Johnny, I'm not totally sure whether the Description here refers to GetParentRule() or CSSMediaRuleImpl. Regardless, at this point, please push off to FUTURE all bugs/features that are not absolutely critical for providing a solid web app platform, regardless of how easy they may be. Got to close down development and focus on fixing ASAP.
CSSMediaRule shouldn't need any modifications here (appart from some DOM updates), CSSMediaRuleImpl just happens to be what's typically (always?) returned by GetParentRule(). This is not at all critical for providing a solid web app platform.
Pushed to Future.
Target Milestone: M17 → Future
Keywords: dom2
Component: DOM Level 2 → DOM Style
Taking QA Contact on all open or unverified DOM Style bugs...
QA Contact: vidur → ian
Nominating this bug for nsbeta1 on behalf of gerardok@netscape.com.
Keywords: nsbeta1
Removing nsbeta1 nomination -- there was a misunderstanding and some "approved out features" were nominated by mistake! Sorry!
Keywords: nsbeta1
Blocks: 99842
No longer blocks: 99842
Blocks: 99842
Attached patch Proposed patchSplinter Review
Taking. reviews?
Assignee: pierre → bzbarsky
Status: ASSIGNED → NEW
Keywords: patch, review
Priority: P3 → P2
Target Milestone: Future → mozilla0.9.5
Attached file testcase-like thing
Comment on attachment 49545 [details] [diff] [review] Proposed patch r=pierre jst, please s/r
Attachment #49545 - Flags: review+
Comment on attachment 49545 [details] [diff] [review] Proposed patch sr=jst
Attachment #49545 - Flags: superreview+
This was checked in on 2001-09-19
Status: NEW → RESOLVED
Closed: 25 years ago24 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: