Lets say we have following markup: <ul> <li>First</li> <li>Second (with <a href=#>hyperlink</a>)</li> <li>Third</li> <li>Fourth (with <a href=#>hyperlink</a> too)</li> </ul> and the styling task: all <li> that have <a> elements inside have yellow background. If we would have hypothetic selector :with-child(selector) then we could write this as: li:with-child(a:link) { background:yellow; } Problem with this selector lies…
Category: Uncategorized
CSS, selectors and computational complexity
CSS (Cascading style sheets) has pretty extensive set of so called selectors. Example: ul[type="1"] > li { list-style-type: decimal; } Selector here means the following: each li element that is immediate child of ul that has attribute type with the value "1" has that style. Selectors and assosiated styles constitute static system of styles. And…
Generators in C++ revisited.
Previous version of generators has a design problem – it required some special stop value. That is the same kind of problem as with iterators in C++ – they require special end() value. But in some cases it is not even possible to choose such a value. So is this new version: // generator/continuation for…
Shot of the day.
View on Georgia Straight from Cypress Mountain – one of sites of Winter Olympic Games 2010. Vancouver, today.
Talks about HTMLayout
Here is a translation of the interview in Russian I gave to Alexander Sergeev from the HumanoIT. Alexander Sergeev(AS) says: My long time dream – to write a shareware program and sell it through the Internet: cash out, Brazil, Maldives, Tokyo, beaches, skiing, casinos… ahhh. This summer I almost brought it to reality… all thanks…
Switching To A Secure Frequency…
This is a must see movie for all usability experts 🙂
JavaScript closures
Found excellent article of Richard Cornford: Javascript Closures BTW: All principles there apply to TIScript too.
HTML5, broken hopes.
I am tracking HTML and CSS design efforts on W3C last three years. My main area of interests is in CSS development as I think that in HTML/CSS/Script triade CSS as a technology is the weakest area. Next is the Script. And HTML appears as the most stable thing among these three. Since CSS1 we…
Graphin engine
I have started Graphin.dll project – portable and compact graphics engine based on AGG (agg2d in particular). Graphin url is code.google.com/p/graphin API mimics Graphics and Image objects but in plain C. In principle this is close to the <canvas> from WHAT WG . Graphin.dll includes also pnglib/zlib and jpeglib with the ability to load and…
Browser wars.
Somewhere in this month discovered in logs of this site that total number of visitiors who use Gecko (FireFox and Mozilla) and Opera browers became first time larger than number of Internet Explorer users. Of course this site has specific auditorium but nevertheless…