Open Bug 705261 Opened 14 years ago Updated 3 years ago

Struck through rule name calculation in style inspector wrong?

Categories

(Firefox :: General, defect)

Other
Other
defect

Tracking

()

People

(Reporter: kdevel, Unassigned)

Details

(Whiteboard: [ruleview])

Attachments

(1 file)

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
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..
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [ruleview]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: