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

NEW
Unassigned

Status

P3
normal
7 years ago
4 months ago

People

(Reporter: kdevel, Unassigned)

Tracking

Trunk
x86
All

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

1.00 KB, text/html
Details
(Reporter)

Description

7 years ago
Created attachment 589827 [details]
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.
(Reporter)

Updated

7 years ago
OS: Other → Linux
Hardware: Other → x86_64
(Reporter)

Updated

7 years ago
Attachment #589827 - Attachment mime type: text/plain → text/html

Comment 1

7 years ago
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

Updated

7 years ago
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]

Comment 3

7 years ago
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.

Updated

7 years ago
Whiteboard: [computedview][ruleview] → [computedview][ruleview][firefox14-wanted]

Updated

7 years ago
Priority: P2 → P3

Updated

3 years ago
Component: Developer Tools: Inspector → Developer Tools: CSS Rules Inspector
Whiteboard: [computedview][ruleview][firefox14-wanted]

Updated

4 months ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.