This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 19860 - CssStyleRule.toString() incorrect "important" output [WITH PATCH]
Summary: CssStyleRule.toString() incorrect "important" output [WITH PATCH]
Status: RESOLVED FIXED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: Parser (show other bugs)
Version: CSS Validator
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-05 14:46 UTC by Hannes Erven
Modified: 2012-11-05 17:44 UTC (History)
0 users

See Also:


Attachments

Description Hannes Erven 2012-11-05 14:46:19 UTC
CssStyleRule.toString() appends "important" to an important value, while the standard requires it to be "!important" (exclamation mark missing).

== Patch ==

Index: CssStyleRule.java
===================================================================
--- CssStyleRule.java
+++ CssStyleRule.java	(working copy)
@@ -55,7 +55,7 @@
             ret.append(" : ");
             ret.append(property.toString());
             if (property.getImportant()) {
-                ret.append(" important");
+                ret.append(" !important");
             }
             ret.append(";\n");
         }
Comment 1 Yves Lafon 2012-11-05 17:44:28 UTC
Incorporated, thanks !