W3C home > Mailing lists > Public > www-style@w3.org > December 2010

Re: Two CSS challenges

From: Gérard Talbot <www-style@gtalbot.org>
Date: Sun, 26 Dec 2010 14:47:09 -0800
Message-ID: <e9b2a1d439b68597a0167ccab18c0e8e.squirrel@cp3.shieldhost.com>
To: "Andrew Fedoniouk" <news@terrainformatica.com>
Cc: "W3C style mailing list" <www-style@w3.org>
Le Sam 25 décembre 2010 12:31, Andrew Fedoniouk a écrit :
> Here are two challenges that have no solutions in modern CSS.
>
> 1. Consider this simple markup:
>
> <p> Something <span>Like a Button</span></p>
>
> I would like to define the span above to behave (visually) as a button -
> on
> span:active I would like to shift/offset its text from its normal position
> by 1px.

[snipped]

Here's a recap of the proposed testcases so far with 3 customized
(according to my tastes,... although line-height: 1.25 is almost necessary
here):

A button-like span shift/offset its text by 1px when :activated, version 1:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/button-like-span-activated-moves-left.html

A button-like span shift/offset its text by 1px when :activated, version 1.1:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/button-like-span-activated-moves-left-v1.1.html

A button-like span shift/offset its text by 1px when :activated, version 2:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/button-like-span-activated-moves-left-v2.html

A button-like span shift/offset its text by 1px when :activated, version 2.1:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/button-like-span-activated-moves-left-v2.1.html

A button-like span shift/offset its text by 1px when :activated, version 3:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/button-like-span-activated-moves-left-v3.html

A button-like span shift/offset its text by 1px when :activated, version 3.1:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/button-like-span-activated-moves-left-v3.1.html

All 6 testcases work as expected in Firefox 3.6.13, Opera 11.0, Chrome
8.0.552.224 and Konqueror 4.5.4.

season's greetings, Gérard
-- 
CSS 2.1 Test suite RC4 (December 10th 2010)
http://test.csswg.org/suites/css2.1/20101210/html4/toc.html

Contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

Web authors' contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html
Received on Sunday, 26 December 2010 22:47:45 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:35 GMT