Replaced items in a flexbox should be coerced to display:block
authortony@chromium.org <tony@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Jun 2012 22:39:01 +0000 (22:39 +0000)
committertony@chromium.org <tony@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Jun 2012 22:39:01 +0000 (22:39 +0000)
commit3e1e7cc5020eb87c817c6dd1a1be4c96d2363603
treee45255591b7c1f1314d9488252d06206dbcc9811
parent1fa9c620570f09590f876ffc16f72643a0fd1431
Replaced items in a flexbox should be coerced to display:block
https://bugs.webkit.org/show_bug.cgi?id=87068

Reviewed by Ojan Vafai.

Source/WebCore:

The flexbox spec lists HTML tags that should automatically be converted
to display:block when a flex child. It also says that atomic inline-level
children should become block (e.g., inline-table should be treated as table).
http://dev.w3.org/csswg/css3-flexbox/#flex-items

Test: css3/flexbox/flexitem.html

* css/StyleResolver.cpp:
(WebCore::StyleResolver::collectMatchingRulesForList):

LayoutTests:

* css3/flexbox/flexitem-expected.txt: Added.
* css3/flexbox/flexitem.html: Added.
* css3/flexbox/resources/flexbox.js:
(checkExpectedValues):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@120132 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/css3/flexbox/flexitem-expected.txt [new file with mode: 0644]
LayoutTests/css3/flexbox/flexitem.html [new file with mode: 0644]
LayoutTests/css3/flexbox/resources/flexbox.js
Source/WebCore/ChangeLog
Source/WebCore/css/StyleResolver.cpp