[Webkit-unassigned] [Bug 53147] New: CSS 2.1 Failure: table-anonymous-object-188 ::after on an inline parent messes up anonymous table box creation around table-cell boxes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 25 17:02:47 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=53147

           Summary: CSS 2.1 Failure: table-anonymous-object-188 ::after on
                    an inline parent messes up anonymous table box
                    creation around table-cell boxes
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
               URL: http://test.csswg.org/suites/css2.1/20110111/html4/tab
                    le-anonymous-objects-188.htm
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: tabatkins at google.com


In the linked test case, "b" and "c" are in table-cell blocks that should be grouped by a single anonymous table box.

However, the #t::after{} rule, which creates an ::after pseudoelement as a sibling of the spans containing "b" and "c", forces the "b" and "c" to generate individual anonymous table boxes, so they sit on separate lines.  

As the linked case is relatively complex, here is a stripped test case:

<!doctype html>
<style>
#wrong > span { display: table-cell; }
#wrong::after { content: "fail"; }
#right > span { display: table-cell; }
#right::before { content: "win"; }
#alsoright > span { display: table-cell; }
#alsoright::after { content: "win"; }
</style>
<span id=wrong>
  <span>a</span>
  <span>b</span>
</span>
<hr>
<span id=right>
  <span>a</span>
  <span>b</span>
</span>
<hr>
<div id=alsoright>
  <span>a</span>
  <span>b</span>
</div>

Special notes:
1. This only happens is #t is inline.
2. This only happens if you generate an ::after.  Generating ::before doesn't cause any problems.
3. Having actual text at the end, rather than a generated ::after, doesn't cause any problems.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list