Options:
- # Session Start: Tue May 01 00:00:00 2012
- # Session Ident: #css
- # [00:00] <krit> Bert: ping
- # [00:02] * Quits: jet (jet@67.169.43.128) (Quit: jet)
- # [00:38] <isherman> tantek: Not sure if you saw [ https://bugs.webkit.org/show_bug.cgi?id=85150 ] — wanted to get your thoughts on it
- # [00:40] <tantek> isherman - that's interesting
- # [00:40] <tantek> btw I believe the comment #2 about specificity is wrong
- # [00:40] <tantek> e.g. try this
- # [00:40] <tantek> a { color: red }
- # [00:40] <tantek> does it turn your links red? no, because the UA rules trigger off of :visited and :link, which have higher specificity
- # [00:41] <tantek> so mitz is mistaken
- # [00:41] <isherman> hmm, interesting
- # [00:41] <tantek> nothing you can do about input[type=text] overriding the input:-webkit-autofill however
- # [00:42] <leaverou> TabAtkins_: It would break many existing use cases though I'm afraid. Transitions with transition-property: all; and transition-delay > 0
- # [00:42] <tantek> isherman - sounds like correct behavior, site is behaving as authored.
- # [00:43] <tantek> so if the site *does* want the default UA handling of the input background, it shouldn't set it in the site style sheet
- # [00:43] <isherman> tantek: Regarding the specificity issue, my read of http://www.w3.org/TR/CSS21/cascade.html#cascading-order is that author declarations are supposed to always take precedence over UA declarations — am I misreading the spec, or is the link coloring behavior an exception?
- # [00:43] <tantek> misreading the spec
- # [00:44] <tantek> specificity still works as expected, per my trival A vs. :link styling example above
- # [00:44] <tantek> that's consistent cross-browser also
- # [00:44] <isherman> tantek: so what does the "sort according to importance step" actually achieve? Is that for rules of equal specificity?
- # [00:44] <tantek> that's my understanding yes
- # [00:45] <tantek> though frankly, that algorithm is a bit too complex to fully follow in one's head
- # [00:45] <isherman> hmm, ok...
- # [00:48] <isherman> tantek: testing in WebKit with just the author stylesheet styling "input" (not "input[type=text]") seems to override the UA's input:-webkit-autofill styling
- # [00:48] <isherman> tantek: so it seems like the A element's behavior might be a special case, that's just consistently special across all the UAs?
- # [00:49] <tantek> odd
- # [00:49] <tantek> like *that's* not confusing to web authors
- # [00:49] <isherman> yeah...
- # [00:52] <isherman> so, the ideally desired behavior for the autofill case is to have authors explicitly override the :-webkit-autofill styling; otherwise to use the UA's styling
- # [00:53] <isherman> this is because for most websites, the autofill styling is helpful to users, even if the site styles non-autofilled elements — the common case is that the site author would want the autofill styling to be the UA's styling
- # [00:53] <tantek> sure - but that's supposed to work due to the greater specificity I'm pretty sure
- # [00:54] <isherman> I think even input[type=text] probably shouldn't be overridden
- # [00:54] <tantek> worth constructing a test case (with input:-webkit-autofill vs. input and :link vs. a) and emailing www-style
- # [00:54] <isherman> I mean I guess we could add input[type=text]:-webkit-autofilled to the UA style sheet
- # [00:54] * fantasai looks up
- # [00:54] <tantek> especially if you find that true in other browsers
- # [00:54] <isherman> ok, I can do that :)
- # [00:54] <TabAtkins_> leaverou: Yes, done naively it would.
- # [00:54] <tantek> isherman and [type=password]
- # [00:55] <fantasai> tantek: your example works fine
- # [00:55] <fantasai> tantek: the links are red
- # [00:55] <isherman> fantasai: including visited links?
- # [00:55] <TabAtkins_> leaverou: I think it'll be done with a special timing-function, perhaps 'discrete', that explicitly opts you into the "Animate me as a single jump, regardless." mode.
- # [00:55] <tantek> ok, fantasai - then how were UA style sheets supposed to work at all?
- # [00:55] <tantek> seems pretty broken
- # [00:55] * isherman checks the links case
- # [00:55] <fantasai> isherman: yes
- # [00:56] <isherman> hmm, ok :/
- # [00:56] <fantasai> tantek: I don't understand what you mean
- # [00:56] <fantasai> tantek: they work fine
- # [00:56] <fantasai> tantek: they style :link and :visited separately
- # [00:56] <fantasai> tantek: if the author styles <a>, then they both get restyled
- # [00:56] <fantasai> tantek: but if the author doesn't style <a>, then the UA stylesheet rules apply
- # [01:06] <isherman> fantasai: in the case of :-autofill, we'd like to have the UA rule take precedence over any rules of lower specificity
- # [01:06] <isherman> fantasai: is there any way to achieve that in the CSS model?
- # [01:07] <isherman> (sorry, was afk for a bit)
- # [01:11] * Joins: isherman-book (Adium@216.239.45.4)
- # [01:11] * Parts: isherman-book (Adium@216.239.45.4)
- # [01:25] <fantasai> isherman: I don't believe so
- # [01:25] <fantasai> isherman: I'd poke bzbarsky for ideas
- # [01:27] <isherman> fantasai: ok, I'll try getting his thoughts — thanks
- # [01:27] * Quits: tantek (tantek@159.63.23.38) (Quit: tantek)
- # [01:31] * Quits: miketaylr (miketaylr@70.112.101.224) (Quit: Leaving...)
- # [02:26] * Quits: krit (krit@192.150.10.201) (Quit: Leaving.)
- # [02:32] <hober> isherman: in the meantime, http://trac.webkit.org/changeset/113511 should be reverted.
- # [02:35] <hober> isherman: Longer-term, it would be good for CSS to have a feature or set of features that let you achieve what you're trying to achieve. but shorter-term, r113511 breaks too much content.
- # [02:36] <isherman> hober: I agree, just haven't gotten around to submitting the revert
- # [02:36] <isherman> coming soon...
- # [02:36] <hober> isherman: thanks
- # [02:39] <leaverou> TabAtkins_: That is confusing. So you'll have to tell authors that all timing functions operate on a subset of properties except that one?!
- # [02:55] * Joins: jet (jet@67.169.43.128)
- # [02:59] * Quits: drublic (drublic@95.115.29.59) (Client exited)
- # [03:02] * Joins: nimbu (Adium@67.169.39.98)
- # [03:04] * Joins: nimbu1 (Adium@192.150.10.200)
- # [03:05] * Quits: nimbu (Adium@67.169.39.98) (Ping timeout)
- # [03:15] * Joins: nimbu (Adium@67.169.39.98)
- # [03:17] * Quits: nimbu1 (Adium@192.150.10.200) (Ping timeout)
- # [03:18] * Quits: nimbu (Adium@67.169.39.98) (Ping timeout)
- # [03:40] <TabAtkins_> leaverou: Yes. All other timing functions operate on "animatable" properties only. 'discrete' operates on all of them, because it doesn't actually animate them. ^_^
- # [03:41] <leaverou> TabAtkins_: but that's basically step-end
- # [03:41] <leaverou> except the restriction on how it operates
- # [03:42] <TabAtkins_> Yes, though we'll probably have a start and stop variant of 'discrete' as well.
- # [03:42] <leaverou> but changing step-start and step-end to operate on all properties would be more sensible and wouldn't make websites break
- # [03:42] <leaverou> as very few currently use it
- # [03:42] <TabAtkins_> If we do it quickly, maybe.
- # [03:43] <leaverou> TabAtkins_: even if the intention of changing it becomes public quickly, it's sufficient
- # [03:44] <leaverou> authors will be careful when using it
- # [03:44] <TabAtkins_> I doubt it. ^_^ People won't avoid relying on it just because we announce we'll change it in the future.
- # [03:46] <leaverou> it doesn't have a huge number of use cases as it currently stands anyway. Or at least I can't see them. I might be wrong, obviously.
- # [03:46] <TabAtkins_> fantasai: isherman: The way to achieve it in CSS is to hook the styling on a pseudo-element, so it's not overridden unless they do so explicitly.
- # [03:46] <TabAtkins_> This is how placeholder should be styled.
- # [03:47] <TabAtkins_> If the placeholder text is shown, the input generates a ::placeholder pseudo.
- # [03:47] <TabAtkins_> UA colors on ::placeholder than override author colors on input.
- # [03:47] <TabAtkins_> You can do the same with autofill - make an input generate an ::autofill pseudo when it's been autofilled.
- # [03:49] * Joins: tantek (tantek@66.87.7.144)
- # [04:37] * Quits: jet (jet@67.169.43.128) (Quit: jet)
- # [05:03] <TabAtkins_> fantasai: I finished out the multi-line row case, so pull again if you're interested.
- # [05:10] * Joins: miketaylr (miketaylr@70.112.101.224)
- # [05:17] * Quits: tantek (tantek@66.87.7.144) (Quit: tantek)
- # [05:49] * Joins: myakura (myakura@221.171.5.98)
- # [05:51] * Joins: tantek (tantek@50.1.62.23)
- # [05:55] * Joins: krit (krit@24.6.231.253)
- # [06:11] * Joins: jet (jet@67.169.43.128)
- # [06:50] * Joins: krit1 (krit@192.150.10.201)
- # [06:51] * Quits: krit (krit@24.6.231.253) (Ping timeout)
- # [07:23] * Quits: miketaylr (miketaylr@70.112.101.224) (Quit: Leaving...)
- # [07:31] * Quits: krit1 (krit@192.150.10.201) (Connection reset by peer)
- # [08:39] * Joins: Ms2ger (Ms2ger@91.181.73.242)
- # [08:51] * Quits: myakura (myakura@221.171.5.98) (Client exited)
- # [08:52] * Quits: jet (jet@67.169.43.128) (Quit: jet)
- # [09:05] * Quits: kojiishi (kojiishi@222.158.227.129) (Connection reset by peer)
- # [09:06] * Joins: kojiishi (kojiishi@222.158.227.129)
- # [09:31] * Quits: Ms2ger (Ms2ger@91.181.73.242) (Ping timeout)
- # [09:39] * Joins: jet (jet@67.169.43.128)
- # [11:13] * Joins: drublic (drublic@93.132.247.218)
- # [11:46] * Quits: kojiishi (kojiishi@222.158.227.129) (Connection reset by peer)
- # [11:49] * Joins: kojiishi (kojiishi@222.158.227.129)
- # [12:44] * Joins: Ms2ger (Ms2ger@94.226.71.4)
- # [12:57] * Joins: myakura (myakura@221.171.5.98)
- # [13:06] * Quits: Ms2ger (Ms2ger@94.226.71.4) (Ping timeout)
- # [13:27] * Quits: jet (jet@67.169.43.128) (Quit: jet)
- # [14:07] * Joins: lhnz (lhnz@188.223.83.48)
- # [14:25] * Joins: jdaggett (jdaggett@180.235.8.216)
- # [14:41] * Joins: dbaron (dbaron@72.94.180.111)
- # [15:08] * Quits: lhnz (lhnz@188.223.83.48) (Ping timeout)
- # [15:08] * Joins: lhnz (lhnz@188.223.83.48)
- # [15:37] * Joins: krit (krit@24.6.231.253)
- # [15:38] * Joins: krit1 (krit@24.6.231.253)
- # [15:41] * Quits: krit (krit@24.6.231.253) (Ping timeout)
- # [16:16] * Joins: miketaylr (miketaylr@70.112.101.224)
- # [16:31] * Quits: tantek (tantek@50.1.62.23) (Quit: tantek)
- # [16:33] * Joins: ksweeney (ksweeney@63.119.10.10)
- # [16:33] * Parts: ksweeney (ksweeney@63.119.10.10)
- # [16:43] * Quits: lhnz (lhnz@188.223.83.48) (Quit: Leaving)
- # [16:49] * Joins: nimbu (Adium@192.150.10.200)
- # [16:57] * Quits: krit1 (krit@24.6.231.253) (Quit: Leaving.)
- # [17:57] * miketaylr is now known as miketaylrawaylol
- # [17:59] * miketaylrawaylol is now known as miketaylr
- # [18:04] * Quits: myakura (myakura@221.171.5.98) (Client exited)
- # [18:05] * Joins: tantek (tantek@66.87.7.184)
- # [18:22] * Joins: tantek_ (tantek@66.87.7.184)
- # [18:22] * Quits: tantek (tantek@66.87.7.184) (Connection reset by peer)
- # [18:22] * tantek_ is now known as tantek
- # [18:25] * Joins: dglazkov (u4270@88.198.6.68)
- # [18:30] * Joins: glenn (gadams@205.248.100.252)
- # [18:33] * Joins: krit (krit@192.150.10.201)
- # [18:47] * Quits: tantek (tantek@66.87.7.184) (Quit: tantek)
- # [18:48] * Joins: jet (jet@159.63.23.38)
- # [18:55] * Joins: tantek (tantek@205.248.100.252)
- # [19:07] * Quits: krit (krit@192.150.10.201) (Quit: Leaving.)
- # [19:09] * Joins: shepazu (shepazu@128.30.52.169)
- # [19:09] * Quits: shepazu (shepazu@128.30.52.169) (Client exited)
- # [19:09] * Joins: shepazu (shepazu@128.30.52.169)
- # [19:15] * Joins: krit (krit@192.150.10.201)
- # [19:55] * Joins: arronei_ (arronei@131.107.192.154)
- # [19:55] * Quits: drublic (drublic@93.132.247.218) (Client exited)
- # [19:55] * Quits: arronei (arronei@131.107.192.154) (Ping timeout)
- # [21:32] * Quits: tantek (tantek@205.248.100.252) (Ping timeout)
- # [21:36] * Quits: shepazu (shepazu@128.30.52.169) (Ping timeout)
- # [21:39] * Quits: glenn (gadams@205.248.100.252) (Connection reset by peer)
- # [21:50] * Joins: Ms2ger (Ms2ger@94.226.71.4)
- # [22:02] * Joins: tantek (tantek@66.87.2.85)
- # [22:03] * Quits: jet (jet@159.63.23.38) (Quit: jet)
- # [22:08] * Joins: jet (jet@159.63.23.38)
- # [22:09] * Quits: tantek (tantek@66.87.2.85) (Ping timeout)
- # [22:09] * Joins: tantek (tantek@66.87.4.133)
- # [22:24] * Quits: tantek (tantek@66.87.4.133) (Ping timeout)
- # [22:29] * Quits: Ms2ger (Ms2ger@94.226.71.4) (Ping timeout)
- # [22:34] * Joins: tantek (tantek@66.87.4.176)
- # [22:41] * Joins: glenn (gadams@205.248.100.252)
- # [22:43] * Quits: tantek (tantek@66.87.4.176) (Ping timeout)
- # [22:44] * Joins: tantek (tantek@205.248.100.252)
- # [22:45] * Quits: dbaron (dbaron@72.94.180.111) (Quit: 8403864 bytes have been tenured, next gc will be global.)
- # [22:51] * Joins: shepazu (shepazu@128.30.52.169)
- # [23:26] * Joins: drublic (drublic@93.132.247.218)
- # Session Close: Wed May 02 00:00:31 2012
The end :)