Open Bug 719387 Opened 12 years ago Updated 2 years ago

Paragraph is left aligned while style inspector reports text-align:"justify"

Categories

(DevTools :: Inspector: Rules, defect, P3)

x86
All
defect

Tracking

(Not tracked)

People

(Reporter: kdevel, Unassigned)

Details

Attachments

(1 file)

Attached file testcase
User Agent:  

Steps to reproduce:

1. Open testcase. Inspect the last paragraph.


Actual results:

1. Paragraph is left aligned but style inspector reports it is justified.


Expected results:

1. Report the effective alignment.
OS: Other → Linux
Hardware: Other → x86_64
Attachment #589827 - Attachment mime type: text/plain → text/html
Confirmed on Mozilla/5.0 (Windows NT 5.1; rv:12.0a1) Gecko/20120119 Firefox/12.0a1 ID:20120119031105
Status: UNCONFIRMED → NEW
Component: Untriaged → Developer Tools: Inspector
Ever confirmed: true
OS: Linux → All
QA Contact: untriaged → developer.tools.inspector
Hardware: x86_64 → x86
Priority: -- → P2
Interestingly, text-align: justify; is inheritable and because it is specified on body the paragraph *should* also be justified as far as I can see.
Whiteboard: [computedview][ruleview]
It looks like the user agent stylesheet overrides text-align for table. If the paragraph wasn't in a table, it would probably be justified.
Font styles are overridden within tables in quirks mode by quirk.css:
table {
  text-align: start;
  white-space: normal; /* compatible with IE & spec */
  line-height: normal;

  /* Quirk: cut off all font inheritance in tables except for family. */
  font-size: -moz-initial;
  font-weight: -moz-initial;
  font-style: -moz-initial;
  font-variant: -moz-initial;
}

table, td, th, tr, thead, tbody, tfoot, colgroup, col {
  border-color: gray;
}

As to why the style inspector misses this style I am not sure ... we will have to investigate.
Whiteboard: [computedview][ruleview] → [computedview][ruleview][firefox14-wanted]
Priority: P2 → P3
Component: Developer Tools: Inspector → Developer Tools: CSS Rules Inspector
Whiteboard: [computedview][ruleview][firefox14-wanted]
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: