DescriptionTrigger full html.css styles for some printing tests.
In Blink, @page UA styles is missing from the simple html stylesheet which
is used instead of html.css for documents which contains a certain subset
of html element types. Adding that @page rule to that simplified stylesheet
will change the actual results for these tests which have expectations
relying on that bug[1]:
PrintWebViewHelperPreviewTest.PrintPreviewShrinkToFitPage
PrintWebViewHelperPreviewTest.PrintPreviewCenterToFitPage
This CL changes the expected results and adds a <p> element to those tests
in order to trigger the correct @page rule from html.css without the fix in
Blink. Then the Blink fix[2] can land and be rolled into chromium without
affecting the results of the mentioned tests.
After the Blink fix is rolled into chromium, the <p> elements can be safely
removed again.
[1] https://code.google.com/p/chromium/issues/detail?id=304021
[2] https://codereview.chromium.org/25856002/
R=vitalybuka@chromium.org
BUG=304021
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=227076
Patch Set 1 #
Messages
Total messages: 6 (0 generated)
|