Closed Bug 591308 Opened 15 years ago Closed 15 years ago

Inspector style panel css parsing should be checked against the CSS3 spec

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jwalker, Assigned: jwalker)

References

Details

(Whiteboard: [kd4b7])

http://www.w3.org/TR/css3-selectors/#specificity We need to go through this carefully to check that we're doing the right thing.
Blocks: 582596, 586984
We also need to make sure that we follow what the browser actually does instead of what we think it should do. Ideally we need to hook into the browsers CSS parser for this. As part of this checking we need to double check on the .weird#class case. That means class="weird" and id="class" and not class="weird#class" doesn't it???
Whiteboard: [kd4b7]
No longer blocks: 582596
Assignee: nobody → jwalker
Depends on: 582596
The spec says that .weird#class means class="weird" and id="class" as we thought, and that's what Firefox seems to do: <style> .x#y { color:red !important; } #y.x { background-color: yellow !important; } .x#y { font-weight:bold !important; } <style> <p id="y" class="x">test id="y" class="x"</p> <p id="y.x">test id="y.x"</p> <p class="x#y">test class="x#y"</p> Only the first paragraph is matched
I have done lots of checking and raised issues in bug 592743. We may find other issues, these will be raised as separate bugs.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.