(You can find more information on the full set of X11 colour names and their representations in Wikipedia). Since WPF allows the same named colours as HTML for compatibility, the result is that the same idiosyncrasies carry forward. The unfortunate result is that Gray is defined as #808080 in HTML, but DarkGray is represented as #A9A9A9, meaning that they're the wrong way around. Unfortunately, some of the original sixteen named colours have different representations to the X11 equivalents, for example Green is represented in X11 in this colour, whereas in HTML it's represented in this colour. The HTML specification defines sixteen named colours that map onto the basic sixteen colours present in the EGA palette, but the earliest browsers such as Mosaic also supported any of the other X11 named colours, based on their colour representation as defined on X. These colours don't actually originate in HTML` - they date still further back than that to the X Window System that originated on UNIX systems. I would like to quote Tim Sneath's discussion regarding that, Even in the current draftįor CSS 4.0, dark gray continues to be a lighter shade than gray. Was descended from X11 – for it did not exist in HTML nor CSS levelġ – while "Gray" was descended from HTML. Significantly lighter tone than plain "Gray", because "Dark Gray" List that prevails on the web today produces "Dark Gray" as a However, in X11, "gray" wasĪssigned to the 190 triplet (74.5%), which is close to W3C "Silver"Īt 192 (75.3%), and had "Light Gray" at 211 (83%) and "Dark Gray"Īt 169 (66%) counterparts. Perhaps most unusual of the color clashes between X11 and W3C is theĬase of "Gray" and its variants. Here's some more Wikipedia on the subject: However, the W3C defined Gray (more appropriately?) as RGB 50%. On X, "Gray" is actually closer to "Silver". It sounds like a lot of the named color definitions come from X Windows System. Wikipedia has some information on the subject.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |