Open
Bug 705261
Opened 14 years ago
Updated 3 years ago
Struck through rule name calculation in style inspector wrong?
Categories
(Firefox :: General, defect)
Tracking
()
NEW
People
(Reporter: kdevel, Unassigned)
Details
(Whiteboard: [ruleview])
Attachments
(1 file)
|
11.20 KB,
image/png
|
Details |
User Agent:
Steps to reproduce:
1. Open http://www.lto.de/.
2. Right click at first headline ("DB-Chef Grube ...") Inspect Element
3. Click at button "Style".
4. Unckeck the struck trough rule "font-size: 16px" (_compiled_LTO.css:410)
Actual results:
4. Headline font shrinks.
Expected results:
4. Headline font size remains unchanged.
Maybe related to
Last Comment Bug 680111 - style inspector is not showing the correct selected rule
Comment 2•14 years ago
|
||
The headlines obviously change but inspecting the first red headline will work just fine.
The problem is probably best explained using the attached screenshot from the style inspector.
The selector that is actually applies the font size targets the a tags parent:
.content .col-content h1 { _compiled_LTO.css:410 (simplified)
font-size:16px;
}
The a tag receives it's font size from:
a { _compiled_LTO.css:185 (simplified)
font-size: 100%;
}
So the font size is 100% of it's parent's font size. Changing it's parent's font size will affect the element's font.
So there is no problem with specificity here, rather a UI challenge. If a parent has a font-size of 16px and a child a font-size of 100% then I would say that both font sizes should be visible ... this is what we do in the computed style view..
Updated•14 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [ruleview]
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•