Note: There are a few cases of duplicates in user autocompletion which are being worked on.

ignoring of invalid at-keywords (@-keywords) should stop at end of containing block ({})

RESOLVED FIXED in mozilla5

Status

()

Core
CSS Parsing and Computation
RESOLVED FIXED
7 years ago
6 years ago

People

(Reporter: dbaron, Unassigned)

Tracking

(Blocks: 1 bug, {css2})

Trunk
mozilla5
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment, 1 obsolete attachment)

(Reporter)

Description

7 years ago
http://test.csswg.org/suites/css2.1/20100917/xhtml1/at-rule-013.xht fails because we haven't implemented the new rule in CSS 2.1 regarding ignoring of invalid at-keywords:

# User agents must ignore an invalid at-keyword together with everything
# following it, up to the end of the block that contains the invalid at-keyword,
# or up to and including the next semicolon (;), or up to and including the next
# block ({...}), whichever comes first.

We incorrectly continue past the end of the block that contains the invalid at-keyword.
(Reporter)

Updated

7 years ago
Keywords: css2
(Reporter)

Updated

7 years ago
Blocks: 605520

Comment 1

7 years ago
(citation)

The # quoted text above (User agents must ignore...) is from the list item that starts with "At-rules with unknown at-keywords." in section "4.2 Rules for handling parsing errors" in CSS 2.1: http://www.w3.org/Style/css2-updates/css2/syndata.html#parsing-errors
(Reporter)

Comment 2

7 years ago
Created attachment 506827 [details] [diff] [review]
patch
Attachment #506827 - Flags: review?(bzbarsky)
(Reporter)

Comment 3

7 years ago
Created attachment 506828 [details] [diff] [review]
patch

oops, forgot to update patch description
Attachment #506827 - Attachment is obsolete: true
Attachment #506828 - Flags: review?(bzbarsky)
Attachment #506827 - Flags: review?(bzbarsky)

Comment 4

7 years ago
Comment on attachment 506828 [details] [diff] [review]
patch

r=me
Attachment #506828 - Flags: review?(bzbarsky) → review+

Updated

7 years ago
(Reporter)

Comment 5

7 years ago
https://hg.mozilla.org/projects/birch/rev/b6a3ab183a8f
Whiteboard: fixed-in-birch
(Reporter)

Comment 6

6 years ago
https://hg.mozilla.org/mozilla-central/rev/b6a3ab183a8f
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Whiteboard: fixed-in-birch
Target Milestone: --- → mozilla2.2
You need to log in before you can comment on or make changes to this bug.