Skip to main content

Bug Tracker

Side navigation

#12723 closed feature (fixed)

Opened October 14, 2012 10:34AM UTC

Closed December 03, 2013 12:23PM UTC

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

Reported by: mikesherov Owned by:
Priority: low Milestone:
Component: css Version: git
Keywords: Cc: rwaldron
Blocked by: Blocking:

Prompted by rwaldron's comment here: , this discussion happened:

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.

Attachments (0)
Change History (8)

Changed October 14, 2012 10:35AM UTC by mikesherov comment:1

cc: → rwaldron
component: unfiledcss
priority: undecidedlow

Changed October 14, 2012 11:10AM UTC by rwaldron comment:2


Changed October 15, 2012 04:21AM UTC by mikesherov comment:3

status: newopen

Changed March 12, 2013 10:39PM UTC by m_gol comment:4

I guess this would let to fix easily

Changed April 29, 2013 03:57PM UTC by dmethvin comment:5


Changed September 17, 2013 12:11PM UTC by Oleg comment:6

resolution: → fixed
status: openclosed

Fix #12723 and simplification and optmization of defaultDisplay helper

Changeset: a25343001eea2436dcf8ea60deea3844f77e42e4

Changed September 17, 2013 12:34PM UTC by m_gol comment:7

resolution: fixed
status: closedreopened

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

Changed December 03, 2013 12:23PM UTC by markelog comment:8

resolution: → fixed
status: reopenedclosed

@m_gol Please read original thread posted in this ticket description -

display: default
was just a suggestion in it, which original title was "Proposing a getDefaultComputedStyle method".

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.