bugGnash - The GNU Flash player - Bugs: bug #23003, Support CSS color shorthand

 
 

bug #23003: Support CSS color shorthand

Submitted by:  Craig <candrews>
Submitted on:  Sun 20 Apr 2008 06:42:04 PM UTC  
 
Category: NoneSeverity: 1 - Wish
Release: NoneStatus: Wont Fix
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 04 Dec 2008 12:14:58 PM UTC, comment #5:

Not going to do this until Adobe does, or we'll possibly mess up existing SWFs.

Benjamin Wolsey <bwy>
Project Member
Wed 23 Apr 2008 08:03:04 PM UTC, comment #4:

About adobe player not supporting it:
http://molecularvoices.molecular.com/2008/css-color-shorthand-not-support-in-adobe-flash/

Sandro Santilli <strk>
Project Member
Mon 21 Apr 2008 02:21:18 PM UTC, comment #3:

Okay - I was just wondering what sort of status this has. I'd say it should go on the wish list.

Problems can arise if we deliberately diverge from Flash to implement standards properly that Flash claims to be compatible with, because Flash developers come to rely on bugs and write sloppy SWFs that then don't work as expected in Gnash. CSS colour doesn't look like one of those areas, but you just never know.

I've been thinking about providing runtime switches for external standards for a while: strict implementation of XML, HTML and indeed CSS if that's what the end user decides. We already warn about bad XML. If there's some support for that idea, CSS would be a case where we could do that.

Of course, Adobe might get round to fixing the bug sometime - then there'd probably be a version check involved for backwards compatibility...

Benjamin Wolsey <bwy>
Project Member
Mon 21 Apr 2008 12:49:36 PM UTC, comment #2:

I'm not a Flash developer - I just noticed this issue with Adobe Flash, and wanted to raise it with the major Flash players.

According to many web sites (such as http://flash-forum.flashdevils.com/showthread.php?threadid=189981), Flash supports CSS as well as basic html. As it supports CSS, I believe that implies that it should support CSS color shorthand, too.

If this isn't applicable in gnash at the moment due to its lack of a CSS implementation, perhaps the best course of action is to keep this bug around for when the project does implement CSS to remind the team to hit this part of the standard?

Craig <candrews>
Mon 21 Apr 2008 07:08:43 AM UTC, comment #1:

The colours are incorrect in Gnash or in Adobe Flash? It seems to me that Gnash doesn't support loading styles from CSS at all (at least as far as text (TextField.StyleSheet) is concerned).

Flash specifies that colours are in the form #000000 and doesn't mention CSS shorthand, so I wouldn't be surprised if the short form didn't work.

Benjamin Wolsey <bwy>
Project Member
Sun 20 Apr 2008 06:42:04 PM UTC, original submission:

CSS color shorthand (see http://webdesign.about.com/od/color/qt/tipcolorshrthnd.htm) defines the rules that make three hex digit color codes into real colors. For example, #fff is white, #00f is blue, and #0f0 is green.

CSS compressors, such as the YUI compressor, take advantage of this definition.

Thus, when you use CSS compression against some CSS used in a Flash movie, the colors are incorrect.

Craig <candrews>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by strk (Posted a comment)
  • -unavailable- added by bwy (Posted a comment)
  • -unavailable- added by candrews (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 04 Dec 2008 12:14:58 PM UTCbwyStatusNone=>Wont Fix
      Open/ClosedOpen=>Closed
    Mon 21 Apr 2008 02:21:18 PM UTCbwySeverity3 - Normal=>1 - Wish

    Back to the top


    Powered by Savane 3.1-cleanup1