LayoutTests:
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 1 Jul 2007 23:47:09 +0000 (23:47 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 1 Jul 2007 23:47:09 +0000 (23:47 +0000)
        Reviewed by Darin.

        Regression test for:
        http://bugs.webkit.org/show_bug.cgi?id=14453
        REGRESSION: www.nzherald.co.nz almost all the formating is gone

        * css2.1/hex-color-regression-expected.checksum: Added.
        * css2.1/hex-color-regression-expected.png: Added.
        * css2.1/hex-color-regression-expected.txt: Added.
        * css2.1/hex-color-regression.html: Added.

WebCore:

        Reviewed by Darin.

        http://bugs.webkit.org/show_bug.cgi?id=14453
        REGRESSION: www.nzherald.co.nz almost all the formating is gone

        * css/tokenizer.flex: Allow hex colors with 2, 4, or 5 hex digits.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23919 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/css2.1/hex-color-regression-expected.checksum [new file with mode: 0644]
LayoutTests/css2.1/hex-color-regression-expected.png [new file with mode: 0644]
LayoutTests/css2.1/hex-color-regression-expected.txt [new file with mode: 0644]
LayoutTests/css2.1/hex-color-regression.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/css/tokenizer.flex

index df3e771..590fca9 100644 (file)
@@ -1,3 +1,16 @@
+2007-07-01  Rob Buis  <buis@kde.org>
+
+        Reviewed by Darin.
+
+        Regression test for:
+        http://bugs.webkit.org/show_bug.cgi?id=14453
+        REGRESSION: www.nzherald.co.nz almost all the formating is gone
+
+        * css2.1/hex-color-regression-expected.checksum: Added.
+        * css2.1/hex-color-regression-expected.png: Added.
+        * css2.1/hex-color-regression-expected.txt: Added.
+        * css2.1/hex-color-regression.html: Added.
+
 2007-07-01  Darin Adler  <darin@apple.com>
 
         Fixed a no-SVG test failure by removing a node that was affecting the test results differently
diff --git a/LayoutTests/css2.1/hex-color-regression-expected.checksum b/LayoutTests/css2.1/hex-color-regression-expected.checksum
new file mode 100644 (file)
index 0000000..ae7a7bd
--- /dev/null
@@ -0,0 +1 @@
+18f1f64eab31dfb69467a497de9442d7
\ No newline at end of file
diff --git a/LayoutTests/css2.1/hex-color-regression-expected.png b/LayoutTests/css2.1/hex-color-regression-expected.png
new file mode 100644 (file)
index 0000000..fc96c0b
Binary files /dev/null and b/LayoutTests/css2.1/hex-color-regression-expected.png differ
diff --git a/LayoutTests/css2.1/hex-color-regression-expected.txt b/LayoutTests/css2.1/hex-color-regression-expected.txt
new file mode 100644 (file)
index 0000000..7ce690f
--- /dev/null
@@ -0,0 +1,6 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/LayoutTests/css2.1/hex-color-regression.html b/LayoutTests/css2.1/hex-color-regression.html
new file mode 100644 (file)
index 0000000..4af36d3
--- /dev/null
@@ -0,0 +1,5 @@
+<style>
+    span { color: #f0; }
+    div { background-color: green; width: 100px; height: 100px; }
+</style>
+<div></div>
index d61217d..620a921 100644 (file)
@@ -1,3 +1,12 @@
+2007-07-01  Rob Buis  <buis@kde.org>
+
+        Reviewed by Darin.
+
+        http://bugs.webkit.org/show_bug.cgi?id=14453
+        REGRESSION: www.nzherald.co.nz almost all the formating is gone
+        * css/tokenizer.flex: Allow hex colors with 2, 4, or 5 hex digits.
+
 2007-07-01  Sam Weinig  <sam@webkit.org>
 
         Reviewed by Oliver.
index a05b655..38665b8 100644 (file)
@@ -12,7 +12,7 @@ nmstart         [_a-zA-Z]|{nonascii}|{escape}
 nmchar          [_a-zA-Z0-9-]|{nonascii}|{escape}
 string1         \"([\t !#$%&(-~]|\\{nl}|\'|{nonascii}|{escape})*\"
 string2         \'([\t !#$%&(-~]|\\{nl}|\"|{nonascii}|{escape})*\'
-hexcolor        {h}{3}|{h}{6}
+hexcolor        {h}{2,6}
 
 ident           -?{nmstart}{nmchar}*
 name            {nmchar}+