Closed Bug 46562 Opened 24 years ago Closed 24 years ago

[fix in hand]'display: run-in' disables whole declaration block

Categories

(Core :: CSS Parsing and Computation, defect, P3)

x86
Windows 2000
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: emk, Assigned: pierre)

Details

(Keywords: css1, testcase, Whiteboard: [fix in hand][nsbeta3+])

Attachments

(2 files)

Steps to reproduce: Navigate to the following testcase. Actual result: H2 is black and block-level. Expected result: H2 should be green and inline. Only 'display: run-in' should be ignored. Reproduceable: always Occurs on: 2000072520 nightly build on Windows 2000 Latest cvs build on Windows 2000
Attached file Testcase
Your change results in treating 'display: run-in' the same as 'display:foo' and 'bar:baz', right?
QA Contact: chrisd → py8ieh=bugzilla
Marking Invalid. We want to discard the entire declaration block in case of an unsupported display type. See bug 2056 (display:run-in), bug 14983 (compact), bug 18218 (inline-table) and bug 15432.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
Nooo no no no no nooooooooo. :-) We want to ignore just that property-value pair (that "declaration" in strict CSS terms). This is very welll defined in the specification. I appologise profusely if I ever got across the idea that we had to ignore the entire {...} declaration block! Here is a quote from CSS1: # For example, assume a CSS1 parser encounters this style sheet: # # H1 { color: red; font-style: 12pt } # P { color: blue; font-vendor: any; font-variant: small-caps } # EM EM { font-style: normal } # # The second declaration on the first line has an invalid value '12pt'. The # second declaration on the second line contains an undefined property 'font- # vendor'. The CSS1 parser will skip these declarations, reducing the style # sheet to: # # H1 { color: red; } # P { color: blue; font-variant: small-caps } # EM EM { font-style: normal } #
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Sorry, I thought it was what you asked for in bug 15432 and what Peter had agreed with... which surprised me a bit at that time because it's against the normal parsing rules. The patch is easy: just uncomment "aErrorCode = NS_CSS_PARSER_DROP_DECLARATION" in nsCSSParser.cpp.
Status: REOPENED → ASSIGNED
Keywords: review
Summary: 'display: run-in' disables whole declaration block → [fin in hand]'display: run-in' disables whole declaration block
Whiteboard: [fin in hand]
Target Milestone: --- → M18
When you say 'fin in hand'... I assume you are not referring to holding Tux by the fin, and will thus change it to 'fix in hand'. Of course, I guess you really could be holding Tux by the fin, since we do have a life-size Tux in the building... Again, appolgies for not being clear in bug 15432!
Summary: [fin in hand]'display: run-in' disables whole declaration block → [fix in hand]'display: run-in' disables whole declaration block
Whiteboard: [fin in hand] → [fix in hand]
Approving for nsbeta3
Whiteboard: [fix in hand] → [fix in hand][nsbeta3+]
Fix checked in nsCSSParser.cpp
Status: ASSIGNED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → FIXED
Verified fixed using 2000080508 nightly on Windows 2000.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: