Bug Tracker

Ticket #6519 (closed bug: invalid)

Opened 6 years ago

Last modified 5 years ago

:first pseudo-selector conflicts with CSS paged media module's :first

Reported by: visnup Owned by:
Priority: undecided Milestone: 1.4.3
Component: selector Version: 1.4.2
Keywords: sizzle :first Cc:
Blocking: Blocked by:


webkit nightly r58385 [1] added support for css paged media, in particular the :left, :right, and :first pseudo-selectors. this means webkit won't throw an error when ":first" is encountered by querySelectorAll and instead returns an empty array [2]. this breaks any selectors using sizzle's :first pseudo-selector in the latest webkit nightlies.

I've filed another bug against webkit, hoping to get errors thrown (again) when :first is encountered outside of an @page rule context [3].

[1]  http://trac.webkit.org/changeset/58385 [2]  http://github.com/jeresig/sizzle/blob/master/sizzle.js#L920 [3]  https://bugs.webkit.org/show_bug.cgi?id=38499

Change History

comment:1 Changed 6 years ago by visnup

forgot how trac formatting works and can't edit the description now to make the footnote links clearer.

comment:2 Changed 6 years ago by visnup

specification of css paged media's :first pseudo-selector is here:  http://dev.w3.org/csswg/css3-page/#left-right-first

comment:3 Changed 6 years ago by fizz

This ticket can be closed-it's  fixed in Webkit.

comment:4 Changed 5 years ago by addyosmani

  • Priority set to undecided
  • Status changed from new to closed
  • Resolution set to invalid

Reviewing the material available, the bug mentioned in this ticket has been closed in  https://bugs.webkit.org/show_bug.cgi?id=38697 as a Webkit issue earlier in the year. Filing as closed.

Note: See TracTickets for help on using tickets.