Bug Tracker

Opened 7 years ago

Closed 6 years ago

#12723 closed feature (fixed)

Consider using "display: default" (once implemented) to circumvent the defaultDisplay code path

Reported by: mikesherov Owned by:
Priority: low Milestone: 2.next
Component: css Version: git
Keywords: Cc: Rick Waldron
Blocked by: Blocking:

Description

Prompted by rwaldron's comment here: https://bugzilla.mozilla.org/show_bug.cgi?id=797029#c10 , this discussion happened: http://lists.w3.org/Archives/Public/www-style/2012Oct/0364.html

Which discusses the addition of a new global CSS value keyword called "default", which is like "initial", except it takes the elements default attributes into consideration.

Instead of doing defaultDisplay to figure out what to set display to for .show(), we can simply do: "display: default". This would have the added benefit of not showing elements whose default display is actually "none", like script tags or style tags or input type=hidden tags.

Change History (8)

comment:1 Changed 7 years ago by mikesherov

Cc: Rick Waldron added
Component: unfiledcss
Priority: undecidedlow

comment:2 Changed 7 years ago by Rick Waldron

+(253)

comment:3 Changed 7 years ago by mikesherov

Status: newopen

comment:4 Changed 6 years ago by m_gol

I guess this would let to fix easily http://bugs.jquery.com/ticket/10568

comment:5 Changed 6 years ago by dmethvin

Milestone: None2.next

comment:6 Changed 6 years ago by Oleg

Resolution: fixed
Status: openclosed

Fix #12723 and simplification and optmization of defaultDisplay helper

Changeset: a25343001eea2436dcf8ea60deea3844f77e42e4

comment:7 Changed 6 years ago by m_gol

Resolution: fixed
Status: closedreopened

This is not fixed, this ticket specifically mentioned display: default which this commit didn't use, obviously.

comment:8 Changed 6 years ago by markelog

Resolution: fixed
Status: reopenedclosed

@m_gol Please read original thread posted in this ticket description - http://lists.w3.org/Archives/Public/www-style/2012Oct/0364.html. display: default was just a suggestion in it, which original title was "Proposing a getDefaultComputedStyle method". getDefaultComputedStyle ended up being implemented not display: default

I think it would be better if next time you would assume i have a reason to close some issue or if you would consult with me before you reopen it.

Note: See TracTickets for help on using tickets.