esrille / escudo

The Escudo Web Browser
Apache License 2.0
68 stars 13 forks source link

[CSS] Support CSS Color Module Level 3 #50

Closed ShikiOkasaka closed 11 years ago

ShikiOkasaka commented 11 years ago

cf. http://www.w3.org/TR/css3-color/

s.3.2.a should read: Since an element with opacity less than 1 is composited from a single offscreen image, content outside of it cannot be layered in z-order between pieces of content inside of it. For the same reason, implementations must create a new stacking context for any element with opacity less than 1. If an element with opacity less than 1 is not positioned, then it is painted on the same layer, within its parent stacking context, as positioned elements with stack level 0. If an element with opacity less than 1 is positioned, the ‘z-index’ property applies as described in [CSS21], except that if the used value is ‘auto’ then the element behaves exactly as if it were ‘0’. cf. http://www.w3.org/Style/2011/REC-css3-color-20110607-errata.html

cf. CSS3 Color Conformance Test Suite http://test.csswg.org/suites/css3-color/

ShikiOkasaka commented 11 years ago

TODO items for the ‘opacity’ property:

ShikiOkasaka commented 11 years ago

With 2a9f4f07fcb2307a3f9c8145415306e421709d14, the first three elements with opacity less than 1 in http://test.csswg.org/suites/css3-color/nightly-unstable/html4/t32-opacity-offscreen-with-alpha-c.htm are rendered correctly: t32-opacity-offscreen-with-alpha-c 130330 2a9f4f0 The last one uses an RGBA color value, which is not supported yet.

ShikiOkasaka commented 11 years ago

RGBA color values are support at ee152270e86542b4f96305b321d404614a17d3ec:

t32-opacity-offscreen-with-alpha-c 130330 ee15227 http://test.csswg.org/suites/css3-color/nightly-unstable/html4/t32-opacity-offscreen-with-alpha-c.htm

ShikiOkasaka commented 11 years ago

Note now that we support RGBA color values, CSSSerializeRGB() does not have to return 'transparent'.

ShikiOkasaka commented 11 years ago

CSSSerializeRGB() is fixed at 68b1dae7275476e6bb5d2b74e009469f2ffba877.

ShikiOkasaka commented 11 years ago

The priority for supporting the ‘currentColor’ color keyword is not very high for escort at this point. We'll handle it in a separate issue #58.