Closed Bug 241575 Opened 20 years ago Closed 20 years ago

expression() function in CSS

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: bozhan, Assigned: dbaron)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7b) Gecko/20040421
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7b) Gecko/20040421

Becouse implementation of CSS3 in mozilla and not only in mozilla isnt't very near
i think that it will be very good if mozilla implement function expression in CSS.


Reproducible: Always
Steps to Reproduce:
1.create style like this:
tr.flip
{
    BACKGROUND-COLOR: expression(  this.rowIndex > -1 ? ( (this.rowIndex % 2 )
== 0 ? '#f4f4f4' : '#FFFFFF') : '#FFFFFF' );
}
2.add class to several tr elements
3.

Actual Results:  
it does nothing

Expected Results:  
it should flip table row colors

If mozilla starts to support CSS3 now it woudn't be any helpful becouse there
are too many sites which use this Microsoft function.
Later when standat is implemented will be easer to swich to it if implementation
of such good microsoft realted function is used.
Is's known that microsoft is a part of editos in w3c.
And what mozilla will live without nice and easy to use tools and will wait for
"JUDGEMENT Day" to implement such things or will be modern browser which can do
fancy things without pushing web developers to write strange functions only to
change backgroung colors for example.
This is in the wrong component, it's been filed before, and we're not going to
do it...
Assignee: general → dbaron
Component: DOM: CSSOM → Style System (CSS)
Whiteboard: DUPEME
-> DUPLICATE

*** This bug has been marked as a duplicate of 64019 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
Reopening. This is not a duplicate of the filter: property RFE.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Summary: expression function in CSS → expression() function in CSS
There are psuedo-class in W3C recomendation but did some one of you tried test
case in w3c.org with IE ... page look exactly like nothing.
So if MS didn't use CSS3 soon and mozilla support CSS3 and i create style with
CSS3 most of users(clients) will see my page as ****.
SO i will not use psuedo-class and i will be pushed by MS and Mozilla togher to
use the lesser evil.
-> WONTFIX

I can't find any existing bug regarding expression() and I'm sure we don't want
this.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago20 years ago
OS: Windows 2000 → All
Hardware: PC → All
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.