On Jul 26, 2010, at 4:27 PM, Ryosuke Niwa wrote: > > On Mon, Jul 26, 2010 at 1:10 PM, Maciej Stachowiak <[email protected]> wrote: >> I agree. We should test and see what other browsers do in various cases. >> >> But since it's impossible for us to enumerate every possible formatting, I >> propose to just remove text-decoration, font-weight, etc... and the >> corresponding presentational elements probably using ApplyStyleCommand as a >> starting point. We can then file a separate bug or so to uncover edge cases >> and polish the behavior. > > Sure it's possible. We can test every CSS property and every HTML element. It > should be easy to write a test case that checks every case exhaustively. I > don't think it makes sense to change our behavior based on a guess of what > other browsers do. > > I don't think that captures all possible formatting because CSS in particular > has interesting effects when combined with other styles. What I meant is that > we can't test every combination of all CSS properties & HTML elements (i.e. > enumerating every possible DOM with every possible combinations of CSS > properties applied every possible way on each DOM) simply because there are > infinitely many of them. Although I'd guess that some of them are reputations > so we might be able to find a finite subset that suffice the purpose. anyhow, > I agree that testing every CSS property and every HTML element will be a good > idea. That'll at least give us a starting point.
I doubt any other browser behaves differently for a combination of CSS properties than for individual CSS properties. I guess it's possible but it seems unlikely. I would note though that there is a finite set of possible combinations of CSS properties, if you pick a finite set of possible values to try for each, but it might be too large a set for the test to complete in a reasonable time frame. Regards, Maciej
_______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

