[Webkit-unassigned] [Bug 53148] Location of <style> block affects generation of anonymous table boxes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 15 14:28:02 PST 2023


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

Ahmad Saleem <ahmad.saleem792 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ahmad.saleem792 at gmail.com,
                   |                            |karlcow at apple.com

--- Comment #1 from Ahmad Saleem <ahmad.saleem792 at gmail.com> ---
(In reply to Tab Atkins from comment #0)
> Testcase:
> <!doctype html>
> <style>
> #a > span { display: table-cell; }
> </style>
> <div id=a>
>   <span>a</span>
>   <span>b</span>
> </div>
> <div id=b>
>   <span>a</span>
>   <span>b</span>
> </div>
> <style>
> #b > span { display: table-cell; }
> </style>
> 
> The contents of #a and #b should be identical, as they have identical
> structure and identical CSS applied to them - the two spans should be
> wrapped in an anonymous table box.  
> 
> Instead, #b generates *two* anonymous table boxes, one for each span.  This
> is an error.

In JSFiddle: https://jsfiddle.net/zr8thm5u/show (based of Comment 0), it seems to be same across Safari 17.2, Firefox Nightly 122 and Chrome Canary 122.

Do we need anything more?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231215/7f50d0f8/attachment.htm>


More information about the webkit-unassigned mailing list